-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
29 lines (22 loc) · 814 Bytes
/
main.cpp
File metadata and controls
29 lines (22 loc) · 814 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
#include"mission.h"
#include <iostream>
int main(int argc, char* argv[]) {
if (argc == 2) {
Mission Mission(argv[1]);
std::cout<<"Retreiving map from input XML file.\n";
if (!Mission.getMap()) {
std::cout<<"Program terminated.\n";
return 0;
}
std::cout<<"Retreiving search algorithm configuration from input XML file.\n";
if (!Mission.getConfig()) return 0;
Mission.createSearch();
Mission.createLog();
Mission.startSearch();
std::cout<<"Search is finished!"<<std::endl;
Mission.printSearchResultsToConsole();
Mission.saveSearchResultsToLog();
std::cout<<"Results are saved (if chosen) via created log channel."<<std::endl;
}
return 1;
}