|
Bridge++
Ver. 1.1.x
|
Parameter manager with YAML parser. More...
#include <parameterManager_YAML.h>
Public Member Functions | |
| ParameterManager_YAML () | |
| void | read_params (const std::string ¶ms_file, Parameters *params) |
| read parameters from file. More... | |
| void | read_params (std::istream &, Parameters *params) |
| read parameters from input file stream. More... | |
Public Member Functions inherited from ParameterManager | |
| ParameterManager () | |
| virtual | ~ParameterManager () |
Private Member Functions | |
| int | set_key_and_value (std::string &keystr, std::string &valstr, std::string &line) |
| extract key and value from a given line. More... | |
| int | remove_space (std::string &) |
| remove spaces from both side of a string. More... | |
| void | convert_int_vector (std::valarray< int > &vec, std::string &valstr) |
| convert from string to int vector. More... | |
| void | convert_double_vector (std::valarray< double > &vec, std::string &valstr) |
| convert from string to double vector. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ParameterManager | |
| Bridge::VerboseLevel | m_vl |
Parameter manager with YAML parser.
This is a simple parser to read parameters from a file prepared with YAML format. Only simple cases were checked. [17 Jul 2012 H.Matsufuru]
Definition at line 31 of file parameterManager_YAML.h.
|
inline |
Definition at line 35 of file parameterManager_YAML.h.
|
private |
convert from string to double vector.
Definition at line 316 of file parameterManager_YAML.cpp.
|
private |
convert from string to int vector.
Definition at line 255 of file parameterManager_YAML.cpp.
|
virtual |
read parameters from file.
Implements ParameterManager.
Definition at line 26 of file parameterManager_YAML.cpp.
| void ParameterManager_YAML::read_params | ( | std::istream & | fin, |
| Parameters * | params | ||
| ) |
read parameters from input file stream.
Definition at line 73 of file parameterManager_YAML.cpp.
|
private |
remove spaces from both side of a string.
Definition at line 235 of file parameterManager_YAML.cpp.
|
private |
extract key and value from a given line.
Definition at line 207 of file parameterManager_YAML.cpp.