-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
38 lines (32 loc) · 778 Bytes
/
main.cpp
File metadata and controls
38 lines (32 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifdef _MSC_VER
#include <boost/config/compiler/visualc.hpp>
#endif
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <boost/foreach.hpp>
#include <cassert>
#include <exception>
#include <iostream>
#include <sstream>
#include <string>
#include "overlord.h"
void help(std::string);
int main(int argc, char* argv[]){
if ( argc == 1 ){
help(argv[0]);
return 0;
}
std::string filen = argv[1];
overlord o(filen);
o.read_json();
o.run_subprocess();
return 0;
}
void help(std::string filen){
std::cout << "Usage: "
<< filen
<< " data_file.json"
<< endl
<< "Outputs: results to output.txt"
<< endl;
}