Crazy Eddie's GUI System
0.8.7
|
30 #ifndef _CEGUIProperty_h_
31 #define _CEGUIProperty_h_
33 #include "CEGUI/Base.h"
34 #include "CEGUI/String.h"
35 #include "CEGUI/XMLSerializer.h"
64 static const String XMLElementName;
65 static const String NameXMLAttributeName;
66 static const String ValueXMLAttributeName;
94 d_default(defaultValue),
95 d_writeXML(writesXML),
241 virtual Property* clone()
const = 0;
256 #endif // end of guard _CEGUIProperty_h_
const String & getDataType(void) const
Return string data type of this Property.
Definition: Property.h:133
virtual String get(const PropertyReceiver *receiver) const =0
Return the current value of the Property as a String.
const String & getHelp(void) const
Return a String that describes the purpose and usage of this Property.
Definition: Property.h:114
virtual bool isReadable() const
Returns whether the property is readable.
Class used to create XML Document.
Definition: XMLSerializer.h:87
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
bool d_writeXML
Specifies whether writeXMLToStream should do anything for this property.
Definition: Property.h:247
String d_dataType
Holds data type of this property.
Definition: Property.h:249
virtual String getDefault(const PropertyReceiver *receiver) const
Returns the default value of the Property as a String.
String d_name
String that stores the Property name.
Definition: Property.h:244
Definition: MemoryAllocatedObject.h:110
virtual bool isWritable() const
Returns whether the property is writable.
virtual void writeXMLToStream(const PropertyReceiver *receiver, XMLSerializer &xml_stream) const
Writes out an XML representation of this class to the given stream.
virtual bool doesWriteXML() const
Returns whether the property writes to XML streams.
String d_help
String that stores the Property help text.
Definition: Property.h:245
const String & getName(void) const
Return a the name of this Property.
Definition: Property.h:124
const String & getOrigin(void) const
Return string origin of this Property.
Definition: Property.h:142
virtual void initialisePropertyReceiver(PropertyReceiver *) const
function to allow initialisation of a PropertyReceiver.
Definition: Property.h:239
virtual ~Property(void)
Destructor for Property objects.
Definition: Property.h:104
virtual bool isDefault(const PropertyReceiver *receiver) const
Returns whether the property is at it's default value.
String class used within the GUI system.
Definition: String.h:64
Property(const String &name, const String &help, const String &defaultValue="", bool writesXML=true, const String &dataType="Unknown", const String &origin="Unknown")
Definition: Property.h:91
virtual void set(PropertyReceiver *receiver, const String &value)=0
Sets the value of the property.
An abstract class that defines the interface to access object properties by name.
Definition: Property.h:62
String d_default
String that stores the Property default value string.
Definition: Property.h:246
Dummy base class to ensure correct casting of receivers.
Definition: Property.h:46
String d_origin
Holds origin of this property.
Definition: Property.h:251