#include <Karto.h>
Public Member Functions | |
AbstractParameter (const std::string &rName, ParameterManager *pParameterManger=NULL) | |
AbstractParameter (const std::string &rName, const std::string &rDescription, ParameterManager *pParameterManger=NULL) | |
virtual AbstractParameter * | Clone ()=0 |
const std::string & | GetDescription () const |
const std::string & | GetName () const |
virtual const std::string | GetValueAsString () const =0 |
virtual void | SetValueFromString (const std::string &rStringValue)=0 |
virtual | ~AbstractParameter () |
Private Attributes | |
std::string | m_Description |
std::string | m_Name |
Friends | |
std::ostream & | operator<< (std::ostream &rStream, const AbstractParameter &rParameter) |
Abstract base class for Parameters
karto::AbstractParameter::AbstractParameter | ( | const std::string & | rName, |
ParameterManager * | pParameterManger = NULL |
||
) | [inline] |
karto::AbstractParameter::AbstractParameter | ( | const std::string & | rName, |
const std::string & | rDescription, | ||
ParameterManager * | pParameterManger = NULL |
||
) | [inline] |
virtual karto::AbstractParameter::~AbstractParameter | ( | ) | [inline, virtual] |
virtual AbstractParameter* karto::AbstractParameter::Clone | ( | ) | [pure virtual] |
Clones the parameter
Implemented in karto::ParameterEnum, karto::Parameter< T >, karto::Parameter< Pose2 >, karto::Parameter< kt_bool >, karto::Parameter< std::string >, karto::Parameter< kt_double >, karto::Parameter< kt_int32s >, and karto::Parameter< kt_int32u >.
const std::string& karto::AbstractParameter::GetDescription | ( | ) | const [inline] |
const std::string& karto::AbstractParameter::GetName | ( | ) | const [inline] |
virtual const std::string karto::AbstractParameter::GetValueAsString | ( | ) | const [pure virtual] |
Get parameter value as string.
Implemented in karto::ParameterEnum, karto::Parameter< T >, karto::Parameter< T >, karto::Parameter< T >, karto::Parameter< Pose2 >, karto::Parameter< kt_bool >, karto::Parameter< std::string >, karto::Parameter< kt_double >, karto::Parameter< kt_int32s >, and karto::Parameter< kt_int32u >.
virtual void karto::AbstractParameter::SetValueFromString | ( | const std::string & | rStringValue | ) | [pure virtual] |
Set parameter value from string.
rStringValue | value as string |
Implemented in karto::ParameterEnum, karto::Parameter< T >, karto::Parameter< T >, karto::Parameter< T >, karto::Parameter< Pose2 >, karto::Parameter< kt_bool >, karto::Parameter< std::string >, karto::Parameter< kt_double >, karto::Parameter< kt_int32s >, and karto::Parameter< kt_int32u >.
std::ostream& operator<< | ( | std::ostream & | rStream, |
const AbstractParameter & | rParameter | ||
) | [friend] |
std::string karto::AbstractParameter::m_Description [private] |
std::string karto::AbstractParameter::m_Name [private] |