source:
XIOS/dev/branch_openmp/src/xml_node.hpp
@
2082
Last change on this file since 2082 was 1460, checked in by yushan, 6 years ago | |
---|---|
|
|
File size: 1.4 KB |
Rev | Line | |
---|---|---|
[591] | 1 | #ifndef __XIOS_CXMLNode__ |
2 | #define __XIOS_CXMLNode__ | |
[219] | 3 | |
4 | /// rapidXML headers /// | |
5 | #include <rapidxml.hpp> | |
6 | ||
[591] | 7 | /// XIOS headers /// |
8 | #include "xios_spl.hpp" | |
[219] | 9 | |
[335] | 10 | namespace xios |
[219] | 11 | { |
[1460] | 12 | namespace xml |
13 | { | |
14 | /// ////////////////////// Déclarations ////////////////////// /// | |
15 | typedef xios_map<StdString, StdString> THashAttributes; | |
[219] | 16 | |
[1460] | 17 | class CXMLNode |
18 | { | |
19 | public : | |
[219] | 20 | |
[1460] | 21 | /// Constructeurs /// |
22 | CXMLNode(rapidxml::xml_node<char> * const root); | |
[219] | 23 | |
[1460] | 24 | /// Destructeur /// |
25 | ~CXMLNode(void); | |
[219] | 26 | |
[1460] | 27 | /// Accesseurs /// |
28 | StdString getElementName(void) const; | |
29 | THashAttributes getAttributes(void) const; | |
[219] | 30 | |
[1460] | 31 | /// Mutateurs /// |
32 | bool goToNextElement(void); | |
33 | bool goToChildElement(void); | |
34 | bool goToParentElement(void); | |
35 | bool getContent(StdString & content); | |
[219] | 36 | |
[1460] | 37 | /// Accesseurs statiques /// |
38 | static const StdString & GetRootName(void); | |
[219] | 39 | |
[1460] | 40 | private : |
[219] | 41 | |
[1460] | 42 | /// Constructeurs /// |
43 | CXMLNode(void); // Not implemented yet. | |
44 | CXMLNode(const CXMLNode & node); // Not implemented yet. | |
45 | CXMLNode(const CXMLNode * const node); // Not implemented yet. | |
[219] | 46 | |
[1460] | 47 | rapidxml::xml_node<char> * node; |
48 | int level; | |
[219] | 49 | |
[1460] | 50 | static StdString RootName; |
[219] | 51 | |
[1460] | 52 | }; //class CXMLParser |
53 | ||
54 | }// namespace xml | |
[335] | 55 | } // namespace xios |
[219] | 56 | |
[591] | 57 | #endif // __XIOS_CXMLNode__ |
Note: See TracBrowser
for help on using the repository browser.