source: XIOS/trunk/src/xml_node.hpp @ 501

Last change on this file since 501 was 501, checked in by ymipsl, 9 years ago

Add licence copyright to all file ond directory src using the command :
svn propset -R copyright -F header_licence src

XIOS is now officialy under CeCILL licence

YM

  • 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
Line 
1#ifndef __XMLIO_CXMLNode__
2#define __XMLIO_CXMLNode__
3
4/// rapidXML headers ///
5#include <rapidxml.hpp>
6
7/// xios headers ///
8#include "xmlioserver_spl.hpp"
9
10namespace xios
11{
12   namespace xml
13   {
14      /// ////////////////////// Déclarations ////////////////////// ///
15      typedef xios_map<StdString, StdString> THashAttributes;
16
17      class CXMLNode
18      {
19         public :
20
21            /// Constructeurs ///
22            CXMLNode(rapidxml::xml_node<char> * const root);
23
24            /// Destructeur ///
25            ~CXMLNode(void);
26
27            /// Accesseurs ///
28            StdString getElementName(void) const;
29            THashAttributes getAttributes(void) const;
30
31            /// Mutateurs ///
32            bool goToNextElement(void);
33            bool goToChildElement(void);
34            bool goToParentElement(void);
35            bool getContent(StdString & content);
36
37            /// Accesseurs statiques ///
38            static const StdString & GetRootName(void);
39
40         private :
41
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.
46
47            rapidxml::xml_node<char> * node;
48            int level;
49
50            static StdString RootName;
51
52      }; //class CXMLParser
53
54   }// namespace xml
55} // namespace xios
56
57#endif // __XMLIO_CXMLNode__
Note: See TracBrowser for help on using the repository browser.