3 #include <CFatalException.h>
9 infile.open(filename.c_str());
12 throw CFatalException(
"No Configurationfile found !");
13 GetData(infile);infile.close();
18 CCalcRecConfLexer lexer(instream);
19 CCalcRecConfParser parser(lexer);
24 recmethod= parser.recmethod;
25 normalize= parser.normalize;
30 ofstream confout(filename.c_str());
35 outstream <<
"cc" <<
"=" ;
36 outstream << cc << endl;
37 outstream <<
"sigma" <<
"=" ;
38 outstream << sigma << endl;
39 outstream <<
"shift" <<
"=" ;
40 outstream << shift << endl;
41 outstream <<
"recmethod" <<
"=" ;
42 outstream << recmethod << endl;
43 outstream <<
"normalize" <<
"=" ;
44 outstream << (normalize ?
"true" :
"false") << endl;
void WriteData(std::ofstream &outstream)
void GetData(std::ifstream &instream)