Public Member Functions | Private Types | Private Attributes | List of all members
karto::ParameterEnum Class Reference

#include <Karto.h>

Inheritance diagram for karto::ParameterEnum:
Inheritance graph
[legend]

Public Member Functions

virtual Parameter< kt_int32s > * Clone ()
 
void DefineEnumValue (kt_int32s value, const std::string &rName)
 
virtual const std::string GetValueAsString () const
 
ParameterEnumoperator= (const ParameterEnum &rOther)
 
kt_int32s operator= (kt_int32s value)
 
 ParameterEnum (const std::string &rName, kt_int32s value, ParameterManager *pParameterManger=NULL)
 
virtual void SetValueFromString (const std::string &rStringValue)
 
virtual ~ParameterEnum ()
 
- Public Member Functions inherited from karto::Parameter< kt_int32s >
const kt_int32sGetValue () const
 
Parameteroperator= (const Parameter &rOther)
 
kt_int32s operator= (kt_int32svalue)
 
 Parameter (const std::string &rName, kt_int32svalue, ParameterManager *pParameterManger=NULL)
 
 Parameter (const std::string &rName, const std::string &rDescription, kt_int32svalue, ParameterManager *pParameterManger=NULL)
 
void SetValue (const kt_int32s &rValue)
 
virtual ~Parameter ()
 
- Public Member Functions inherited from karto::AbstractParameter
 AbstractParameter (const std::string &rName, ParameterManager *pParameterManger=NULL)
 
 AbstractParameter (const std::string &rName, const std::string &rDescription, ParameterManager *pParameterManger=NULL)
 
const std::string & GetDescription () const
 
const std::string & GetName () const
 
virtual ~AbstractParameter ()
 

Private Types

typedef std::map< std::string, kt_int32sEnumMap
 

Private Attributes

EnumMap m_EnumDefines
 

Additional Inherited Members

- Protected Attributes inherited from karto::Parameter< kt_int32s >
kt_int32s m_Value
 

Detailed Description

Parameter enum class

Definition at line 3258 of file Karto.h.

Member Typedef Documentation

typedef std::map<std::string, kt_int32s> karto::ParameterEnum::EnumMap
private

Definition at line 3260 of file Karto.h.

Constructor & Destructor Documentation

karto::ParameterEnum::ParameterEnum ( const std::string &  rName,
kt_int32s  value,
ParameterManager pParameterManger = NULL 
)
inline

Construct a Parameter object with name and value

Parameters
rNameparameter name
valueof parameter
pParameterManger

Definition at line 3269 of file Karto.h.

virtual karto::ParameterEnum::~ParameterEnum ( )
inlinevirtual

Destructor

Definition at line 3277 of file Karto.h.

Member Function Documentation

virtual Parameter<kt_int32s>* karto::ParameterEnum::Clone ( )
inlinevirtual

Return a clone of this instance

Returns
clone

Reimplemented from karto::Parameter< kt_int32s >.

Definition at line 3286 of file Karto.h.

void karto::ParameterEnum::DefineEnumValue ( kt_int32s  value,
const std::string &  rName 
)
inline

Defines the enum with the given name as having the given value

Parameters
value
rName

Definition at line 3340 of file Karto.h.

virtual const std::string karto::ParameterEnum::GetValueAsString ( ) const
inlinevirtual

Get parameter value as string.

Returns
value as string

Reimplemented from karto::Parameter< kt_int32s >.

Definition at line 3322 of file Karto.h.

ParameterEnum& karto::ParameterEnum::operator= ( const ParameterEnum rOther)
inline

Assignment operator

Definition at line 3360 of file Karto.h.

kt_int32s karto::ParameterEnum::operator= ( kt_int32s  value)
inline

Assignment operator

Definition at line 3370 of file Karto.h.

virtual void karto::ParameterEnum::SetValueFromString ( const std::string &  rStringValue)
inlinevirtual

Set parameter value from string.

Parameters
rStringValuevalue as string

Reimplemented from karto::Parameter< kt_int32s >.

Definition at line 3299 of file Karto.h.

Member Data Documentation

EnumMap karto::ParameterEnum::m_EnumDefines
private

Definition at line 3378 of file Karto.h.


The documentation for this class was generated from the following file:


open_karto
Author(s):
autogenerated on Mon Jun 10 2019 14:02:19