14 #include "msdevstudio/MSconfig.h"
33 :
BaseXML (
"BinsBase", controller ),
71 if ( number < 2 )
return;
92 list < XmlElement * > nodelist;
95 list < XmlElement * > :: const_iterator first = nodelist.begin();
96 while ( first != nodelist.end() ) {
XmlElement * createElement()
Creates a new element node.
const std::string & name() const
Returns the name of the Bins container object.
BinnerAxisXML class interface.
Type * create(const std::string &name)
Creates a new object from a prototype named name.
virtual bool attribute(const std::string &name, bool &value) const =0
Sets value to the attribute name's value.
A Factory singleton class for creating objects whose class derives from BinsBase. ...
virtual const BinnerAxis * getBinnerOn(hippodraw::Axes::Type axis) const =0
Returns the BinnerAxis object used by this object.
A pure virtual base class of XML element wrapper.
void fillNodeList(const XmlElement *element, std::list< XmlElement * > &nodelist)
Fills the nodelist with immediate child nodes of element with nodes that can be handled by this objec...
XmlElement * createElement(const BinnerAxis &binner)
Returns a newly created XmlElement with attributes set for binner.
A class XML creation and parsing of XmlElement for BinnerAxis classes.
std::string m_axis
The attribute name for the axis of the BinnerAxisXML element.
BinsBaseXML class interface.
hippodraw::BinsBase class interface
PyArray_TYPES type(numeric::array arr)
BinnerAxisXML * m_binnerXML
The BinsBaseXML object used by this object.
void createChildren(XmlElement &tag, const BinsBase &bins)
Creates the child XML elements of this element.
virtual void appendChild(const XmlNode &child)=0
Appends a child element to the element.
The base class for the BinnerAxis hierarchy.
static BinsFactory * instance()
Returns a pointer to the singleton instance.
XmlElement class interface.
~BinsBaseXML()
The destructor.
BinsBaseXML(XmlController *)
A default constructor for avoiding creation except by itself or with derived classes.
virtual void setBinnerOn(BinnerAxis *, hippodraw::Axes::Type axis)=0
Sets the bin calculator on specified axis.
const std::string m_type
The attribute name for the type of object.
virtual BinsBase * createObject(const XmlElement *element)
Creates an object derived from BinsBaseBase.
A base class of XML element controllers.
virtual int getNumberOfAxes() const =0
Returns the number of axes handled by the BinsBase derived class.
A base class that is the interface between GUI and the XML serialization and deserialization.
virtual BinnerAxis * createObject(const XmlElement *element)
Creates an object derived from BinnerAxis.
The base class for the binner hierarchy.
virtual void setAttribute(const std::string &name, bool value)=0
Sets attribute named name to the int value value.