-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathlogger.h
executable file
·31 lines (24 loc) · 1.01 KB
/
logger.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
#ifndef LOGGER_H
#define LOGGER_H
#include "map.h"
#include "node.h"
#include "openlist.h"
#include <list>
#include <vector>
#include <unordered_map>
class Logger {
public:
float loglevel;
public:
Logger() : loglevel(-1) {}
virtual ~Logger() {}
virtual bool getLog(const char* FileName) = 0;
virtual void saveLog() = 0;
virtual void writeToLogIter(int closeSize, const Node &curNode) = 0;
virtual void writeToLogMap(const Map &map,const std::list<Node> &path) = 0;
virtual void writeToLogOpenClose(const OpenList &open, const std::unordered_multimap<int, Node>& close) = 0;
virtual void writeToLogPath(const std::list<Node> &path, const std::vector<float> &angles) = 0;
virtual void writeToLogHpLevel(const std::list<Node> &path) = 0;
virtual 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) = 0;};
#endif