Privacy
An open-source, flexible 3D physical simulation framework
mars::cfg_manager::CFGParamDouble Class Reference

#include <CFGParamDouble.h>

Public Types

enum  paramProperty {
  value = 0, min, max, stepsize,
  dstNrOfParamPropertys
}
 

Public Member Functions

 CFGParamDouble (const cfgParamId &_id, const std::string &_group, const std::string &_name)
 
 ~CFGParamDouble ()
 
virtual bool setProperty (const CFGProperty &_property)
 
virtual const std::string & getPropertyNameByIndex (unsigned int _index) const
 
virtual const cfgPropertyTypegetPropertyTypeByIndex (unsigned int _index) const
 
virtual unsigned int getPropertyIndexByName (const std::string &_name) const
 
virtual unsigned int getNrOfPropertys () const
 
- Public Member Functions inherited from mars::cfg_manager::CFGParam
 CFGParam (const cfgParamId &_id, const std::string &_group, const std::string &_name, const cfgParamType &_type)
 
 ~CFGParam ()
 
const cfgParamTypegetParamType () const
 
const cfgParamIdgetId () const
 
const std::string & getGroup () const
 
const std::string & getName () const
 
virtual bool getProperty (CFGProperty *property) const
 
virtual unsigned char getOption () const
 
virtual void setOption (const unsigned char _newOption)
 
virtual void unsetOption (const unsigned char _newOption)
 
void addClient (CFGClient *client)
 
void removeClient (CFGClient *client)
 
void writeToYAML (YAML::Emitter &out) const
 

Static Public Member Functions

static CFGParamcreateParam (const cfgParamId &_id, const std::string &_group, const YAML::Node &node)
 

Static Public Attributes

static const std::string paramPropertyName [dstNrOfParamPropertys]
 
static const cfgPropertyType paramPropertyType [dstNrOfParamPropertys]
 

Private Member Functions

bool setPropertyValue (const CFGProperty &_property) const
 
bool setPropertyMin (const CFGProperty &_property) const
 
bool setPropertyMax (const CFGProperty &_property) const
 
bool setPropertyStepsize (const CFGProperty &_property) const
 

Additional Inherited Members

- Protected Member Functions inherited from mars::cfg_manager::CFGParam
void updateClients (const CFGProperty &property)
 
void readFromYAML (const YAML::Node &node)
 
void readPropertyFromYAML (unsigned int index, const YAML::Node &node) const
 
void readSaveSettingFromYAML (const YAML::Node &node)
 
bool writeProperty (const CFGProperty &property) const
 
- Protected Attributes inherited from mars::cfg_manager::CFGParam
std::vector< CFGProperty * > propertys
 
utils::Mutex mutexPropertys
 
unsigned char options
 
const std::string emptyString
 
const cfgPropertyType noType
 

Detailed Description

Definition at line 41 of file CFGParamDouble.h.

Member Enumeration Documentation

◆ paramProperty

Enumerator
value 
min 
max 
stepsize 
dstNrOfParamPropertys 

Definition at line 44 of file CFGParamDouble.h.

Constructor & Destructor Documentation

◆ CFGParamDouble()

mars::cfg_manager::CFGParamDouble::CFGParamDouble ( const cfgParamId _id,
const std::string &  _group,
const std::string &  _name 
)

Definition at line 54 of file CFGParamDouble.cpp.

◆ ~CFGParamDouble()

mars::cfg_manager::CFGParamDouble::~CFGParamDouble ( )

Definition at line 72 of file CFGParamDouble.cpp.

Member Function Documentation

◆ createParam()

CFGParam * mars::cfg_manager::CFGParamDouble::createParam ( const cfgParamId _id,
const std::string &  _group,
const YAML::Node &  node 
)
static

Definition at line 115 of file CFGParamDouble.cpp.

◆ getNrOfPropertys()

unsigned int mars::cfg_manager::CFGParamDouble::getNrOfPropertys ( ) const
virtual

Implements mars::cfg_manager::CFGParam.

Definition at line 169 of file CFGParamDouble.cpp.

◆ getPropertyIndexByName()

unsigned int mars::cfg_manager::CFGParamDouble::getPropertyIndexByName ( const std::string &  _name) const
virtual

Implements mars::cfg_manager::CFGParam.

Definition at line 158 of file CFGParamDouble.cpp.

◆ getPropertyNameByIndex()

const string & mars::cfg_manager::CFGParamDouble::getPropertyNameByIndex ( unsigned int  _index) const
virtual

Implements mars::cfg_manager::CFGParam.

Definition at line 140 of file CFGParamDouble.cpp.

◆ getPropertyTypeByIndex()

const cfgPropertyType & mars::cfg_manager::CFGParamDouble::getPropertyTypeByIndex ( unsigned int  _index) const
virtual

Implements mars::cfg_manager::CFGParam.

Definition at line 149 of file CFGParamDouble.cpp.

◆ setProperty()

bool mars::cfg_manager::CFGParamDouble::setProperty ( const CFGProperty _property)
virtual

Implements mars::cfg_manager::CFGParam.

Definition at line 87 of file CFGParamDouble.cpp.

◆ setPropertyMax()

bool mars::cfg_manager::CFGParamDouble::setPropertyMax ( const CFGProperty _property) const
private

Definition at line 236 of file CFGParamDouble.cpp.

◆ setPropertyMin()

bool mars::cfg_manager::CFGParamDouble::setPropertyMin ( const CFGProperty _property) const
private

Definition at line 206 of file CFGParamDouble.cpp.

◆ setPropertyStepsize()

bool mars::cfg_manager::CFGParamDouble::setPropertyStepsize ( const CFGProperty _property) const
private

Definition at line 266 of file CFGParamDouble.cpp.

◆ setPropertyValue()

bool mars::cfg_manager::CFGParamDouble::setPropertyValue ( const CFGProperty _property) const
private

Definition at line 176 of file CFGParamDouble.cpp.

Member Data Documentation

◆ paramPropertyName

const string mars::cfg_manager::CFGParamDouble::paramPropertyName
static
Initial value:
= {
"value",
"min",
"max",
"stepsize"
}

Definition at line 52 of file CFGParamDouble.h.

◆ paramPropertyType

const cfgPropertyType mars::cfg_manager::CFGParamDouble::paramPropertyType
static
Initial value:

Definition at line 53 of file CFGParamDouble.h.


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