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