Use logid namespace

This commit is contained in:
PixlOne
2019-10-04 21:56:17 -04:00
parent 295a469505
commit 9272666ffe
13 changed files with 394 additions and 357 deletions
+20 -17
View File
@@ -1,26 +1,29 @@
#ifndef UTIL_H
#define UTIL_H
#ifndef LOGID_UTIL_H
#define LOGID_UTIL_H
#include "Actions.h"
enum LogLevel
namespace logid
{
DEBUG,
INFO,
WARN,
ERROR
};
enum LogLevel
{
DEBUG,
INFO,
WARN,
ERROR
};
extern LogLevel global_verbosity;
extern LogLevel global_verbosity;
void log_printf(LogLevel level, const char* format, ...);
void log_printf(LogLevel level, const char* format, ...);
const char* level_prefix(LogLevel level);
const char* level_prefix(LogLevel level);
Direction get_direction(int x, int y);
Direction string_to_direction(std::string s);
GestureMode string_to_gesturemode(std::string s);
Action string_to_action(std::string s);
LogLevel string_to_loglevel(std::string s);
Direction get_direction(int x, int y);
Direction string_to_direction(std::string s);
GestureMode string_to_gesturemode(std::string s);
Action string_to_action(std::string s);
LogLevel string_to_loglevel(std::string s);
}
#endif //UTIL_H
#endif //LOGID_UTIL_H