Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
karto::AbstractParameter Class Referenceabstract

#include <Karto.h>

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

Public Member Functions

 AbstractParameter ()
 
 AbstractParameter (const std::string &rName, const std::string &rDescription, ParameterManager *pParameterManger=NULL)
 
 AbstractParameter (const std::string &rName, ParameterManager *pParameterManger=NULL)
 
virtual AbstractParameterClone ()=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 Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

std::string m_Description
 
std::string m_Name
 

Friends

class boost::serialization::access
 
std::ostream & operator<< (std::ostream &rStream, const AbstractParameter &rParameter)
 

Detailed Description

Abstract base class for Parameters

Definition at line 3103 of file Karto.h.

Constructor & Destructor Documentation

◆ AbstractParameter() [1/3]

karto::AbstractParameter::AbstractParameter ( )
inline

Definition at line 3107 of file Karto.h.

◆ AbstractParameter() [2/3]

karto::AbstractParameter::AbstractParameter ( const std::string &  rName,
ParameterManager pParameterManger = NULL 
)
inline

Constructs a parameter with the given name

Parameters
rName
pParameterManger

Definition at line 3115 of file Karto.h.

◆ AbstractParameter() [3/3]

karto::AbstractParameter::AbstractParameter ( const std::string &  rName,
const std::string &  rDescription,
ParameterManager pParameterManger = NULL 
)
inline

Constructs a parameter with the given name and description

Parameters
rName
rDescription
pParameterManger

Definition at line 3131 of file Karto.h.

◆ ~AbstractParameter()

virtual karto::AbstractParameter::~AbstractParameter ( )
inlinevirtual

Destructor

Definition at line 3147 of file Karto.h.

Member Function Documentation

◆ Clone()

virtual AbstractParameter* karto::AbstractParameter::Clone ( )
pure virtual

◆ GetDescription()

const std::string& karto::AbstractParameter::GetDescription ( ) const
inline

Returns the parameter description

Returns
parameter description

Definition at line 3165 of file Karto.h.

◆ GetName()

const std::string& karto::AbstractParameter::GetName ( ) const
inline

Gets the name of this object

Returns
name

Definition at line 3156 of file Karto.h.

◆ GetValueAsString()

virtual const std::string karto::AbstractParameter::GetValueAsString ( ) const
pure virtual

Get parameter value as string.

Returns
value as string

Implemented in karto::ParameterEnum, karto::Parameter< T >, karto::Parameter< T >, and karto::Parameter< T >.

◆ serialize()

template<class Archive >
void karto::AbstractParameter::serialize ( Archive &  ar,
const unsigned int  version 
)
inlineprivate

Definition at line 3211 of file Karto.h.

◆ SetValueFromString()

virtual void karto::AbstractParameter::SetValueFromString ( const std::string &  rStringValue)
pure virtual

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Serialization: class AbstractParameter

Definition at line 3209 of file Karto.h.

◆ operator<<

std::ostream& operator<< ( std::ostream &  rStream,
const AbstractParameter rParameter 
)
friend

Write this parameter onto output stream

Parameters
rStreamoutput stream
rParameter

Definition at line 3194 of file Karto.h.

Member Data Documentation

◆ m_Description

std::string karto::AbstractParameter::m_Description
private

Definition at line 3205 of file Karto.h.

◆ m_Name

std::string karto::AbstractParameter::m_Name
private

Definition at line 3204 of file Karto.h.


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


slam_toolbox
Author(s): Steve Macenski
autogenerated on Thu Jan 11 2024 03:37:56