24 :
BaseXML (
"AxisTick", controller ),
35 double value = tick.
value ();
38 const string & label = tick.
content ();
49 bool ok = element -> attribute (
m_value, value );
50 tick -> setValue ( value );
53 ok = element -> attribute (
m_label, label );
54 tick -> setContent ( label );
void setAttributes(XmlElement &tag, const AxisTick &tick)
Sets the attributes of the XmlElement tag from information in the AxisTick object tick...
A class to maintain tick coordinates and string values.
AxisTickXML(const AxisTickXML &)
A private copy constructor in order to avoid copying.
A pure virtual base class of XML element wrapper.
std::string m_label
The attribute name for tick labels.
XmlElement class interface.
double value() const
Returns the value of the coordinate.
A base class of XML element controllers.
const std::string & content() const
Returns the content at the coordinate.
std::string m_value
The attribute name for tick values.
A base class that is the interface between GUI and the XML serialization and deserialization.
AxisTickXML class interface.
virtual void setAttribute(const std::string &name, bool value)=0
Sets attribute named name to the int value value.
AxisTick class interface.