source: XMLIO_V2/dev/common/src/xmlio/xml_node.hpp @ 231

Last change on this file since 231 was 219, checked in by hozdoba, 13 years ago

Préparation nouvelle arborescence

File size: 1.4 KB
Line 
1#ifndef __XMLIO_CXMLNode__
2#define __XMLIO_CXMLNode__
3
4/// rapidXML headers ///
5#include <rapidxml.hpp>
6
7/// xmlioserver headers ///
8#include "xmlioserver_spl.hpp"
9
10namespace xmlioserver
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
36            /// Accesseurs statiques ///
37            static const StdString & GetRootName(void);
38
39         private :
40
41            /// Constructeurs ///
42            CXMLNode(void);                        // Not implemented yet.
43            CXMLNode(const CXMLNode & node);       // Not implemented yet.
44            CXMLNode(const CXMLNode * const node); // Not implemented yet.
45
46            rapidxml::xml_node<char> * node;
47
48            static StdString RootName;
49
50      }; //class CXMLParser
51
52   }// namespace xml
53} // namespace xmlioserver
54
55#endif // __XMLIO_CXMLNode__
Note: See TracBrowser for help on using the repository browser.