#include <Parameter.h>
Public Member Functions | |
virtual T & | GetDefaultValue () |
virtual const T & | GetValue () const |
virtual const karto::String | GetValueAsString () const |
Parameter (ParameterDescription *pDescription, const T &rValue) | |
Parameter (ParameterSet *pParameterSet, const karto::String &rName, const karto::String &rDisplayName, const karto::String &rDescription, const T &rValue) | |
virtual void | SetDefaultValue (const T &rValue) |
virtual void | SetToDefaultValue () |
virtual void | SetValue (const T &rValue) |
virtual void | SetValueFromString (const karto::String &rStringValue) |
Protected Member Functions | |
kt_bool | CompareValue (const T &rValue) |
virtual void | InitializeParameters () |
Protected Attributes | |
T | m_Value |
Private Member Functions | |
KARTO_RTTI () | |
const Parameter & | operator= (const Parameter &) |
Parameter (const Parameter &) | |
Private Attributes | |
T | m_DefaultValue |
Definition at line 436 of file Parameter.h.
karto::Parameter< T >::Parameter | ( | ParameterDescription * | pDescription, |
const T & | rValue | ||
) | [inline] |
Parameter with the given description and given value
pDescription | description of the parameter |
rValue | parameter value |
Definition at line 446 of file Parameter.h.
karto::Parameter< T >::Parameter | ( | ParameterSet * | pParameterSet, |
const karto::String & | rName, | ||
const karto::String & | rDisplayName, | ||
const karto::String & | rDescription, | ||
const T & | rValue | ||
) | [inline] |
Parameter for the set of parameters with the given name, display name, description and value
pParameterSet | set of parameters |
rName | name of the parameter |
rDisplayName | display name of the parameter |
rDescription | description of the parameter |
rValue | parameter value |
Definition at line 461 of file Parameter.h.
karto::Parameter< T >::Parameter | ( | const Parameter< T > & | ) | [private] |
kt_bool karto::Parameter< T >::CompareValue | ( | const T & | rValue | ) | [inline, protected] |
Compares if the given value is equal to current value
rValue | value to compare against |
Definition at line 566 of file Parameter.h.
virtual T& karto::Parameter< T >::GetDefaultValue | ( | ) | [inline, virtual] |
Gets the default value of parameter
Definition at line 508 of file Parameter.h.
virtual const T& karto::Parameter< T >::GetValue | ( | ) | const [inline, virtual] |
virtual const karto::String karto::Parameter< T >::GetValueAsString | ( | ) | const [inline, virtual] |
Gets value of parameter as string
Implements karto::AbstractParameter.
Reimplemented in karto::ParameterEnum.
Definition at line 526 of file Parameter.h.
virtual void karto::Parameter< T >::InitializeParameters | ( | ) | [inline, protected, virtual] |
Initialize parameters
Reimplemented from karto::AbstractParameter.
Definition at line 556 of file Parameter.h.
karto::Parameter< T >::KARTO_RTTI | ( | ) | [private] |
Reimplemented from karto::AbstractParameter.
Reimplemented in karto::ParameterEnum.
const Parameter& karto::Parameter< T >::operator= | ( | const Parameter< T > & | ) | [private] |
virtual void karto::Parameter< T >::SetDefaultValue | ( | const T & | rValue | ) | [inline, virtual] |
Sets the default value of parameter
rValue | value to set as default |
Definition at line 517 of file Parameter.h.
virtual void karto::Parameter< T >::SetToDefaultValue | ( | ) | [inline, virtual] |
Set parameter value to default value
Implements karto::AbstractParameter.
Definition at line 547 of file Parameter.h.
virtual void karto::Parameter< T >::SetValue | ( | const T & | rValue | ) | [inline, virtual] |
Sets the value of parameter
rValue | value to set parameter to |
Definition at line 492 of file Parameter.h.
virtual void karto::Parameter< T >::SetValueFromString | ( | const karto::String & | rStringValue | ) | [inline, virtual] |
Sets the value of parameter from string
rStringValue | string |
Implements karto::AbstractParameter.
Reimplemented in karto::ParameterEnum.
Definition at line 535 of file Parameter.h.
T karto::Parameter< T >::m_DefaultValue [private] |
Parameter default value
Definition at line 586 of file Parameter.h.
T karto::Parameter< T >::m_Value [protected] |
Parameter value
Definition at line 580 of file Parameter.h.