32 #ifndef _CEGUITypedProperty_h_
33 #define _CEGUITypedProperty_h_
35 #include "CEGUI/Property.h"
36 #include "CEGUI/PropertyHelper.h"
37 #include "CEGUI/Exceptions.h"
57 TypedProperty(
const String& name,
const String& help,
const String& origin =
"Unknown",
typename Helper::pass_type defaultValue = T(),
bool writesXML =
true):
58 Property(name, help, Helper::toString(defaultValue), writesXML, Helper::getDataTypeName(), origin)
67 return Helper::toString(
getNative(receiver));
73 setNative(receiver, Helper::fromString(value));
84 setNative_impl(receiver,value);
95 return getNative_impl(receiver);
100 virtual void setNative_impl(
PropertyReceiver* receiver,
typename Helper::pass_type value) = 0;
101 virtual typename Helper::safe_method_return_type getNative_impl(
const PropertyReceiver* receiver)
const = 0;
106 #endif // end of guard _CEGUITypedProperty_h_