Line | |
---|
1 | /*! |
---|
2 | * @file gui_saveable.h |
---|
3 | * @brief Definition of ... |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _GUI_SAVEABLE_H |
---|
7 | #define _GUI_SAVEABLE_H |
---|
8 | |
---|
9 | #include "base_object.h" |
---|
10 | #include "multi_type.h" |
---|
11 | #include <list> |
---|
12 | |
---|
13 | // FORWARD DECLARATION |
---|
14 | |
---|
15 | |
---|
16 | //! A class for ... |
---|
17 | class GuiSaveable : virtual public BaseObject |
---|
18 | { |
---|
19 | |
---|
20 | public: |
---|
21 | |
---|
22 | |
---|
23 | protected: |
---|
24 | GuiSaveable(); |
---|
25 | virtual ~GuiSaveable(); |
---|
26 | |
---|
27 | virtual void load(const MultiType& value) = 0; |
---|
28 | virtual const MultiType& save() = 0; |
---|
29 | |
---|
30 | protected: |
---|
31 | MultiType value; |
---|
32 | }; |
---|
33 | |
---|
34 | |
---|
35 | |
---|
36 | class GuiGroup : virtual public BaseObject |
---|
37 | { |
---|
38 | public: |
---|
39 | GuiGroup(const char* name); |
---|
40 | ~GuiGroup(); |
---|
41 | |
---|
42 | void addSaveable(GuiSaveable* saveable); |
---|
43 | |
---|
44 | private: |
---|
45 | std::list<GuiSaveable*> saveables; |
---|
46 | }; |
---|
47 | |
---|
48 | |
---|
49 | #endif /* _GUI_SAVEABLE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.