TupleCutXML.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _TupleCutXML_H_
15 #define _TupleCutXML_H_
16 
17 #include "BaseXML.h"
18 
19 #include "axes/AxesType.h"
20 
21 #include <vector>
22 
23 namespace hippodraw {
24 
25 class TupleCut;
26 
33 {
34 
35 private:
36 
39 
41  std::string m_low;
42 
44  std::string m_high;
45 
47  std::string m_invert;
48 
50  std::string m_column;
51 
58  std::string m_dim;
59 
62  std::string m_axis;
63 
65  TupleCutXML ( const TupleCutXML & );
66 
68  void createChildren ( XmlElement &, const TupleCut & );
69 
72  void setAxisAttributes ( TupleCut * cut,
74  const XmlElement * element ) const;
75 
76 public:
77 
80  TupleCutXML ( XmlController * controller );
81 
85  XmlElement * createElement ( unsigned int i, const TupleCut & cut );
86 
90  bool hasMultiDimTupleCut ( const XmlElement * element ) const;
91 
94  TupleCut * getObject ( const XmlElement & tag ) const;
95 
99  void getObjects ( const XmlElement * element,
100  std::vector < TupleCut * > & cuts );
101 
105  void setAttributes ( TupleCut * & cut, const XmlElement * element ) const;
106 
107 };
108 
109 } // namespace hippodraw
110 
111 #endif // _TupleCutXML_H_
#define MDL_HIPPOPLOT_API
Definition: libhippo.h:36
unsigned int i
BaseXML class interface.
std::string m_column
The column index attribute name.
Definition: TupleCutXML.h:50
A pure virtual base class of XML element wrapper.
Definition: XmlElement.h:30
The class expresses a cut on a DataSource, i.e.
Definition: TupleCut.h:43
static TupleCutXML * s_instance
The pointer to the singleton object.
Definition: TupleCutXML.h:38
std::string m_invert
The inversion attribute name.
Definition: TupleCutXML.h:47
The namespace for axes.
std::string m_low
The low end of Range attribute name.
Definition: TupleCutXML.h:41
std::string m_dim
The number of dimension attribute name.
Definition: TupleCutXML.h:58
std::string m_axis
The axis attribute name.
Definition: TupleCutXML.h:62
A base class of XML element controllers.
Definition: BaseXML.h:35
std::string m_high
The high end of Range attribute name.
Definition: TupleCutXML.h:44
A base class that is the interface between GUI and the XML serialization and deserialization.
Definition: XmlController.h:53
Type
Axes constants.
Definition: AxesType.h:31
A class that is does XML serialization and de-serialization of derived classes of TupleCut...
Definition: TupleCutXML.h:32

Generated for HippoDraw Class Library by doxygen