source: XIOS/dev/branch_openmp/src/xml_node.hpp @ 1552

Last change on this file since 1552 was 1460, checked in by yushan, 6 years ago

branch_openmp merged with XIOS_DEV_CMIP6@1459

  • 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
RevLine 
[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]10namespace 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.