update// added filesystem and reformated addressbook

This commit is contained in:
Strider
2020-05-17 13:18:19 +02:00
parent 57a5df8ae7
commit 4f584ac86e
22 changed files with 615 additions and 8 deletions

47
src/Logger/LogType.h Normal file
View File

@@ -0,0 +1,47 @@
#ifndef LOGTYPE_H
#define LOGTYPE_H
#include <string>
class LogType
{
public:
enum TYPE {
INFO = 0,
DEBUG = 1,
SUCCESS = 2,
WARNING = 3,
ERROR = 4,
FATAL = 5,
CRITICAL = 6
};
static std::string enum2String(int type)
{
switch (type)
{
default:
case 0:
return "INFO";
case 1:
return "DEBUG";
case 2:
return "SUCCESS";
case 3:
return "WARNING";
case 4:
return "ERROR";
case 5:
return "FATAL";
case 6:
return "CRITICAL";
}
}
};
#endif