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