Phoxonics  1.0
Object Oriented FDTD Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ConfigParamHelper.hpp
Go to the documentation of this file.
1 /*
2  * ConfigParamHelper.hpp
3  *
4  * Created on: Nov 13, 2014
5  * Author: nano
6  */
7 
8 #ifndef CONFIGPARAMHELPER_HPP_
9 #define CONFIGPARAMHELPER_HPP_
10 
11 #include "../../../common/common.hpp"
12 #include "../config/ConfigParam.hpp"
13 #include "../common/Vector3D.hpp"
14 
15 #include <vector>
16 #include <string>
17 #include <algorithm>
18 #include <functional>
19 
20 namespace phoxonics {
21 namespace core {
22 
24 public:
26  virtual ~ConfigParamHelper();
27 
30 
31  std::string get_config_param_value(std::string config_section,
32  std::vector<ConfigParam>& config_params, std::string config_param_name);
33 
34  Vector3D str_to_vector3d(std::string config_section, std::string config_prop,
35  std::string str_vec3d);
36 
37  std::vector<double> str_freqs_to_vector(std::string freqs);
38 
39  std::vector<double> str_omegas_to_vector(std::string omegas, int n_omegas);
40 
42 };
43 
44 } /* namespace core */
45 } /* namespace phoxonics */
46 
47 #endif /* CONFIGPARAMHELPER_HPP_ */
std::vector< double > str_freqs_to_vector(std::string freqs)
Definition: ConfigParamHelper.cpp:69
Definition: CommonBase.hpp:14
Vector3D str_to_vector3d(std::string config_section, std::string config_prop, std::string str_vec3d)
Definition: ConfigParamHelper.cpp:39
phoxonics::common::Strings str_
Definition: ConfigParamHelper.hpp:41
phoxonics::common::Formatter fmt
Definition: ConfigParamHelper.hpp:29
ConfigParamHelper()
Definition: ConfigParamHelper.cpp:13
Definition: Strings.hpp:20
std::vector< double > str_omegas_to_vector(std::string omegas, int n_omegas)
Definition: ConfigParamHelper.cpp:106
Definition: Vector3D.hpp:19
std::string get_config_param_value(std::string config_section, std::vector< ConfigParam > &config_params, std::string config_param_name)
Definition: ConfigParamHelper.cpp:21
virtual ~ConfigParamHelper()
Definition: ConfigParamHelper.cpp:17
Definition: ConfigParamHelper.hpp:23
Definition: Logger.hpp:23
Definition: Formatter.hpp:18
phoxonics::common::Logger log
Definition: ConfigParamHelper.hpp:28