VERB_code_2.2
2
|
Defenition of the struct Parameters_structure, struct DxxParameters_structure and supporting function All parameters, loaded from .ini file are described here in one structure. Each brunch of the structure holds parameters for one oblect (class) intitialization So, we need to pass one structure (brunch of the main structure) to the classes cunstructors. More...
#include <string>
#include <vector>
#include <map>
#include "../Matrix/Matrix.h"
#include "../VariousFunctions/variousConstants.h"
#include "../Logging/Output.h"
#include <sstream>
Go to the source code of this file.
Classes | |
struct | DxxParameters_structure |
struct | Parameters_structure |
struct | Parameters_structure::General_Output_parameters |
struct | Parameters_structure::GridElement |
struct | Parameters_structure::BoundaryCondition |
struct | Parameters_structure::PSD |
struct | Parameters_structure::PSD::GMRES_parameters_structure |
struct | Parameters_structure::SL_structure |
struct | Parameters_structure::Interpolation |
Macros | |
#define | LOAD_CONSTANCE_H |
Check if LOAD_CONSTANCE_H is defined, to not include the class more then one time. More... | |
Functions | |
void | StrToVal (string input, double &place) |
Convert string to double. More... | |
void | StrToVal (string input, int &place) |
Convert string to int. More... | |
void | StrToVal (string input, string &place) |
Return same string. More... | |
void | StrToVal (string input, bool &place) |
Convert string to bool. More... | |
bool | str2bool (string str) |
Return bool from string (Yes|True|1) More... | |
string | bool2str (bool b) |
Return string (Yes|No) from bool. More... | |
void | load_1d (Matrix1D< double > &var, string filename, double dt, int var_size=0) |
Defenition of the struct Parameters_structure, struct DxxParameters_structure and supporting function All parameters, loaded from .ini file are described here in one structure. Each brunch of the structure holds parameters for one oblect (class) intitialization So, we need to pass one structure (brunch of the main structure) to the classes cunstructors.
Definition in file Parameters.h.
#define LOAD_CONSTANCE_H |
Check if LOAD_CONSTANCE_H is defined, to not include the class more then one time.
Definition at line 17 of file Parameters.h.
void StrToVal | ( | string | input, |
double & | place | ||
) |
Convert string to double.
input | - input string |
place | - output |
Converting string to double.
Definition at line 526 of file Parameters.cpp.
void StrToVal | ( | string | input, |
int & | place | ||
) |
Convert string to int.
input | - input string |
place | - output |
Converting string to int.
Definition at line 534 of file Parameters.cpp.
void StrToVal | ( | string | input, |
string & | place | ||
) |
Return same string.
input | - input string |
place | - output |
Converting string to string. Function StrToVal is used in template, so we need thad function to make template function works in case of string.
Definition at line 542 of file Parameters.cpp.
void StrToVal | ( | string | input, |
bool & | place | ||
) |
Convert string to bool.
input | - input string |
place | - output |
Converting string to bool.
Definition at line 550 of file Parameters.cpp.
References str2bool().
bool str2bool | ( | string | str) |
Return bool from string (Yes|True|1)
str | - input string |
Converting string to boolean.
Definition at line 559 of file Parameters.cpp.
string bool2str | ( | bool | b) |
Return string (Yes|No) from bool.
b | - boolean input |
Converting boolean to string.
Definition at line 567 of file Parameters.cpp.
void load_1d | ( | Matrix1D< double > & | var, |
string | filename, | ||
double | dt, | ||
int | var_size | ||
) |
Read 1d matrix_array from txt-file and interpolate to out time-axis.
Definition at line 574 of file Parameters.cpp.
References Matrix1D< T >::AllocateMemory(), and Matrix1D< T >::size_x.