Blame view

src/analyzer/analyzer_source/main.cpp 607 Bytes
c53a13e0   Jeremy   Updating a lot of...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <iostream>
#include <fstream>

int main(int ac, char **av)
{
  if (ac >= 4)
    {
      std::string folder_source = av[1];
      std::string folder_plan = av[2];
      std::string duration = av[3];
      std::string file_dest;
      std::ofstream myfile;

      file_dest = folder_source + "/" + folder_plan + "/analysis/analysis.result";
      myfile.open(file_dest.c_str());
      myfile << "Source folder = " + folder_source << std::endl;
      myfile << "Plan folder = " + folder_plan << std::endl;
      myfile << "duration = " + duration << std::endl;
      return (0);
    }
  return (1);
}