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_
#define MDL_HIPPOPLOT_API
Definition: libhippo.h:36
std::list< XmlElement * > NodeList_t
The container type for element nodes.
Definition: BaseXML.h:47
const std::string m_tagname
The tag name used for elements created by this class.
Definition: BaseXML.h:50
A pure virtual base class of XML element wrapper.
Definition: XmlElement.h:30
const std::string m_id
The attribute name for the identification of the object.
Definition: BaseXML.h:57
XmlController * m_controller
The singleton XML controller object.
Definition: BaseXML.h:60
const std::string m_type
The attribute name for the type of object.
Definition: BaseXML.h:54
A base class of XML element controllers.
Definition: BaseXML.h:35
A base class that is the interface between GUI and the XML serialization and deserialization.
Definition: XmlController.h:53

Generated for HippoDraw Class Library by doxygen