![]() |
An open-source, flexible 3D physical simulation framework
|
#include <CFGManager.h>
Public Member Functions | |
CFGManager (lib_manager::LibManager *theManager, const char *filename="mars_default.yaml") | |
~CFGManager () | |
virtual int | getLibVersion () const |
virtual const std::string | getLibName () const |
CREATE_MODULE_INFO () | |
virtual bool | loadConfigFromStream (std::istream &in, const char *group) |
virtual bool | loadConfig (const char *filename) |
virtual bool | loadConfig (const char *filename, const char *group) |
virtual bool | loadConfigFromString (const std::string &configString) |
virtual void | writeConfig (const char *filename, const char *group=NULL, const unsigned char saveOption=saveOnClose) const |
virtual const std::string | writeConfigToString (const char *group=NULL, const unsigned char saveOption=saveOnClose) const |
virtual cfgParamId | createParam (const std::string &_group, const std::string &_name, const cfgParamType &_paramType) |
virtual bool | removeParam (const cfgParamId &_id) |
virtual bool | removeParam (const std::string &_group, const std::string &_name) |
virtual bool | setProperty (const CFGProperty &_property) |
virtual bool | getProperty (CFGProperty *_property) const |
virtual bool | setProperty (const cfgPropertyStruct &_propertyS) |
virtual bool | getProperty (cfgPropertyStruct *_propertyS) const |
virtual bool | getPropertyValue (cfgParamId paramId, const std::string &_propertyName, double *rValue) const |
virtual bool | getPropertyValue (cfgParamId paramId, const std::string &_propertyName, int *rValue) const |
virtual bool | getPropertyValue (cfgParamId paramId, const std::string &_propertyName, bool *rValue) const |
virtual bool | getPropertyValue (cfgParamId paramId, const std::string &_propertyName, std::string *rValue) const |
virtual bool | setPropertyValue (const std::string &_group, const std::string &_name, const std::string &_propertyName, const double rValue) |
virtual bool | setPropertyValue (const std::string &_group, const std::string &_name, const std::string &_propertyName, const int rValue) |
virtual bool | setPropertyValue (const std::string &_group, const std::string &_name, const std::string &_propertyName, const bool rValue) |
virtual bool | setPropertyValue (const std::string &_group, const std::string &_name, const std::string &_propertyName, const std::string &rValue) |
virtual bool | setPropertyValue (const std::string &_group, const std::string &_name, const std::string &_propertyName, const char *rValue) |
virtual cfgParamId | getParamId (const std::string &_group, const std::string &_name) const |
virtual const cfgParamInfo | getParamInfo (const cfgParamId &_id) const |
virtual const cfgParamInfo | getParamInfo (const std::string &_group, const std::string &_name) const |
virtual cfgParamId | registerToParam (const std::string &_group, const std::string &_name, CFGClient *client) |
virtual bool | registerToParam (const cfgParamId &_id, CFGClient *client) |
virtual bool | unregisterFromParam (const std::string &_group, const std::string &_name, CFGClient *client) |
virtual bool | unregisterFromParam (const cfgParamId &_id, CFGClient *client) |
virtual bool | registerToCFG (CFGClient *client) |
virtual bool | unregisterFromCFG (CFGClient *client) |
virtual bool | getAllParams (std::vector< cfgParamInfo > *allParams) const |
virtual const cfgPropertyStruct | getOrCreateProperty (const std::string &_group, const std::string &_name, bool val, CFGClient *newClient=NULL) |
virtual const cfgPropertyStruct | getOrCreateProperty (const std::string &_group, const std::string &_name, double val, CFGClient *newClient=NULL) |
virtual const cfgPropertyStruct | getOrCreateProperty (const std::string &_group, const std::string &_name, int val, CFGClient *newClient=NULL) |
virtual const cfgPropertyStruct | getOrCreateProperty (const std::string &_group, const std::string &_name, const std::string &val, CFGClient *newClient=NULL) |
virtual const cfgPropertyStruct | getOrCreateProperty (const std::string &_group, const std::string &_name, const char *val, CFGClient *newClient=NULL) |
virtual void | setProperty (const std::string &_group, const std::string &_name, bool val) |
virtual void | setProperty (const std::string &_group, const std::string &_name, double val) |
virtual void | setProperty (const std::string &_group, const std::string &_name, int val) |
virtual void | setProperty (const std::string &_group, const std::string &_name, const std::string &val) |
virtual void | setProperty (const std::string &_group, const std::string &_name, const char *val) |
![]() | |
CFGManagerInterface (lib_manager::LibManager *theManager) | |
~CFGManagerInterface () | |
virtual void | createModuleInfo () |
template<typename T > | |
bool | getPropertyValue (const std::string &_group, const std::string &_name, const std::string &_propertyName, T *rValue) const |
![]() | |
LibInterface (LibManager *theManager) | |
virtual | ~LibInterface (void) |
ModuleInfo | getModuleInfo () const |
virtual void | newLibLoaded (const std::string &libName) |
Private Member Functions | |
cfgParamId | getNextId () |
void | insertParam (CFGParam *newParam) |
void | deleteParam (CFGParam *param) |
bool | getParam (CFGParam **param, const std::string &_group, const std::string &_name) const |
bool | getParam (CFGParam **param, const cfgParamId &_id) const |
const cfgParamInfo | getParamInfo (const CFGParam *param) const |
void | addedCFGParam (const cfgParamId &_id) const |
void | removedCFGParam (const cfgParamId &_id) const |
bool | fileExists (const std::string &strFilename) const |
void | readGroup (const std::string &group, const YAML::Node ¶mNodes) |
Private Attributes | |
cfgParamId | nextId |
mars::utils::Mutex | mutexNextId |
mapStringToParam | cfgParamsByString |
mapIdToParam | cfgParamsById |
mars::utils::Mutex | mutexCFGParams |
std::vector< CFGClient * > | vecClients |
mars::utils::Mutex | mutexVecClients |
Additional Inherited Members | |
![]() | |
LibManager * | libManager |
ModuleInfo | moduleInfo |
Definition at line 58 of file CFGManager.h.
mars::cfg_manager::CFGManager::CFGManager | ( | lib_manager::LibManager * | theManager, |
const char * | filename = "mars_default.yaml" |
||
) |
Definition at line 51 of file CFGManager.cpp.
mars::cfg_manager::CFGManager::~CFGManager | ( | ) |
Definition at line 63 of file CFGManager.cpp.
|
inlineprivate |
Definition at line 835 of file CFGManager.cpp.
mars::cfg_manager::CFGManager::CREATE_MODULE_INFO | ( | ) |
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
Definition at line 203 of file CFGManager.cpp.
|
inlineprivate |
Definition at line 767 of file CFGManager.cpp.
|
private |
Definition at line 855 of file CFGManager.cpp.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
Definition at line 246 of file CFGManager.cpp.
|
inlinevirtual |
Implements mars::cfg_manager::CFGManagerInterface.
Definition at line 68 of file CFGManager.h.
|
inlinevirtual |
Implements mars::cfg_manager::CFGManagerInterface.
Definition at line 66 of file CFGManager.h.
|
private |
Definition at line 670 of file CFGManager.cpp.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
|
inlineprivate |
|
inlineprivate |
Definition at line 803 of file CFGManager.cpp.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
Definition at line 564 of file CFGManager.cpp.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
Definition at line 576 of file CFGManager.cpp.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
|
inlineprivate |
Definition at line 817 of file CFGManager.cpp.
|
virtual |
Definition at line 367 of file CFGManager.cpp.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
Definition at line 338 of file CFGManager.cpp.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
|
inlineprivate |
Definition at line 732 of file CFGManager.cpp.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
Definition at line 138 of file CFGManager.cpp.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
Definition at line 142 of file CFGManager.cpp.
|
virtual |
Definition at line 85 of file CFGManager.cpp.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
Definition at line 156 of file CFGManager.cpp.
|
private |
Definition at line 679 of file CFGManager.cpp.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
Definition at line 646 of file CFGManager.cpp.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
Definition at line 607 of file CFGManager.cpp.
|
inlineprivate |
Definition at line 845 of file CFGManager.cpp.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
Definition at line 256 of file CFGManager.cpp.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
|
virtual |
Definition at line 356 of file CFGManager.cpp.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
Definition at line 307 of file CFGManager.cpp.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
Definition at line 654 of file CFGManager.cpp.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
Definition at line 633 of file CFGManager.cpp.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
Definition at line 162 of file CFGManager.cpp.
|
virtual |
Implements mars::cfg_manager::CFGManagerInterface.
Definition at line 169 of file CFGManager.cpp.
|
private |
Definition at line 193 of file CFGManager.h.
|
private |
Definition at line 192 of file CFGManager.h.
|
mutableprivate |
Definition at line 194 of file CFGManager.h.
|
mutableprivate |
Definition at line 188 of file CFGManager.h.
|
mutableprivate |
Definition at line 197 of file CFGManager.h.
|
private |
Definition at line 187 of file CFGManager.h.
|
private |
Definition at line 196 of file CFGManager.h.