From ddfeaf3e35317e17905cbba1ee01e81111916c1a Mon Sep 17 00:00:00 2001 From: zheng_wenlong Date: Thu, 30 May 2019 16:25:17 +0900 Subject: add als2019 source --- include/navigation_info.h | 76 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 include/navigation_info.h (limited to 'include/navigation_info.h') diff --git a/include/navigation_info.h b/include/navigation_info.h new file mode 100644 index 0000000..acdd93e --- /dev/null +++ b/include/navigation_info.h @@ -0,0 +1,76 @@ +// Copyright 2019 NEDL CO.,LTD +#pragma once + +#include +#include +#include +#include +#include + +/** + * @brief get or set navigation infomation + */ +class NavigationInfo +{ +private: + /* AllSessions */ + uint32_t mSessionHandle; //sessionhandle + std::string mClient; //client name + + /* GetPosition */ + char mCurrentLatitude[256]; //current latitude info + char mCurrentLongitude[256]; //current longitude info + char mCurrentHeading[256]; //current heading info + + /* getAllroutes */ + uint32_t mRoutes; //current route count + + /* getdestination */ + char mDestLatitude[256]; //Destination latitude info + char mDestLongitude[256]; //Destination longitude info + + /* demodestination */ + char mDemoLatitude[256]; //current latitude info when in demo + char mDemoLongitude[256]; //current longitude info when in demo + char mDemoDistance[256]; //the distance from current position(along the route) + char mDemoDirection[256]; //current car direction + +public: + //get&set function for per members + void setNaviInfoSessionHandle( char* sessionHandle ); + uint32_t getNaviInfoSessionHandle(); + + void setNaviInfoClient( std::string client ); + std::string getNaviInfoClient(); + + void setNaviInfoCurrentLatitude( char* latitude ); + char* getNaviInfoCurrentLatitude(); + + void setNaviInfoCurrentLongitude( char* longitude ); + char* getNaviInfoCurrentLongitude(); + + void setNaviInfoCurrentHeading( char* heading ); + char* getNaviInfoCurrentHeading(); + + void setNaviInfoAllRoutes( char* route ); + uint32_t getNaviInfoAllRoutes(); + + void setNaviInfoDestLatitude( char* latitude ); + char* getNaviInfoDestLatitude(); + + void setNaviInfoDestLongitude( char* longitude ); + char* getNaviInfoDestLongitude(); + + void setNaviInfoDemoLatitude( char* latitude ); + char* getNaviInfoDemoLatitude(); + + void setNaviInfoDemoLongitude( char* longitude ); + char* getNaviInfoDemoLongitude(); + + void setNaviInfoDemoDistance( char* distance ); + char* getNaviInfoDemoDistance(); + + void setNaviInfoDemoDirection( char* direction ); + char* getNaviInfoDemoDirection(); +}; + -- cgit 1.2.3-korg