Privacy
An open-source, flexible 3D physical simulation framework
configmaps::ConfigVector Class Reference

#include <ConfigVector.hpp>

Public Member Functions

 ConfigVector (std::string s)
 
 ConfigVector ()
 
 ConfigVector (const YAML::Node &n)
 Create and fill the object with values from given YAML::Node. More...
 
 ConfigVector (const Json::Value &n)
 Create and fill the object with values from given Json::Value. More...
 
size_t append (const ConfigItem &item)
 
ConfigVectoroperator<< (const ConfigItem &item)
 
ConfigVectoroperator+= (const ConfigItem &item)
 
virtual void dumpToYamlEmitter (YAML::Emitter &emitter) const
 Create YAML representation dumped into the given emitter. More...
 
virtual void dumpToJsonValue (Json::Value &root) const
 Create JSON representation dumped into the given value. More...
 
- Public Member Functions inherited from configmaps::ConfigBase
virtual ~ConfigBase ()
 
 ConfigBase (std::string s)
 
 ConfigBase ()
 
void setParentName (std::string s)
 
const std::string & getParentName () const
 
void toYamlStream (std::ostream &out) const
 
void toYamlFile (const std::string &filename) const
 
std::string toYamlString () const
 
void toJsonStream (std::ostream &out) const
 
std::string toJsonString () const
 

Additional Inherited Members

- Protected Attributes inherited from configmaps::ConfigBase
std::string parentName
 

Detailed Description

Definition at line 45 of file ConfigVector.hpp.

Constructor & Destructor Documentation

◆ ConfigVector() [1/4]

configmaps::ConfigVector::ConfigVector ( std::string  s)
inline

Definition at line 49 of file ConfigVector.hpp.

◆ ConfigVector() [2/4]

configmaps::ConfigVector::ConfigVector ( )
inline

Definition at line 50 of file ConfigVector.hpp.

◆ ConfigVector() [3/4]

ConfigVector::ConfigVector ( const YAML::Node &  n)

Create and fill the object with values from given YAML::Node.

Parameters
nThe YAML::Node containing the serialized data for this object.

Definition at line 9 of file ConfigVector.cpp.

◆ ConfigVector() [4/4]

ConfigVector::ConfigVector ( const Json::Value &  n)

Create and fill the object with values from given Json::Value.

Parameters
vThe Json::Value containing the serialized data for this object.

Definition at line 22 of file ConfigVector.cpp.

Member Function Documentation

◆ append()

size_t configmaps::ConfigVector::append ( const ConfigItem item)
inline

Definition at line 63 of file ConfigVector.hpp.

◆ dumpToJsonValue()

void ConfigVector::dumpToJsonValue ( Json::Value &  root) const
virtual

Create JSON representation dumped into the given value.

Parameters
rootThe value to wich the configVector json will be added (modifies parameter!).

Implements configmaps::ConfigBase.

Definition at line 52 of file ConfigVector.cpp.

◆ dumpToYamlEmitter()

void ConfigVector::dumpToYamlEmitter ( YAML::Emitter &  emitter) const
virtual

Create YAML representation dumped into the given emitter.

Parameters
emitterThe emitter to wich the configVector yaml will be added (modifies parameter!).

Implements configmaps::ConfigBase.

Definition at line 33 of file ConfigVector.cpp.

◆ operator+=()

ConfigVector& configmaps::ConfigVector::operator+= ( const ConfigItem item)
inline

Definition at line 75 of file ConfigVector.hpp.

◆ operator<<()

ConfigVector& configmaps::ConfigVector::operator<< ( const ConfigItem item)
inline

Definition at line 69 of file ConfigVector.hpp.


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