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