forked from PathPlanning/AStar-JPS-ThetaStar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xmllogger.h
35 lines (21 loc) · 859 Bytes
/
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
#ifndef XMLLOGGER_H
#define XMLLOGGER_H
#include "tinyxml2.h"
#include "ilogger.h"
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 std::vector<std::list<Node>> &open, const std::unordered_map<int, Node> &close, bool last);
void writeToLogPath(const std::list<Node> &path);
void writeToLogHPpath(const std::list<Node> &hppath);
void writeToLogNotFound();
void writeToLogSummary(unsigned int numberofsteps, unsigned int nodescreated, float length, double time, double cellSize);
private:
std::string LogFileName;
tinyxml2::XMLDocument doc;
};
#endif