diff options
Diffstat (limited to 'src/util.hpp')
-rw-r--r-- | src/util.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/util.hpp b/src/util.hpp index 9540772..4c3870f 100644 --- a/src/util.hpp +++ b/src/util.hpp @@ -1,6 +1,5 @@ /* * Copyright (c) 2017 TOYOTA MOTOR CORPORATION - * Copyright (c) 2018 Konsulko Group * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,6 +19,8 @@ #include <functional> #include <thread> +#include <string> +#include <vector> #include <unordered_map> #include <sys/poll.h> #include <string.h> @@ -54,6 +55,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; @@ -119,9 +123,6 @@ class rectangle long _bottom; }; -// Configuration file path helper -std::string get_file_path(const char *file_name, const char *root_path = NULL); - typedef struct ChangeAreaReq { std::string appname; std::unordered_map<std::string, struct rect> area_req; @@ -132,5 +133,4 @@ typedef struct ChangeAreaReq { ChangeAreaReq(const ChangeAreaReq& val) = default; void dump(); } ChangeAreaReq; - -#endif // WM_UTIL_HPP +#endif // !WM_UTIL_HPP |