NTupleXML.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
15 #ifndef _NTupleXML_H_
16 #define _NTupleXML_H_
17 
18 #include "BaseXML.h"
19 
20 #include <vector>
21 
22 namespace hippodraw {
23 
24 class DataSource;
25 
34 class MDL_HIPPOPLOT_API NTupleXML : virtual public BaseXML
35 {
36 
37 private:
38 
40  NTupleXML ( const NTupleXML & );
41 
43  std::string m_name;
44 
47  std::string m_col_name;
48 
51  std::string m_data;
52 
55  std::string m_label;
56 
59  void setAttributes ( XmlElement * tag, const DataSource & ntuple );
60 
63  void createChildren ( XmlElement * tag, const DataSource & ntuple );
64 
67  void createChildren2D ( XmlElement * tag, const DataSource & ntuple );
68 
71  void createChildren3D ( XmlElement * tag, const DataSource & ntuple );
72 
73 public:
74 
77 
80  XmlElement * createElement ( const DataSource & ntuple );
81 
84  const DataSource * getObject ( const XmlElement & tag );
85 
88  std::string getName ( const XmlElement & tag ) const;
89 
90 };
91 
92 } // namespace hippodraw
93 
94 #endif // _NTupleXML_H_
#define MDL_HIPPOPLOT_API
Definition: libhippo.h:36
A singleton class that is does XML serialization and deserialization of derived classes of NTuple...
Definition: NTupleXML.h:34
std::string m_col_name
the attribute name for the column index.
Definition: NTupleXML.h:47
BaseXML class interface.
A pure virtual base class of XML element wrapper.
Definition: XmlElement.h:30
std::string m_name
The tag name for the name attribute.
Definition: NTupleXML.h:43
std::string m_data
The tag name of the column data.
Definition: NTupleXML.h:51
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
std::string m_label
The attribute name of the column label.
Definition: NTupleXML.h:55
Base class for DataSource.
Definition: DataSource.h:55

Generated for HippoDraw Class Library by doxygen