14 #include "msdevstudio/MSconfig.h"
31 :
BaseXML (
"BinnerBase", controller ),
56 double high = range.
high();
57 double low = range.
low ();
82 Range range ( low, high );
XmlElement * createElement()
Creates a new element node.
std::string m_width
The attribute name for the width parameter of the binner.
void setAttributes(XmlElement *tag, const BinnerAxis &binner)
Sets the attributes of the elment.
BinnerAxisXML class interface.
Type * create(const std::string &name)
Creates a new object from a prototype named name.
double high() const
Returns the maximum of the range object.
virtual bool attribute(const std::string &name, bool &value) const =0
Sets value to the attribute name's value.
const Range & getRange() const
Returns the range.
A Factory singleton class for creating objects whose class derives from BinnerAxis.
A pure virtual base class of XML element wrapper.
virtual const Range & setBinWidth(double width)=0
Sets the bin width and adjusts the range and number of bins accordingly.
virtual const Range & setRange(const Range &, bool hold_width=true)=0
Sets the range.
BinnerAxisXML(const BinnerAxisXML &)
A private copy constructor in order to avoid copying.
PyArray_TYPES type(numeric::array arr)
The base class for the BinnerAxis hierarchy.
XmlElement class interface.
const std::string m_type
The attribute name for the type of object.
static BinnerAxisFactory * instance()
Returns a pointer to the singleton instance.
A base class of XML element controllers.
double low() const
Returns the minimum of the range object.
virtual double getBinWidth() const =0
Returns the bin width parameter.
std::string m_low
The attribute name for the low end of the binner's Range.
Expresses a range of values.
A base class that is the interface between GUI and the XML serialization and deserialization.
hippodraw::BinnerAxis class interface
virtual BinnerAxis * createObject(const XmlElement *element)
Creates an object derived from BinnerAxis.
const std::string & name() const
Returns the name of this binner.
virtual void setAttribute(const std::string &name, bool value)=0
Sets attribute named name to the int value value.
std::string m_high
The attribute name for the high end of the binner's Range.