#include <Karto.h>
Public Member Functions | |
virtual Parameter * | Clone () |
const T & | GetValue () const |
virtual const std::string | GetValueAsString () const |
template<> | |
const std::string | GetValueAsString () const |
template<> | |
const std::string | GetValueAsString () const |
Parameter & | operator= (const Parameter &rOther) |
T | operator= (T value) |
Parameter (const std::string &rName, T value, ParameterManager *pParameterManger=NULL) | |
Parameter (const std::string &rName, const std::string &rDescription, T value, ParameterManager *pParameterManger=NULL) | |
void | SetValue (const T &rValue) |
virtual void | SetValueFromString (const std::string &rStringValue) |
template<> | |
void | SetValueFromString (const std::string &rStringValue) |
template<> | |
void | SetValueFromString (const std::string &rStringValue) |
virtual | ~Parameter () |
Protected Attributes | |
T | m_Value |
Parameter class
karto::Parameter< T >::Parameter | ( | const std::string & | rName, |
T | value, | ||
ParameterManager * | pParameterManger = NULL |
||
) | [inline] |
karto::Parameter< T >::Parameter | ( | const std::string & | rName, |
const std::string & | rDescription, | ||
T | value, | ||
ParameterManager * | pParameterManger = NULL |
||
) | [inline] |
virtual karto::Parameter< T >::~Parameter | ( | ) | [inline, virtual] |
virtual Parameter* karto::Parameter< T >::Clone | ( | ) | [inline, virtual] |
Clone this parameter
Implements karto::AbstractParameter.
Reimplemented in karto::ParameterEnum.
const T& karto::Parameter< T >::GetValue | ( | ) | const [inline] |
virtual const std::string karto::Parameter< T >::GetValueAsString | ( | ) | const [inline, virtual] |
Gets value of parameter as string
Implements karto::AbstractParameter.
Reimplemented in karto::ParameterEnum.
const std::string karto::Parameter< kt_double >::GetValueAsString | ( | ) | const [inline, virtual] |
const std::string karto::Parameter< kt_bool >::GetValueAsString | ( | ) | const [inline, virtual] |
Parameter& karto::Parameter< T >::operator= | ( | const Parameter< T > & | rOther | ) | [inline] |
T karto::Parameter< T >::operator= | ( | T | value | ) | [inline] |
Sets the value of this parameter to given value
Reimplemented in karto::ParameterEnum.
void karto::Parameter< T >::SetValue | ( | const T & | rValue | ) | [inline] |
virtual void karto::Parameter< T >::SetValueFromString | ( | const std::string & | rStringValue | ) | [inline, virtual] |
Sets value of parameter from string
rStringValue |
Implements karto::AbstractParameter.
Reimplemented in karto::ParameterEnum.
void karto::Parameter< kt_double >::SetValueFromString | ( | const std::string & | rStringValue | ) | [inline, virtual] |
Set parameter value from string.
rStringValue | value as string |
Implements karto::AbstractParameter.
void karto::Parameter< kt_bool >::SetValueFromString | ( | const std::string & | rStringValue | ) | [inline, virtual] |
Set parameter value from string.
rStringValue | value as string |
Implements karto::AbstractParameter.
T karto::Parameter< T >::m_Value [protected] |