|
ALBA
|
#include <albaVMEManager.h>


Public Member Functions | |
| albaVMEManager () | |
| ~albaVMEManager () | |
| void | SetListener (albaObserver *listener) |
| void | OnEvent (albaEventBase *e) |
| void | MSFNew () |
| int | MSFOpen (albaString filename) |
| int | MSFOpen (int file_id) |
| const char * | ZIPOpen (albaString filename) |
| void | ZIPSave (albaString file="") |
| int | MSFSave () |
| int | MSFSaveAs () |
| bool | MSFIsModified () |
| void | MSFModified (bool modified) |
| void | VmeAdd (albaVME *n) |
| void | VmeRemove (albaVME *n) |
| void | TimeGetBounds (double *min, double *max) |
| void | TimeSet (double time) |
| void | NotifyRemove (albaVME *n) |
| void | NotifyAdd (albaVME *n) |
| bool | AskConfirmAndSave () |
| void | SetDirName (albaString dirname) |
| void | SetFileName (albaString &filename) |
| void | SetMsfFileExtension (albaString &extension) |
| albaString & | GetFileName () |
| void | SetFileHistoryMenu (wxMenu *menu) |
| albaVMERoot * | GetRoot () |
| albaVMEStorage * | GetStorage () |
| void | SetApplicationStamp (albaString &appstamp) |
| void | SetApplicationStamp (std::vector< albaString > appstamp) |
| void | MakeBakFileOnSave (bool bakfile=true) |
| void | RemoveTempDirectory () |
| void | SetSingleBinaryFile (bool singleFile) |
| void | SetTestMode (bool testmode) |
| void | IgnoreAppStamp (bool ignore) |
Public Member Functions inherited from albaObserver | |
| albaObserver () | |
| virtual | ~albaObserver () |
| virtual void | OnEvent (albaEventBase *e)=0 |
Protected Member Functions | |
| bool | MakeZip (const albaString &zipname, wxArrayString *files) |
| void | AddCreationDate (albaVME *vme) |
| bool | CheckFileUpdated (const wxString &filePath, const wxDateTime &previousModTime) |
Protected Attributes | |
| bool | m_Modified |
| albaObserver * | m_Listener |
| wxConfigBase * | m_Config |
| wxArchiveFSHandler * | m_ZipHandler |
| wxFileSystem * | m_FileSystem |
| albaGUIFileHistory | m_FileHistory |
| int | m_FileHistoryIdx |
| bool | m_MakeBakFile |
| albaString | m_MSFDir |
| std::vector< albaString > | m_AppStamp |
| albaString | m_MSFFile |
| albaString | m_ZipFile |
| albaString | m_TmpDir |
| albaString | m_MsfFileExtension |
| bool | m_LoadingFlag |
| bool | m_Crypting |
| bool | m_SingleBinaryFile |
| albaVMEStorage * | m_Storage |
| bool | m_TestMode |
| bool | m_IgnoreAppStamp |
Friends | |
| class | albaVMEManagerTest |
albaVMEManager : Class managing VMEs inside a ALBA application.
This class is responsible for managing the VME in a ALBA application: It can add or remove VME to the current tree, add a new tree, load and save a tree from or to an msf (zmsf) file.
Definition at line 40 of file albaVMEManager.h.
| albaVMEManager::albaVMEManager | ( | ) |
constructor
| albaVMEManager::~albaVMEManager | ( | ) |
destructor
|
inline |
Set the event receiver object.
Definition at line 51 of file albaVMEManager.h.
|
virtual |
Process events coming from other components.
Implements albaObserver.
| void albaVMEManager::MSFNew | ( | ) |
Destroy all nodes (also the root), for each destroyed node the manager send an event VME_REMOVING, then search the root and select it.
| int albaVMEManager::MSFOpen | ( | albaString | filename | ) |
Open the msf filename.
| int albaVMEManager::MSFOpen | ( | int | file_id | ) |
Open the msf from file history.
| const char * albaVMEManager::ZIPOpen | ( | albaString | filename | ) |
Open the compressed zmsf filename.
| void albaVMEManager::ZIPSave | ( | albaString | file = "" | ) |
Save the msf tree into a compressed file.
| int albaVMEManager::MSFSave | ( | ) |
Save the msf tree.
| int albaVMEManager::MSFSaveAs | ( | ) |
Save the msf tree with different filename.
|
inline |
Return true if the tree has been modifyed.
Definition at line 79 of file albaVMEManager.h.
|
inline |
Set the modify flag.
Definition at line 82 of file albaVMEManager.h.
| void albaVMEManager::VmeAdd | ( | albaVME * | n | ) |
Add the vme to the tree.
| void albaVMEManager::VmeRemove | ( | albaVME * | n | ) |
Remove the vme from the tree.
| void albaVMEManager::TimeGetBounds | ( | double * | min, |
| double * | max | ||
| ) |
Get the time bounds of the tree.
| void albaVMEManager::TimeSet | ( | double | time | ) |
Set the time for the tree.
| void albaVMEManager::NotifyRemove | ( | albaVME * | n | ) |
Send the event VME_REMOVING to inform logic that the vme and its subtree are removed from the tree.
| void albaVMEManager::NotifyAdd | ( | albaVME * | n | ) |
Send the event VME_ADDED to inform logic that the vme and its subtree are added to the tree.
| bool albaVMEManager::AskConfirmAndSave | ( | ) |
Show the dialog to confirm the save of the current tree.
|
inline |
Set the filename for the current tree.
Definition at line 106 of file albaVMEManager.h.
|
inline |
Set the filename for the current tree.
Definition at line 109 of file albaVMEManager.h.
|
inline |
Set the file extension.
Definition at line 112 of file albaVMEManager.h.
|
inline |
Get the filename of the current tree.
Definition at line 115 of file albaVMEManager.h.
| void albaVMEManager::SetFileHistoryMenu | ( | wxMenu * | menu | ) |
Link to the main men the file history manager.
| albaVMERoot * albaVMEManager::GetRoot | ( | ) |
Return the tree's root.
| albaVMEStorage * albaVMEManager::GetStorage | ( | ) |
Return the storage associated to the current tree.
| void albaVMEManager::SetApplicationStamp | ( | albaString & | appstamp | ) |
Set the application stamp; this is the mark of the specific vertical application (is always equal to the application name).
| void albaVMEManager::SetApplicationStamp | ( | std::vector< albaString > | appstamp | ) |
Set other application stamps for compatibility with similar applications (the application stamp itself is already present).
|
inline |
Set the flag for bak file generation on saving MSF file.
Definition at line 133 of file albaVMEManager.h.
| void albaVMEManager::RemoveTempDirectory | ( | ) |
Remove temporary directory used for compressed msf files.
| void albaVMEManager::SetSingleBinaryFile | ( | bool | singleFile | ) |
Set the flag for saving binary files associated to time varying VMEs.
|
inline |
Set the flag for test mode without GUI.
Definition at line 142 of file albaVMEManager.h.
|
inline |
Set the flag for attive controll in Open Alba Project.
Definition at line 145 of file albaVMEManager.h.
|
protected |
Create a compressed msf file: zmsf.
|
protected |
Set tag with creation date for the node passed as argument.
|
protected |
|
friend |
Flag used to Open Alba Project File with appStamp verification.
friend test class
Definition at line 181 of file albaVMEManager.h.
|
protected |
Used to known when the tree has been modified...
Definition at line 156 of file albaVMEManager.h.
|
protected |
Register the event receiver object.
Definition at line 158 of file albaVMEManager.h.
|
protected |
Application configuration for file history management.
Definition at line 159 of file albaVMEManager.h.
|
protected |
Handler for zip archive (used to open zmsf files)
Definition at line 160 of file albaVMEManager.h.
|
protected |
File system manager.
Definition at line 161 of file albaVMEManager.h.
|
protected |
Used to hold recently opened files.
Definition at line 162 of file albaVMEManager.h.
|
protected |
Identifier of the file to open.
Definition at line 163 of file albaVMEManager.h.
|
protected |
Flag used to create or not the backup file of the saved msf.
Definition at line 165 of file albaVMEManager.h.
|
protected |
Directory name in which is present the msf file.
Definition at line 166 of file albaVMEManager.h.
|
protected |
Application stamps for our application.
Definition at line 167 of file albaVMEManager.h.
|
protected |
File name of the data associated to the tree.
Definition at line 168 of file albaVMEManager.h.
|
protected |
File name of compressed archive in which save the data associated to the tree.
Definition at line 169 of file albaVMEManager.h.
|
protected |
Temporary directory for zmsf extraction.
Definition at line 170 of file albaVMEManager.h.
|
protected |
File extension.
Definition at line 171 of file albaVMEManager.h.
|
protected |
used when an MSF is being loaded
Definition at line 173 of file albaVMEManager.h.
|
protected |
used to enable the Encryption for the MSF
Definition at line 174 of file albaVMEManager.h.
|
protected |
used to store binary files associated to time varying VMEs as multiple files or not.
Definition at line 175 of file albaVMEManager.h.
|
protected |
Associated storage.
Definition at line 176 of file albaVMEManager.h.
|
protected |
set true for test mode without GUI
Definition at line 177 of file albaVMEManager.h.
|
protected |
Definition at line 179 of file albaVMEManager.h.