Public Member Functions | |
PropertyDefinitionBase (const String &name, const String &help, const String &initialValue, bool redrawOnWrite, bool layoutOnWrite) | |
void | set (PropertyReceiver *receiver, const String &value) |
Sets the value of the property. | |
virtual void | writeXMLToStream (XMLSerializer &xml_stream) const |
Writes an xml representation of the PropertyDefinitionBase based object to out_stream. | |
Protected Member Functions | |
virtual void | writeXMLElementType (XMLSerializer &xml_stream) const =0 |
Write out the text of the XML element type. Note that you should not write the opening '<' character, nor any other information such as attributes in this function. The writeExtraAttributes function can be used for writing attributes. | |
virtual void | writeXMLAttributes (XMLSerializer &xml_stream) const |
Write out any xml attributes added in a sub-class. Note that you should not write the closing '/>' character sequence, nor any other information in this function. You should always call the base class implementation of this function when overriding. | |
Protected Attributes | |
bool | d_writeCausesRedraw |
bool | d_writeCausesLayout |
void CEGUI::PropertyDefinitionBase::set | ( | PropertyReceiver * | receiver, | |
const String & | value | |||
) | [virtual] |
Sets the value of the property.
receiver | Pointer to the target object. | |
value | A String object that contains a textual representation of the new value to assign to the Property. |
InvalidRequestException | Thrown when the Property was unable to interpret the content of value. |
Implements CEGUI::Property.
Reimplemented in CEGUI::PropertyDefinition, and CEGUI::PropertyLinkDefinition.
void CEGUI::PropertyDefinitionBase::writeXMLAttributes | ( | XMLSerializer & | xml_stream | ) | const [protected, virtual] |
Write out any xml attributes added in a sub-class. Note that you should not write the closing '/>' character sequence, nor any other information in this function. You should always call the base class implementation of this function when overriding.
xml_stream | Stream where xml data should be output. |
Reimplemented in CEGUI::PropertyLinkDefinition.
References CEGUI::XMLSerializer::attribute(), CEGUI::Property::d_default, CEGUI::Property::d_name, and CEGUI::String::empty().
Referenced by writeXMLToStream().
virtual void CEGUI::PropertyDefinitionBase::writeXMLElementType | ( | XMLSerializer & | xml_stream | ) | const [protected, pure virtual] |
Write out the text of the XML element type. Note that you should not write the opening '<' character, nor any other information such as attributes in this function. The writeExtraAttributes function can be used for writing attributes.
xml_stream | Stream where xml data should be output. |
Implemented in CEGUI::PropertyDefinition, and CEGUI::PropertyLinkDefinition.
Referenced by writeXMLToStream().
void CEGUI::PropertyDefinitionBase::writeXMLToStream | ( | XMLSerializer & | xml_stream | ) | const [virtual] |
Writes an xml representation of the PropertyDefinitionBase based object to out_stream.
xml_stream | Stream where xml data should be output. |
References CEGUI::XMLSerializer::closeTag(), writeXMLAttributes(), and writeXMLElementType().