BaseXML.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _BaseXML_H_
15 #define _BaseXML_H_
16 
17 #include "pattern/libhippo.h"
18 
19 #include <list>
20 #include <string>
21 
22 namespace hippodraw {
23 
24 class XmlController;
25 class XmlDocument;
26 class XmlElement;
27 
36 {
37 
38 private:
39 
41  BaseXML ( const BaseXML & );
42 
43 protected:
44 
47  typedef std::list < XmlElement * > NodeList_t;
48 
50  const std::string m_tagname;
51 
54  const std::string m_type;
55 
57  const std::string m_id;
58 
61 
66  BaseXML ( const std::string & tagname, XmlController * );
67 
69  void setId ( XmlElement & tag, int id );
70 
71 public:
72 
74  virtual ~BaseXML();
75 
77  virtual const std::string & tagName () const;
78 
81  XmlElement * createElement ( );
82 
86  const XmlElement * getNode ( const XmlElement * element ) const;
87 
90  void fillNodeList ( const XmlElement * element,
91  std::list < XmlElement * > & nodelist );
92 
93 };
94 
95 } // namespace hippodraw
96 
97 #endif // _BaseXML_H_

Generated for HippoDraw Class Library by doxygen