source: XMLIO_V2/dev/dev_rv/src/xml_node.hpp @ 141

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

Mise à jour depuis un autre dépôt

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