#include <Karto.h>
Public Member Functions | |
virtual Parameter< kt_int32s > * | Clone () |
void | DefineEnumValue (kt_int32s value, const std::string &rName) |
virtual const std::string | GetValueAsString () const |
kt_int32s | operator= (kt_int32s value) |
ParameterEnum & | operator= (const ParameterEnum &rOther) |
ParameterEnum (const std::string &rName, kt_int32s value, ParameterManager *pParameterManger=NULL) | |
virtual void | SetValueFromString (const std::string &rStringValue) |
virtual | ~ParameterEnum () |
Private Types | |
typedef std::map< std::string, kt_int32s > | EnumMap |
Private Attributes | |
EnumMap | m_EnumDefines |
Represent enum parameter
Definition at line 3119 of file Karto.h.
typedef std::map<std::string, kt_int32s> karto::ParameterEnum::EnumMap [private] |
karto::ParameterEnum::ParameterEnum | ( | const std::string & | rName, | |
kt_int32s | value, | |||
ParameterManager * | pParameterManger = NULL | |||
) | [inline] |
virtual karto::ParameterEnum::~ParameterEnum | ( | ) | [inline, virtual] |
void karto::ParameterEnum::DefineEnumValue | ( | kt_int32s | value, | |
const std::string & | rName | |||
) | [inline] |
virtual const std::string karto::ParameterEnum::GetValueAsString | ( | ) | const [inline, virtual] |
Get parameter value as string.
Reimplemented from karto::Parameter< kt_int32s >.
Assignment operator
Reimplemented from karto::Parameter< kt_int32s >.
ParameterEnum& karto::ParameterEnum::operator= | ( | const ParameterEnum & | rOther | ) | [inline] |
virtual void karto::ParameterEnum::SetValueFromString | ( | const std::string & | rStringValue | ) | [inline, virtual] |
Set parameter value from string.
rStringValue | value as string |
Reimplemented from karto::Parameter< kt_int32s >.
EnumMap karto::ParameterEnum::m_EnumDefines [private] |