summaryrefslogtreecommitdiffstats
path: root/include/analyze_request.h
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2019-08-30 11:40:23 -0400
committerScott Murray <scott.murray@konsulko.com>2019-08-30 11:42:40 -0400
commitf14ecdd52975ae365af5ed32648bf55dddacb8d9 (patch)
treee33d2af8d2e129b372caf34afac37366b641553a /include/analyze_request.h
parentdd61aa309b3a082488c9d3c383c1601fd3efbc2a (diff)
Initial check in
Initial check in of contents of the original repository: git://github.com/AGLExport/agl-service-navigation as of commit 1f1ffc92fcc882aa5e885badbc91a3384f5d77b1. Bug-AGL: SPEC-2787 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I02d008ee73cdfd88f1e7587ee57101187b9c4d6d
Diffstat (limited to 'include/analyze_request.h')
-rw-r--r--include/analyze_request.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/analyze_request.h b/include/analyze_request.h
new file mode 100644
index 0000000..f570a1c
--- /dev/null
+++ b/include/analyze_request.h
@@ -0,0 +1,31 @@
+// Copyright 2017 AW SOFTWARE CO.,LTD
+// Copyright 2017 AISIN AW CO.,LTD
+
+#pragma once
+
+#include <stdbool.h>
+#include <stdint.h>
+#include <vector>
+
+#include "genivi_request.h"
+
+/**
+ * @brief Analyze requests from BinderClient and create arguments to pass to Genivi API.
+ */
+class AnalyzeRequest
+{
+public:
+ bool CreateParamsGetPosition( const char* req_json_str, std::vector< int32_t >& Params );
+ bool CreateParamsCreateRoute( const char* req_json_str, uint32_t& sessionHdl );
+ bool CreateParamsPauseSimulation( const char* req_json_str, uint32_t& sessionHdl );
+ bool CreateParamsSetSimulationMode( const char* req_json_str, uint32_t& sessionHdl, bool& simuMode );
+ bool CreateParamsCancelRouteCalculation( const char* req_json_str, uint32_t& sessionHdl, uint32_t& routeHdl );
+ bool CreateParamsSetWaypoints( const char* req_json_str, uint32_t& sessionHdl, uint32_t& routeHdl,
+ bool& currentPos, std::vector<Waypoint>& waypointsList );
+ bool CreateParamsCalculateRoute( const char* req_json_str, uint32_t& sessionHdl, uint32_t& routeHdl );
+
+private:
+ bool JsonObjectGetSessionHdl( const char* req_json_str, uint32_t& sessionHdl);
+ bool JsonObjectGetSessionHdlRouteHdl( const char* req_json_str, uint32_t& sessionHdl, uint32_t& routeHdl);
+};
+