2 #include <alignment/dataobjects/PedeSteering.h>
14 ofstream file(filename.c_str());
15 file <<
"! Steerig file for Pede generated by PedeSteering class !" << endl;
16 file <<
"Cfiles" << endl;
17 for (
string& cfile : files)
18 file << cfile << endl;
22 for (
string& command : commands)
23 file << command << endl;
30 commands.push_back(line);
35 ifstream file(filename);
40 while (getline(file, commandLine))
46 command(
"Parameters");
47 bool useValues = (labels.size() == values.size());
48 bool usePresigmas = (labels.size() == presigmas.size());
50 for (
unsigned int i = 0; i < labels.size(); i++) {
52 double presigma = -1.;
56 presigma = presigmas[i];
58 command(to_string(labels[i]) +
" " + to_string(value) +
" " + to_string(presigma));
65 filename = filename +
" -- " + std::to_string(weight);
67 for (
auto file : files)
71 files.push_back(filename);