13 #include "msdevstudio/MSconfig.h"
27 :
BaseXML (
"Color", controller ),
57 color->
setColor ( red, green, blue );
XmlElement * createElement()
Creates a new element node.
virtual bool attribute(const std::string &name, bool &value) const =0
Sets value to the attribute name's value.
void setColor(const std::string &)
Sets the color.
std::string m_red
Attribute name for red.
A pure virtual base class of XML element wrapper.
ColorXML class interface.
A Color class for creating the color object following the standard RGB color space.
XmlElement class interface.
Color * createObject(const XmlElement *element)
Sets the attributes of the object from the element values.
A base class of XML element controllers.
std::string m_blue
Attribute name for blue.
A base class that is the interface between GUI and the XML serialization and deserialization.
std::string m_green
Attribute name for green.
virtual void setAttribute(const std::string &name, bool value)=0
Sets attribute named name to the int value value.
ColorXML(const ColorXML &)
A private copy constructor in order to avoid copying.