aboutsummaryrefslogtreecommitdiffstats
path: root/include/navigation_info.h
blob: 6b20ad4c5dd213640175bc76d743412450fd0b7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
// Copyright 2019 NEDL CO.,LTD
#pragma once

#include <stdbool.h>
#include <stdint.h>
#include <string>
#include <stdlib.h>
#include <stdio.h>

/**
 *  @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

	/* GetDirState */
	char mCurrentState[256];		//current direction state info

	/* GetTotalDistance and GetCumulativeDistance */
	char mCurrentTotalDistance[256];		//current total distance info
	char mCurrentCumulativeDistance[256];		//current cumulative distance info

	/* GetGuidanceState */
	char mGuidanceState[256];		//current guidance state 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

	/*	guidance start position information	*/
	char mGuidanceStartLatitude[256] = {0};		//guidance start latitude info
	char mGuidanceStarLongitude[256] = {0};;	//guidance start longitude info

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 setNaviInfoCurrentDirState( char* state );
	char* getNaviInfoCurrentDirState();

	void setNaviInfoCurrentTotalDistance( char* totaldistance );
	int getNaviInfoCurrentTotalDistance();

	void setNaviInfoCurrentCumulativeDistance( char* cumulativedistance );
	int getNaviInfoCurrentCumulativeDistance();

	void setNaviInfoCurrentGuidanceState( char* state );
	char* getNaviInfoCurrentGuidanceState();

	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();

	void setGuidanceStartLatitude(char* latitude);
	char* getGuidanceStartLatitude();
	void setGuidanceStartLongitude(char* longitude);
	char* getGuidanceStartLongitude();
};