Last change
on this file since 1348 was
1334,
checked in by yushan, 7 years ago
|
omp_dev
|
-
Property copyright set to
Software name : XIOS (Xml I/O Server) http://forge.ipsl.jussieu.fr/ioserver Creation date : January 2009 Licence : CeCCIL version2 see license file in root directory : Licence_CeCILL_V2-en.txt or http://www.cecill.info/licences/Licence_CeCILL_V2-en.html Holder : CEA/LSCE (Laboratoire des Sciences du CLimat et de l'Environnement) CNRS/IPSL (Institut Pierre Simon Laplace) Project Manager : Yann Meurdesoif yann.meurdesoif@cea.fr
|
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 | { |
---|
[1331] | 12 | namespace xml |
---|
| 13 | { |
---|
| 14 | /// ////////////////////// Déclarations ////////////////////// /// |
---|
| 15 | typedef xios_map<StdString, StdString> THashAttributes; |
---|
[219] | 16 | |
---|
[1331] | 17 | class CXMLNode |
---|
| 18 | { |
---|
| 19 | public : |
---|
[219] | 20 | |
---|
[1331] | 21 | /// Constructeurs /// |
---|
| 22 | CXMLNode(rapidxml::xml_node<char> * const root); |
---|
[219] | 23 | |
---|
[1331] | 24 | /// Destructeur /// |
---|
| 25 | ~CXMLNode(void); |
---|
[219] | 26 | |
---|
[1331] | 27 | /// Accesseurs /// |
---|
| 28 | StdString getElementName(void) const; |
---|
| 29 | THashAttributes getAttributes(void) const; |
---|
[219] | 30 | |
---|
[1331] | 31 | /// Mutateurs /// |
---|
| 32 | bool goToNextElement(void); |
---|
| 33 | bool goToChildElement(void); |
---|
| 34 | bool goToParentElement(void); |
---|
| 35 | bool getContent(StdString & content); |
---|
[219] | 36 | |
---|
[1331] | 37 | /// Accesseurs statiques /// |
---|
| 38 | static const StdString & GetRootName(void); |
---|
[219] | 39 | |
---|
[1331] | 40 | private : |
---|
[219] | 41 | |
---|
[1331] | 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 | |
---|
[1331] | 47 | rapidxml::xml_node<char> * node; |
---|
| 48 | int level; |
---|
[219] | 49 | |
---|
[1331] | 50 | static StdString RootName; |
---|
[1334] | 51 | //#pragma omp threadprivate(RootName) |
---|
[219] | 52 | |
---|
[1331] | 53 | }; //class CXMLParser |
---|
| 54 | |
---|
| 55 | }// namespace xml |
---|
[335] | 56 | } // namespace xios |
---|
[219] | 57 | |
---|
[591] | 58 | #endif // __XIOS_CXMLNode__ |
---|
Note: See
TracBrowser
for help on using the repository browser.