Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
StorageInterface.h
Go to the documentation of this file.
1#pragma once
3#include <misc/gen/TVector.h>
4#include <misc/gen/Value.h>
5#include <sto/iface/global.h>
6#include <utility>
7
8namespace sf
9{
10
11// Forward declaration.
13
18{
19 public:
21 {
22 explicit Parameters(int mode)
23 : _mode(mode)
24 {}
25
26 int _mode;
27 };
28
32 explicit StorageInterface(const Parameters&);
33
38
43 bool initialize();
44
50
56
57 protected:
65 virtual bool doInitialize(bool init)
66 {
67 return true;
68 }
69
70 private:
71 // Holds flag of implementation initialization.
72 bool _initialized;
73
74 // Declarations of static functions and data members to be able to create registered implementations.
76};
77
78}// namespace sf
#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 void addPropertyPages(PropertySheetDialog *sheet)
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:65
bool uinitialize()
Uninitializes the implementation. Calls doInitialize.
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