aboutsummaryrefslogtreecommitdiffstats
path: root/include/navigation_info.h
blob: a0c9f4990ba1d94b5aeefd019c53d2e2cc2a8d64 (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
// 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

	/*	getAllroutes	*/
	uint32_t mRoutes;				//current route count

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

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

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