diff options
author | 2018-12-20 10:34:08 +0900 | |
---|---|---|
committer | 2019-02-12 02:00:41 +0000 | |
commit | 692208b29ec18373960928bcbfdf4474a1af7b7b (patch) | |
tree | 72130f4f8b99e9ba2e5473c1484198e4e9ef91be /src/util.cpp | |
parent | 923df38d358f8971cf16cc78365adb2b45182bc5 (diff) |
Introduce changeAreaSize and getAreaList
In CES2019 demo, these features are introduced in demo3.
1. changeAreaSize : change area definition on runtime
2. getAreaList : get area definition list
v2. fix merge conflict
util.hpp
util.cpp
Bug-AGL : SPEC-2077
Change-Id: I1fa3c9e3648c69e14a3916cbeeb9775ed94c833a
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp index f26a4a1..0591d55 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -176,3 +176,20 @@ std::string get_file_path(const char *file_name, const char *root_path) HMI_INFO("Using %s", path.c_str()); return path; } + +void ChangeAreaReq::dump() +{ + DUMP("=== change request dump ==="); + DUMP("request from : %s", this->appname.c_str()); + DUMP("save : %s", this->save ? "true" : "false"); + for(const auto& req : this->area_req) + { + DUMP("area change req : %s", req.first.c_str()); + DUMP(" x:%d y:%d w:%d h:%d",req.second.x, req.second.y, req.second.w, req.second.h); + } + for(const auto& req : this->update_app2area) + { + DUMP("update change app : %s, area:%s", req.first.c_str(), req.second.c_str()); + } + DUMP("======== dump end ========="); +} |