diff options
Diffstat (limited to 'src/util.hpp')
-rw-r--r-- | src/util.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/util.hpp b/src/util.hpp index 077f212..57eaf81 100644 --- a/src/util.hpp +++ b/src/util.hpp @@ -19,6 +19,8 @@ #include <functional> #include <thread> +#include <string> +#include <vector> #include <sys/poll.h> #include <string.h> @@ -36,7 +38,7 @@ #define HMI_SEQ_INFO(seq_num, args,...) _HMI_SEQ_LOG(LOG_LEVEL_INFO, __FILENAME__, __FUNCTION__, __LINE__, seq_num, args, ##__VA_ARGS__) #define HMI_SEQ_DEBUG(seq_num, args,...) _HMI_SEQ_LOG(LOG_LEVEL_DEBUG, __FILENAME__, __FUNCTION__, __LINE__, seq_num, args, ##__VA_ARGS__) -#define DUMP(args, ...) _DUMP(LOG_LEVEL_DEBUG, args, ##__VA_ARGS__) +#define DUMP(args, ...) _DUMP(LOG_LEVEL_INFO, args, ##__VA_ARGS__) enum LOG_LEVEL{ LOG_LEVEL_NONE = 0, @@ -52,6 +54,9 @@ void _HMI_LOG(enum LOG_LEVEL level, const char* file, const char* func, const in void _HMI_SEQ_LOG(enum LOG_LEVEL level, const char* file, const char* func, const int line, unsigned seq_num, const char* log, ...); void _DUMP(enum LOG_LEVEL level, const char *log, ...); +std::vector<std::string> parseString(std::string str, char delimiter); +std::string deleteSpace(std::string str); + struct rect { int32_t w, h; |