-
Notifications
You must be signed in to change notification settings - Fork 6
/
ilogger.h
25 lines (22 loc) · 978 Bytes
/
ilogger.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
#ifndef ILOGGER_H
#define ILOGGER_H
#include "map.h"
#include <unordered_map>
#include <list>
class ILogger
{
public:
ILogger(std::string loglevel) {this->loglevel = loglevel;}
virtual bool getLog(const char* FileName, const std::string* LogParams) = 0;
virtual void saveLog() = 0;
virtual void writeToLogMap(const Map& map, const std::list<Node>& path, bool pathfound) = 0;
//virtual void writeToLogOpenClose(const std::vector<std::list<ANode>>& open, const std::unordered_map<int,ANode>& close, bool last) = 0;
virtual void writeToLogPath(const std::list<Node>& path) = 0;
virtual void writeToLogHPpath(const std::list<Node>& path) = 0;
virtual void writeToLogNotFound() = 0;
virtual void writeToLogSummary(unsigned int numberofsteps, unsigned int nodescreated, float length, double time, double cellSize) = 0;
virtual ~ILogger() {};
protected:
std::string loglevel;
};
#endif