aboutsummaryrefslogtreecommitdiffstats
path: root/include/genivi_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-09-05 00:18:27 +0000
commitda9d177514fe438edd8262226cdc770df6c9eb82 (patch)
treee33d2af8d2e129b372caf34afac37366b641553a /include/genivi_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 (cherry picked from commit f14ecdd52975ae365af5ed32648bf55dddacb8d9)
Diffstat (limited to 'include/genivi_request.h')
-rw-r--r--include/genivi_request.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/include/genivi_request.h b/include/genivi_request.h
new file mode 100644
index 0000000..75201c7
--- /dev/null
+++ b/include/genivi_request.h
@@ -0,0 +1,37 @@
+// Copyright 2017 AW SOFTWARE CO.,LTD
+// Copyright 2017 AISIN AW CO.,LTD
+
+#pragma once
+
+#include <map>
+#include <vector>
+#include <stdint.h>
+
+typedef std::tuple<double, double> Waypoint;
+
+/**
+ * @brief Genivi API call.
+ */
+class GeniviRequest
+{
+public:
+ ~GeniviRequest();
+
+ std::map< int32_t, double > NavicoreGetPosition( const std::vector< int32_t >& valuesToReturn );
+ std::vector< uint32_t > NavicoreGetAllRoutes();
+ uint32_t NavicoreCreateRoute( const uint32_t& sessionHandle );
+ void NavicorePauseSimulation( const uint32_t& sessionHandle );
+ void NavicoreSetSimulationMode( const uint32_t& sessionHandle, const bool& activate );
+ void NavicoreCancelRouteCalculation( const uint32_t& sessionHandle, const uint32_t& routeHandle );
+ void NavicoreSetWaypoints( const uint32_t& sessionHandle, const uint32_t& routeHandle,
+ const bool& startFromCurrentPosition, const std::vector<Waypoint>& waypointsList );
+ void NavicoreCalculateRoute( const uint32_t& sessionHandle, const uint32_t& routeHandle );
+ std::map<uint32_t, std::string> NavicoreGetAllSessions();
+
+private:
+ void* navicore_;
+
+ void CreateDBusSession();
+ bool CheckSession();
+};
+