-
Notifications
You must be signed in to change notification settings - Fork 10
/
xmllogger.h
51 lines (32 loc) · 1.52 KB
/
xmllogger.h
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
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef XMLLOGGER_H
#define XMLLOGGER_H
#include "tinyxml2.h"
#include "ilogger.h"
//That's the class that flushes the data to the output XML
class XmlLogger : public ILogger {
public:
XmlLogger(std::string loglevel):ILogger(loglevel){}
virtual ~XmlLogger() {};
bool getLog(const char *FileName, const std::string *LogParams);
void saveLog();
void writeToLogMap(const Map &Map, const std::list<Node> &path);
//void writeToLogOpenClose(const typename &open, const typename &close);
void writeToLogPath(const std::list<Node> &path);
void writeToLogHPpath(const std::list<Node> &hppath);
void writeToLogAggregatedResults(std::map<int, int>& successCount,
TestingResults &res,
const std::string& agentsFile = "");
void writeToLogAgentsPaths(const AgentSet& agentSet,
const std::vector<std::vector<Node>>& agentsPaths,
const std::string &agentsFile, double time,
double makespan, double flowtime,
int HLExpansions, int HLNodes,
int HLExpansionsStart, int HLNodesStart,
double LLExpansions, double LLNodes);
void writeToLogNotFound();
void writeToLogSummary(unsigned int numberofsteps, unsigned int nodescreated, float length, double time, double cellSize);
private:
std::string LogFileName;
tinyxml2::XMLDocument doc;
};
#endif