16#ifndef __albaVMEManager_H__
17#define __albaVMEManager_H__
30class wxArchiveFSHandler;
179 friend class albaVMEManagerTest;
Implementation of the message object for the Subject/Observer design pattern.
class name: albaGUIFileHistory class that handle a list of file called history.
Interface implementing the Observer of the Subject/Observer design pattern.
albaString - performs common string operations on c-strings.
albaVMEManager : Class managing VMEs inside a ALBA application.
void SetSingleBinaryFile(bool singleFile)
Set the flag for saving binary files associated to time varying VMEs.
bool m_TestMode
set true for test mode without GUI
int MSFSave()
Save the msf tree.
void VmeAdd(albaVME *n)
Add the vme to the tree.
void SetFileName(albaString &filename)
Set the filename for the current tree.
void TimeGetBounds(double *min, double *max)
Get the time bounds of the tree.
albaString m_MSFDir
Directory name in which is present the msf file.
albaVMEStorage * GetStorage()
Return the storage associated to the current tree.
void MakeBakFileOnSave(bool bakfile=true)
Set the flag for bak file generation on saving MSF file.
albaString m_MsfFileExtension
File extension.
void NotifyAdd(albaVME *n)
Send the event VME_ADDED to inform logic that the vme and its subtree are added to the tree.
void SetFileHistoryMenu(wxMenu *menu)
Link to the main men the file history manager.
albaGUIFileHistory m_FileHistory
Used to hold recently opened files.
bool AskConfirmAndSave()
Show the dialog to confirm the save of the current tree.
void MSFNew()
Destroy all nodes (also the root), for each destroyed node the manager send an event VME_REMOVING,...
int MSFSaveAs()
Save the msf tree with different filename.
albaString m_TmpDir
Temporary directory for zmsf extraction.
void ZIPSave(albaString file="")
Save the msf tree into a compressed file.
bool m_Modified
Used to known when the tree has been modified...
bool MSFIsModified()
Return true if the tree has been modifyed.
bool m_LoadingFlag
used when an MSF is being loaded
void IgnoreAppStamp(bool ignore)
Set the flag for attive controll in Open Alba Project.
albaString m_MSFFile
File name of the data associated to the tree.
int m_FileHistoryIdx
Identifier of the file to open.
albaVMEStorage * m_Storage
Associated storage.
void SetApplicationStamp(albaString &appstamp)
Set the application stamp; this is the mark of the specific vertical application (is always equal to ...
void SetApplicationStamp(std::vector< albaString > appstamp)
Set other application stamps for compatibility with similar applications (the application stamp itsel...
void MSFModified(bool modified)
Set the modify flag.
albaVMEManager()
constructor
void RemoveTempDirectory()
Remove temporary directory used for compressed msf files.
void SetMsfFileExtension(albaString &extension)
Set the file extension.
albaString m_ZipFile
File name of compressed archive in which save the data associated to the tree.
bool m_MakeBakFile
Flag used to create or not the backup file of the saved msf.
int MSFOpen(albaString filename)
Open the msf filename.
void SetTestMode(bool testmode)
Set the flag for test mode without GUI.
void TimeSet(double time)
Set the time for the tree.
void SetListener(albaObserver *listener)
Set the event receiver object.
void OnEvent(albaEventBase *e)
Process events coming from other components.
bool MakeZip(const albaString &zipname, wxArrayString *files)
Create a compressed msf file: zmsf.
int MSFOpen(int file_id)
Open the msf from file history.
bool m_SingleBinaryFile
used to store binary files associated to time varying VMEs as multiple files or not.
wxArchiveFSHandler * m_ZipHandler
Handler for zip archive (used to open zmsf files)
albaVMERoot * GetRoot()
Return the tree's root.
void SetDirName(albaString dirname)
Set the filename for the current tree.
void AddCreationDate(albaVME *vme)
Set tag with creation date for the node passed as argument.
bool m_Crypting
used to enable the Encryption for the MSF
wxFileSystem * m_FileSystem
File system manager.
albaString & GetFileName()
Get the filename of the current tree.
wxConfigBase * m_Config
Application configuration for file history management.
std::vector< albaString > m_AppStamp
Application stamps for our application.
void NotifyRemove(albaVME *n)
Send the event VME_REMOVING to inform logic that the vme and its subtree are removed from the tree.
albaObserver * m_Listener
Register the event receiver object.
void VmeRemove(albaVME *n)
Remove the vme from the tree.
const char * ZIPOpen(albaString filename)
Open the compressed zmsf filename.
~albaVMEManager()
destructor
albaVMERoot - a VME is the root of a tree of VME nodes.
A storage class for MSF local files.