forked from PathPlanning/AStar-JPS-ThetaStar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xmllogger.h
36 lines (29 loc) · 962 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
35
#ifndef XMLLOGGER_H
#define XMLLOGGER_H
#include <iostream>
#include "tinyxml.h"
#include "ilogger.h"
#include "map.h"
#include "list.h"
#include <ctime>
class XmlLogger : public ILogger
{
public:
XmlLogger(){}
~XmlLogger();
bool getLog(const char* FileName, const std::string* LogParams);
void saveLog();
void writeToLogMap(const Map& Map, const NodeList& path);
void writeToLogOpenClose(const NodeList *open, const std::unordered_map<int, Node> &close, int size);
void writeToLogPath(const NodeList& path);
void writeToLogHPpath(const NodeList& hppath);
void writeToLogNotFound();
void writeToLogSummary(unsigned int numberofsteps,
unsigned int nodescreated,
float length,
double time);
private:
std::string LogFileName;
TiXmlDocument *doc;
};
#endif