|
Crazy Eddie's GUI System 0.8.7
|
base class for properties able to do native set/get More...
#include <TypedProperty.h>
Inherits CEGUI::Property.
Inherited by CEGUI::TplProperty< Window, String >, CEGUI::FalagardPropertyBase< T >, and CEGUI::TplProperty< C, T >.
Collaboration diagram for CEGUI::TypedProperty< T >:Public Types | |
| typedef PropertyHelper< T > | Helper |
Public Member Functions | |
| TypedProperty (const String &name, const String &help, const String &origin="Unknown", typename Helper::pass_type defaultValue=T(), bool writesXML=true) | |
| virtual String | get (const PropertyReceiver *receiver) const |
| Return the current value of the Property as a String. | |
| virtual void | set (PropertyReceiver *receiver, const String &value) |
| Sets the value of the property. | |
| virtual void | setNative (PropertyReceiver *receiver, typename Helper::pass_type value) |
| native set method, sets the property given a native type | |
| virtual Helper::safe_method_return_type | getNative (const PropertyReceiver *receiver) const |
| native get method, returns the native type by copy | |
Public Member Functions inherited from CEGUI::Property | |
| Property (const String &name, const String &help, const String &defaultValue="", bool writesXML=true, const String &dataType="Unknown", const String &origin="Unknown") | |
| virtual | ~Property (void) |
| Destructor for Property objects. | |
| const String & | getHelp (void) const |
| Return a String that describes the purpose and usage of this Property. | |
| const String & | getName (void) const |
| Return a the name of this Property. | |
| const String & | getDataType (void) const |
| Return string data type of this Property. | |
| const String & | getOrigin (void) const |
| Return string origin of this Property. | |
| virtual bool | isDefault (const PropertyReceiver *receiver) const |
| Returns whether the property is at it's default value. | |
| virtual String | getDefault (const PropertyReceiver *receiver) const |
| Returns the default value of the Property as a String. | |
| virtual void | writeXMLToStream (const PropertyReceiver *receiver, XMLSerializer &xml_stream) const |
| Writes out an XML representation of this class to the given stream. | |
| virtual bool | isReadable () const |
| Returns whether the property is readable. | |
| virtual bool | isWritable () const |
| Returns whether the property is writable. | |
| virtual bool | doesWriteXML () const |
| Returns whether the property writes to XML streams. | |
| virtual void | initialisePropertyReceiver (PropertyReceiver *) const |
| function to allow initialisation of a PropertyReceiver. | |
| virtual Property * | clone () const =0 |
Protected Member Functions | |
| virtual void | setNative_impl (PropertyReceiver *receiver, typename Helper::pass_type value)=0 |
| virtual Helper::safe_method_return_type | getNative_impl (const PropertyReceiver *receiver) const =0 |
Additional Inherited Members | |
Static Public Attributes inherited from CEGUI::Property | |
| static const String | XMLElementName |
| static const String | NameXMLAttributeName |
| static const String | ValueXMLAttributeName |
Protected Attributes inherited from CEGUI::Property | |
| String | d_name |
| String that stores the Property name. | |
| String | d_help |
| String that stores the Property help text. | |
| String | d_default |
| String that stores the Property default value string. | |
| bool | d_writeXML |
| Specifies whether writeXMLToStream should do anything for this property. | |
| String | d_dataType |
| Holds data type of this property. | |
| String | d_origin |
| Holds origin of this property. | |
base class for properties able to do native set/get
|
inlinevirtual |
Return the current value of the Property as a String.
| receiver | Pointer to the target object. |
Implements CEGUI::Property.
References CEGUI::TypedProperty< T >::getNative().
Referenced by CEGUI::PropertySet::getProperty().
|
inlinevirtual |
native get method, returns the native type by copy
References CEGUI::Property::d_name, CEGUI::Property::d_origin, and CEGUI::Property::isReadable().
Referenced by CEGUI::TypedProperty< T >::get(), and CEGUI::PropertySet::getProperty().
|
protectedpure virtual |
|
inlinevirtual |
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.
References CEGUI::TypedProperty< T >::setNative().
Referenced by CEGUI::PropertySet::setProperty().
|
inlinevirtual |
native set method, sets the property given a native type
References CEGUI::Property::d_name, CEGUI::Property::d_origin, and CEGUI::Property::isWritable().
Referenced by CEGUI::TypedProperty< T >::set(), and CEGUI::PropertySet::setProperty().