summaryrefslogtreecommitdiffstats
path: root/libnavi/include/JsonResponseAnalyzer.h
diff options
context:
space:
mode:
Diffstat (limited to 'libnavi/include/JsonResponseAnalyzer.h')
-rw-r--r--libnavi/include/JsonResponseAnalyzer.h25
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 );
+};
+