Bridge++
Ver. 1.1.x
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
parameterManager_YAML.h
Go to the documentation of this file.
1
14
#ifndef PARAMETERMANAGER_YAML_INCLUDED
15
#define PARAMETERMANAGER_YAML_INCLUDED
16
17
#include "
parameterManager.h
"
18
19
#include <string>
20
#include <valarray>
21
#include <iostream>
22
24
31
class
ParameterManager_YAML
:
public
ParameterManager
32
{
33
public
:
34
35
ParameterManager_YAML
() {}
36
38
void
read_params
(
const
std::string& params_file,
Parameters
*params);
39
41
void
read_params
(std::istream&,
Parameters
*params);
42
43
private
:
44
46
int
set_key_and_value
(std::string& keystr, std::string& valstr, std::string& line);
47
49
int
remove_space
(std::string&);
50
52
void
convert_int_vector
(std::valarray<int>& vec, std::string& valstr);
53
55
void
convert_double_vector
(std::valarray<double>& vec, std::string& valstr);
56
};
57
#endif
src
Parameters
parameterManager_YAML.h
Generated on Tue Jul 23 2013 10:48:49 for Bridge++ by
1.8.3.1