libosmscout
1.1.1
Toggle main menu visibility
Loading...
Searching...
No Matches
libosmscout
include
osmscout
navigation
Agents.h
Go to the documentation of this file.
1
#ifndef OSMSCOUT_NAVIGATION_AGENTS_H
2
#define OSMSCOUT_NAVIGATION_AGENTS_H
3
4
/*
5
This source is part of the libosmscout library
6
Copyright (C) 2018 Tim Teulings
7
8
This library is free software; you can redistribute it and/or
9
modify it under the terms of the GNU Lesser General Public
10
License as published by the Free Software Foundation; either
11
version 2.1 of the License, or (at your option) any later version.
12
13
This library is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
Lesser General Public License for more details.
17
18
You should have received a copy of the GNU Lesser General Public
19
License along with this library; if not, write to the Free Software
20
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
*/
22
23
#include <
osmscout/navigation/Engine.h
>
24
25
#include <
osmscout/location/LocationDescriptionService.h
>
26
#include <
osmscout/routing/AbstractRoutingService.h
>
27
28
namespace
osmscout
{
34
struct
OSMSCOUT_API
GPSUpdateMessage
CLASS_FINAL
:
public
NavigationMessage
35
{
36
const
GeoCoord
currentPosition
;
37
const
double
currentSpeed
;
38
const
Distance
horizontalAccuracy
;
39
46
GPSUpdateMessage
(
const
Timestamp
&
timestamp
,
47
const
GeoCoord
&
currentPosition
,
48
double
currentSpeed
,
49
const
Distance &
horizontalAccuracy
);
50
};
51
52
/*
53
struct OSMSCOUT_API StreetChangedMessage CLASS_FINAL : public NavigationMessage
54
{
55
const std::string name;
56
57
StreetChangedMessage(const Timestamp& timestamp,
58
const std::string& name);
59
};
60
61
class OSMSCOUT_API CurrentStreetAgent CLASS_FINAL : public NavigationAgent
62
{
63
private:
64
LocationDescriptionServiceRef locationDescriptionService;
65
66
GeoCoord currentPosition;
67
Timestamp lastCheckTime;
68
std::string lastStreetName;
69
70
private:
71
std::string GetStreetName() const;
72
73
public:
74
explicit CurrentStreetAgent(const LocationDescriptionServiceRef& locationDescriptionService);
75
std::list<NavigationMessageRef> Process(const NavigationMessageRef& message) override;
76
};
77
*/
78
84
struct
OSMSCOUT_API
RouteUpdateMessage
CLASS_FINAL
:
public
NavigationMessage
85
{
86
const
RouteDescriptionRef
routeDescription
;
87
osmscout::Vehicle
vehicle
;
88
89
RouteUpdateMessage
(
const
Timestamp
&
timestamp
,
90
const
RouteDescriptionRef
&
routeDescription
,
91
const
osmscout::Vehicle
&
vehicle
);
92
};
93
94
}
95
96
#endif
AbstractRoutingService.h
OSMSCOUT_API
#define OSMSCOUT_API
Definition
CoreImportExport.h:45
Engine.h
LocationDescriptionService.h
osmscout::CLASS_FINAL
Definition
Area.h:88
osmscout::CLASS_FINAL::horizontalAccuracy
const Distance horizontalAccuracy
Definition
Agents.h:38
osmscout::CLASS_FINAL::RouteUpdateMessage
RouteUpdateMessage(const Timestamp ×tamp, const RouteDescriptionRef &routeDescription, const osmscout::Vehicle &vehicle)
osmscout::CLASS_FINAL::currentPosition
const GeoCoord currentPosition
Definition
Agents.h:36
osmscout::CLASS_FINAL::GeoCoord
GeoCoord()=default
osmscout::CLASS_FINAL::GPSUpdateMessage
GPSUpdateMessage(const Timestamp ×tamp, const GeoCoord ¤tPosition, double currentSpeed, const Distance &horizontalAccuracy)
osmscout::CLASS_FINAL::routeDescription
const RouteDescriptionRef routeDescription
Definition
Agents.h:86
osmscout::CLASS_FINAL::currentSpeed
const double currentSpeed
Definition
Agents.h:37
osmscout::CLASS_FINAL::vehicle
osmscout::Vehicle vehicle
Definition
Agents.h:87
osmscout
Definition
Area.h:39
osmscout::Timestamp
std::chrono::system_clock::time_point Timestamp
Definition
Time.h:27
osmscout::RouteDescriptionRef
std::shared_ptr< RouteDescription > RouteDescriptionRef
Definition
RouteDescription.h:834
osmscout::Vehicle
Vehicle
Definition
OSMScoutTypes.h:55
osmscout::NavigationMessage
Definition
Engine.h:49
osmscout::NavigationMessage::timestamp
const Timestamp timestamp
Definition
Engine.h:50
Generated by
1.17.0