Parameters.h File Reference

All parameters, loaded from .ini file are described here in one structure. More...

#include <string>
#include <vector>
#include <map>
#include "../Matrix/Matrix.h"
#include "../VariousFunctions/variousConstants.h"
#include "../Logging/Output.h"
#include <sstream>

Include dependency graph for Parameters.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DiffusionCoefficientParamStructure
 Diffusion coefficient parameters. More...
struct  ParamStructure
 Main parameters structure. More...
struct  ParamStructure::General_Output_parameters
 General programm output parameters structure. More...
struct  ParamStructure::GridElement
 Grid element parameters structure. More...
struct  ParamStructure::BoundaryCondition
 Bundary conditions parameters structure. More...
struct  ParamStructure::PSD
 PSD parameters structure. More...
struct  ParamStructure::SL
 Sources and losses. More...
struct  ParamStructure::Interpolation
 Interpolation parameters structure More...

Typedefs

typedef std::vector
< DiffusionCoefficientParamStructure
DiffusionCoefficientParamStructureList
 List of diffusion coefficient parameters.

Functions

void StrToVal (string input, double &place)
 Converting string to double.
void StrToVal (string input, int &place)
 Converting string to int.
void StrToVal (string input, string &place)
 Converting string to string.
void StrToVal (string input, bool &place)
 Converting string to bool.
void load_1d (Matrix1D< double > &var, string filename, double dt, int var_size=0)
 Read 1d matrix_array from txt-file and interpolate to out time-axis.
bool str2bool (string str)
 Converting string to boolean.
string bool2str (bool b)
 Converting boolean to string.


Detailed Description

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

Author:
Developed under supervision of the PI Yuri Shprits

Definition in file Parameters.h.


Typedef Documentation

List of diffusion coefficient parameters.

Definition at line 79 of file Parameters.h.


Function Documentation

string bool2str ( bool  b  ) 

Converting boolean to string.

Definition at line 522 of file Parameters.cpp.

void load_1d ( Matrix1D< double > &  var,
string  filename,
double  dt,
int  var_size = 0 
)

Read 1d matrix_array from txt-file and interpolate to out time-axis.

Definition at line 529 of file Parameters.cpp.

References Matrix1D< T >::AllocateMemory(), i, and Matrix1D< T >::size_x.

Referenced by ParamStructure::Load_parameters().

Here is the call graph for this function:

Here is the caller graph for this function:

bool str2bool ( string  str  ) 

Converting string to boolean.

Definition at line 514 of file Parameters.cpp.

void StrToVal ( string  input,
bool &  place 
)

Converting string to bool.

Definition at line 505 of file Parameters.cpp.

References str2bool().

Here is the call graph for this function:

void StrToVal ( string  input,
string &  place 
)

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 497 of file Parameters.cpp.

void StrToVal ( string  input,
int &  place 
)

Converting string to int.

Definition at line 489 of file Parameters.cpp.

void StrToVal ( string  input,
double &  place 
)

Converting string to double.

Definition at line 481 of file Parameters.cpp.

Referenced by ReadFromFile().

Here is the caller graph for this function:


Generated on Thu May 27 11:53:19 2010 for VERB_CODE_2.0 by  doxygen 1.5.9