diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2019-05-30 16:25:17 +0900 |
---|---|---|
committer | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2019-05-30 16:25:17 +0900 |
commit | ddfeaf3e35317e17905cbba1ee01e81111916c1a (patch) | |
tree | 5fa70739aa2868548fd85c6ca085b3b99b1a8aaa /libnavi/include/JsonResponseAnalyzer.h | |
parent | dd61aa309b3a082488c9d3c383c1601fd3efbc2a (diff) |
add als2019 source
Diffstat (limited to 'libnavi/include/JsonResponseAnalyzer.h')
-rw-r--r-- | libnavi/include/JsonResponseAnalyzer.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/libnavi/include/JsonResponseAnalyzer.h b/libnavi/include/JsonResponseAnalyzer.h new file mode 100644 index 0000000..50b2cd2 --- /dev/null +++ b/libnavi/include/JsonResponseAnalyzer.h @@ -0,0 +1,25 @@ +// Copyright 2017 AW SOFTWARE CO.,LTD +// Copyright 2017 AISIN AW CO.,LTD + +#pragma once + +#include <json-c/json.h> +#include <stdint.h> +#include <string> +#include <vector> +#include <map> + +#include "libnavicore.hpp" + +/** +* @brief JSON response analysis class +*/ +class JsonResponseAnalyzer +{ +public: + static std::map< int32_t, naviapi::variant > AnalyzeResponseGetPosition( std::string& res_json ); + static std::vector< uint32_t > AnalyzeResponseGetAllRoutes( std::string& res_json ); + static uint32_t AnalyzeResponseCreateRoute( std::string& res_json ); + static std::map<uint32_t, std::string> AnalyzeResponseGetAllSessions( std::string& res_json ); +}; + |