-
Notifications
You must be signed in to change notification settings - Fork 1
/
xmllogger.h
33 lines (26 loc) · 987 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
#ifndef XMLLOGGER_H
#define XMLLOGGER_H
#include "gl_const.h"
#include "logger.h"
#include "tinyxml/tinyxml.h"
#include "tinyxml/tinystr.h"
#include <iostream>
#include <sstream>
#include <string>
class cXmlLogger : public Logger {
private:
std::string logFileName;
TiXmlDocument *doc;
public:
cXmlLogger(float loglvl);
~cXmlLogger();
bool getLog(const char* FileName);
void saveLog();
void writeToLogMap(const Map &map,const std::list<Node> &path);
void writeToLogOpenClose(const OpenList &open, const std::unordered_multimap<int, Node> &close, const int size);
void writeToLogPath(const std::list<Node> &path, const std::vector<float> &angles);
void writeToLogHpLevel(const std::list<Node> &path);
void writeToLogSummary(const std::list<Node> &path, int numberofsteps, int nodescreated, float length, float length_scaled,
long double time, float max_angle, float accum_angle, int sections);
};
#endif