73 virtual bool fileOpen(
const std::string& path) = 0;
86 virtual bool fileSave(
const std::string& dir,
const std::string& name) = 0;
#define SF_DECL_IFACE(InterfaceType, ParamType, FuncName)
Declares a public static function in the class where it is used. Where: InterfaceType: Global typenam...
Definition TClassRegistration.h:71
Dialog containing multiple property pages.
Definition qt/PropertySheetDialog.h:14
Base class for the interface.
Definition StorageInterface.h:18
bool initialize()
Initializes the implementation for operation. Calls doInitialize.
virtual std::string getFileExtension() const =0
Gets the extension of the data file.
virtual void addPropertyPages(PropertySheetDialog *sheet)
virtual void fileClose()=0
Closes the opened file if any.
virtual std::string getFileDescription() const =0
Gets the description of the data file.
virtual bool fileOpen(const std::string &path)=0
Opens the data file.
EState
States of executing saving.
Definition StorageInterface.h:97
virtual EState GetState() const =0
For testing if saving is ready or in error.
virtual ~StorageInterface()
Virtual destructor for derived classes.
virtual bool doInitialize(bool init)
Must be overridden by a derived class. Should check the hardware configuration.
Definition StorageInterface.h:118
virtual bool fileSave(const std::string &dir, const std::string &name)=0
Saves the data file. Return true on success.
bool uinitialize()
Uninitializes the implementation. Calls doInitialize.
virtual std::string getSavedFileName() const =0
Gets the file name generated by the save sequence. This without extension and only after a file has b...
StorageInterface(const Parameters &)
Constructor for passing general structure for derived classes.
Definition Application.h:10
class _MISC_CLASS PropertySheetDialog
Definition gen/PropertySheetDialog.h:18
#define _STO_CLASS
Definition sto/iface/global.h:35
Definition StorageInterface.h:21
Parameters(int mode)
Definition StorageInterface.h:22
int _mode
Definition StorageInterface.h:26