1 | #ifndef __XMLIO_CVar__ |
---|
2 | #define __XMLIO_CVar__ |
---|
3 | |
---|
4 | namespace xmlioserver |
---|
5 | { |
---|
6 | namespace tree |
---|
7 | { |
---|
8 | /// ////////////////////// Déclarations ////////////////////// /// |
---|
9 | |
---|
10 | class CVarGroup; |
---|
11 | class CVarAttributes; |
---|
12 | class CBaseVar; |
---|
13 | class CVar; |
---|
14 | |
---|
15 | ///-------------------------------------------------------------- |
---|
16 | |
---|
17 | // Declare/Define CVarAttribute |
---|
18 | BEGIN_DECLARE_ATTRIBUTE_MAP(CVar) |
---|
19 | #include "var_attribute.conf" |
---|
20 | END_DECLARE_ATTRIBUTE_MAP(CVar) |
---|
21 | |
---|
22 | ///-------------------------------------------------------------- |
---|
23 | |
---|
24 | class CBaseVar |
---|
25 | { // Declare CVar functionalities |
---|
26 | public : |
---|
27 | |
---|
28 | /// Constructeur et Destructeur /// |
---|
29 | CBaseVar(void); |
---|
30 | ~CBaseVar(void); |
---|
31 | |
---|
32 | }; // class CBaseVar |
---|
33 | |
---|
34 | ///-------------------------------------------------------------- |
---|
35 | |
---|
36 | class CVar |
---|
37 | : public CObjectTemplate<CVar> |
---|
38 | , public CVarAttributes |
---|
39 | , public CBaseVar |
---|
40 | { |
---|
41 | /// typedef /// |
---|
42 | typedef CObjectTemplate<CVar> SuperClass; |
---|
43 | typedef CVarAttributes SuperClassAttribute; |
---|
44 | typedef CBaseVar SuperClassBase; |
---|
45 | |
---|
46 | public : |
---|
47 | |
---|
48 | typedef CVarAttributes RelAttributes; |
---|
49 | typedef CVarGroup RelGroup; |
---|
50 | |
---|
51 | /// Constructeurs /// |
---|
52 | CVar(void); |
---|
53 | explicit CVar(const StdString & id); |
---|
54 | CVar(const CVar & var); // Not implemented yet. |
---|
55 | CVar(const CVar * const var); // Not implemented yet. |
---|
56 | |
---|
57 | /// Destructeur /// |
---|
58 | virtual ~CVar(void); |
---|
59 | |
---|
60 | /// Accesseurs statiques /// |
---|
61 | static inline StdString GetName(void); |
---|
62 | static inline StdString GetDefName(void); |
---|
63 | |
---|
64 | }; // class CVar |
---|
65 | |
---|
66 | ///-------------------------------------------------------------- |
---|
67 | |
---|
68 | // Declare/Define CVarGroup and CVarDefinition |
---|
69 | DECLARE_GROUP(CVar); |
---|
70 | |
---|
71 | /// ////////////////////// Définitions ////////////////////// /// |
---|
72 | |
---|
73 | CBaseVar::CBaseVar(void) |
---|
74 | { /* Ne rien faire de plus */ } |
---|
75 | |
---|
76 | CBaseVar::~CBaseVar(void) |
---|
77 | { /* Ne rien faire de plus */ } |
---|
78 | |
---|
79 | ///-------------------------------------------------------------- |
---|
80 | |
---|
81 | CVar::CVar(void) |
---|
82 | : CObjectTemplate<CVar>() |
---|
83 | , CVarAttributes() |
---|
84 | , CBaseVar() |
---|
85 | { /* Ne rien faire de plus */ } |
---|
86 | |
---|
87 | CVar::CVar(const StdString & id) |
---|
88 | : CObjectTemplate<CVar>(id) |
---|
89 | , CVarAttributes() |
---|
90 | , CBaseVar() |
---|
91 | { /* Ne rien faire de plus */ } |
---|
92 | |
---|
93 | CVar::~CVar(void) |
---|
94 | { /* Ne rien faire de plus */ } |
---|
95 | |
---|
96 | StdString CVar::GetName(void) { return (StdString("var")); } |
---|
97 | StdString CVar::GetDefName(void){ return (CVar::GetName()); } |
---|
98 | |
---|
99 | } // namespace tree |
---|
100 | } // namespace xmlioserver |
---|
101 | |
---|
102 | #endif // __XMLIO_CVar__ |
---|