1 | #ifndef __XMLIO_CAxis__ |
---|
2 | #define __XMLIO_CAxis__ |
---|
3 | |
---|
4 | /// xmlioserver headers /// |
---|
5 | #include "xmlioserver_spl.hpp" |
---|
6 | #include "group_factory.hpp" |
---|
7 | |
---|
8 | #include "declare_group.hpp" |
---|
9 | |
---|
10 | namespace xmlioserver { |
---|
11 | namespace tree { |
---|
12 | |
---|
13 | /// ////////////////////// Déclarations ////////////////////// /// |
---|
14 | |
---|
15 | class CAxisGroup; |
---|
16 | class CAxisAttributes; |
---|
17 | class CAxis; |
---|
18 | |
---|
19 | ///-------------------------------------------------------------- |
---|
20 | |
---|
21 | // Declare/Define CAxisAttribute |
---|
22 | BEGIN_DECLARE_ATTRIBUTE_MAP(CAxis) |
---|
23 | # include "axis_attribute.conf" |
---|
24 | END_DECLARE_ATTRIBUTE_MAP(CAxis) |
---|
25 | |
---|
26 | ///-------------------------------------------------------------- |
---|
27 | |
---|
28 | class CAxis |
---|
29 | : public CObjectTemplate<CAxis> |
---|
30 | , public CAxisAttributes |
---|
31 | { |
---|
32 | /// typedef /// |
---|
33 | typedef CObjectTemplate<CAxis> SuperClass; |
---|
34 | typedef CAxisAttributes SuperClassAttribute; |
---|
35 | |
---|
36 | public : |
---|
37 | |
---|
38 | typedef CAxisAttributes RelAttributes; |
---|
39 | typedef CAxisGroup RelGroup; |
---|
40 | |
---|
41 | /// Constructeurs /// |
---|
42 | CAxis(void); |
---|
43 | explicit CAxis(const StdString & id); |
---|
44 | CAxis(const CAxis & axis); // Not implemented yet. |
---|
45 | CAxis(const CAxis * const axis); // Not implemented yet. |
---|
46 | |
---|
47 | /// Accesseurs /// |
---|
48 | const std::set<StdString> & getRelFiles(void) const; |
---|
49 | |
---|
50 | /// Test /// |
---|
51 | bool IsWritten(const StdString & filename) const; |
---|
52 | |
---|
53 | /// Mutateur /// |
---|
54 | void addRelFile(const StdString & filename); |
---|
55 | |
---|
56 | /// Vérifications /// |
---|
57 | void checkAttributes(void); |
---|
58 | |
---|
59 | /// Destructeur /// |
---|
60 | virtual ~CAxis(void); |
---|
61 | |
---|
62 | /// Accesseurs statiques /// |
---|
63 | static StdString GetName(void); |
---|
64 | static StdString GetDefName(void); |
---|
65 | |
---|
66 | static ENodeType GetType(void); |
---|
67 | |
---|
68 | private : |
---|
69 | |
---|
70 | bool isChecked; |
---|
71 | std::set<StdString> relFiles; |
---|
72 | |
---|
73 | |
---|
74 | }; // class CAxis |
---|
75 | |
---|
76 | ///-------------------------------------------------------------- |
---|
77 | |
---|
78 | // Declare/Define CAxisGroup and CAxisDefinition |
---|
79 | DECLARE_GROUP(CAxis); |
---|
80 | |
---|
81 | ///-------------------------------------------------------------- |
---|
82 | |
---|
83 | } // namespace tree |
---|
84 | } // namespace xmlioserver |
---|
85 | |
---|
86 | #endif // __XMLIO_CAxis__ |
---|