31 #ifndef _CEGUITypedProperty_h_
32 #define _CEGUITypedProperty_h_
34 #include "CEGUI/Property.h"
35 #include "CEGUI/PropertyHelper.h"
36 #include "CEGUI/Exceptions.h"
56 TypedProperty(
const String& name,
const String& help,
const String& origin =
"Unknown",
typename Helper::pass_type defaultValue = T(),
bool writesXML =
true):
57 Property(name, help, Helper::toString(defaultValue), writesXML, Helper::getDataTypeName(), origin)
66 return Helper::toString(
getNative(receiver));
72 setNative(receiver, Helper::fromString(value));
83 setNative_impl(receiver,value);
94 return getNative_impl(receiver);
99 virtual void setNative_impl(
PropertyReceiver* receiver,
typename Helper::pass_type value) = 0;
100 virtual typename Helper::safe_method_return_type getNative_impl(
const PropertyReceiver* receiver)
const = 0;
105 #endif // end of guard _CEGUITypedProperty_h_