GUI::Property< T > Class Template Reference

Property management. More...

#include <Property.h>

Inheritance diagram for GUI::Property< T >:

GUI::AbstractProperty List of all members.

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.

Detailed Description

template<class T>
class GUI::Property< T >

Property management.

Parameters:
T type of property, the T type must override the operator std::ostream <<


Constructor & Destructor Documentation

template<class T>
GUI::Property< T >::Property ( const std::string &  name  )  [inline]

Construct a new Property object.

Parameters:
name the property name


Member Function Documentation

template<class T>
const T& GUI::Property< T >::getValue (  )  const [inline]

Return the property value.

Returns:
the property value

template<class T>
GUI::Property< T >::operator T * (  )  [inline]

Convert the property to the internal type T.

Returns:
a pointer to the internal value member of type T

template<class T>
T* GUI::Property< T >::operator-> (  )  [inline]

Use the property like the internal type T.

Returns:
a pointer to the internal value member of type T

template<class T>
void GUI::Property< T >::setValue ( const T &  new_value  )  [inline]

Set the property value.

Parameters:
new_value the new property value


The documentation for this class was generated from the following file:
Generated on Wed Nov 15 22:21:10 2006 for Win32 by  doxygen 1.4.7