#include <Parameter.h>
Public Member Functions | |
AbstractParameter (ParameterDescription *pDescription, ParameterSet *pParameterSet=NULL) | |
const karto::String & | GetDescription () const |
const karto::String & | GetDisplayName () const |
kt_int32s | GetFlags () const |
const karto::String & | GetName () const |
const ParameterDescription * | GetParameterDescription () const |
ParameterDescription * | GetParameterDescription () |
virtual const karto::String | GetValueAsString () const =0 |
virtual void | SetToDefaultValue ()=0 |
virtual void | SetValueFromString (const karto::String &rStringValue)=0 |
Public Member Functions inherited from karto::Referenced | |
Referenced () | |
Protected Member Functions | |
virtual void | InitializeParameters () |
Protected Member Functions inherited from karto::Referenced | |
kt_int32s | GetReferenceCount () |
kt_int32s | Reference () const |
kt_int32s | Unreference () const |
kt_int32s | UnreferenceNoDelete () const |
Protected Attributes | |
BasicEvent< EventArguments > | Changed |
Private Member Functions | |
AbstractParameter (const AbstractParameter &) | |
KARTO_RTTI () | |
const AbstractParameter & | operator= (const AbstractParameter &) |
Private Attributes | |
karto::SmartPointer< ParameterDescription > | m_pDescription |
ParameterSet * | m_pParameterSet |
Abstract base class for parameters
Definition at line 220 of file Parameter.h.
karto::AbstractParameter::AbstractParameter | ( | ParameterDescription * | pDescription, |
ParameterSet * | pParameterSet = NULL |
||
) |
Constructs an AbstractParameter with the given ParameterDescription and ParameterSet
pDescription | description of parameter |
pParameterSet | set of parameters |
Definition at line 56 of file Parameter.cpp.
|
private |
|
inline |
Gets the description of this parameter
Definition at line 269 of file Parameter.h.
|
inline |
Gets the display name of this parameter
Definition at line 260 of file Parameter.h.
|
inline |
|
inline |
|
inline |
Gets the parameter description for this parameter (const version)
Definition at line 287 of file Parameter.h.
|
inline |
Gets the parameter description for this parameter
Definition at line 296 of file Parameter.h.
|
pure virtual |
Gets the parameter value as string.
Implemented in karto::ParameterEnum, karto::Parameter< T >, karto::Parameter< kt_bool >, karto::Parameter< kt_int64s >, karto::Parameter< kt_double >, karto::Parameter< kt_int32u >, and karto::Parameter< karto::Pose2 >.
|
protectedvirtual |
Initialize parameters
Reimplemented in karto::Parameter< T >, karto::Parameter< kt_bool >, karto::Parameter< kt_int64s >, karto::Parameter< kt_double >, karto::Parameter< kt_int32u >, and karto::Parameter< karto::Pose2 >.
Definition at line 67 of file Parameter.cpp.
|
private |
|
private |
|
pure virtual |
Sets the parameter to its default value
Implemented in karto::Parameter< T >, karto::Parameter< kt_bool >, karto::Parameter< kt_int64s >, karto::Parameter< kt_double >, karto::Parameter< kt_int32u >, and karto::Parameter< karto::Pose2 >.
|
pure virtual |
Sets the parameter value from string.
rStringValue | value as string |
Implemented in karto::ParameterEnum, karto::Parameter< T >, karto::Parameter< kt_bool >, karto::Parameter< kt_int64s >, karto::Parameter< kt_double >, karto::Parameter< kt_int32u >, and karto::Parameter< karto::Pose2 >.
|
protected |
public: /** Parameter event for changed notification
Definition at line 244 of file Parameter.h.
|
private |
Definition at line 330 of file Parameter.h.
|
private |
Definition at line 331 of file Parameter.h.