#include <Property.h>
Inheritance diagram for GUI::Property< T >:
Public Member Functions | |
Property (const std::string &name) | |
Construct a new Property object. | |
const T & | getValue () const |
Return the property value. | |
void | setValue (const T &new_value) |
Set the property value. | |
virtual std::string | toString () |
Implementation of AbstractProperty::toString. | |
virtual void | fromString (const std::string &new_value) |
Implementation of AbstractProperty::fromString. | |
operator T * () | |
Convert the property to the internal type T. | |
T * | operator-> () |
Use the property like the internal type T. |
T | type of property, the T type must override the operator std::ostream << |
GUI::Property< T >::Property | ( | const std::string & | name | ) | [inline] |
const T& GUI::Property< T >::getValue | ( | ) | const [inline] |
Return the property value.
GUI::Property< T >::operator T * | ( | ) | [inline] |
Convert the property to the internal type T.
T* GUI::Property< T >::operator-> | ( | ) | [inline] |
Use the property like the internal type T.
void GUI::Property< T >::setValue | ( | const T & | new_value | ) | [inline] |
Set the property value.
new_value | the new property value |