libosmscout
1.1.1
Toggle main menu visibility
Loading...
Searching...
No Matches
libosmscout
include
osmscout
navigation
ArrivalEstimateAgent.h
Go to the documentation of this file.
1
#ifndef OSMSCOUT_NAVIGATION_ARRIVAL_ESTIMATE_AGENT_H
2
#define OSMSCOUT_NAVIGATION_ARRIVAL_ESTIMATE_AGENT_H
3
4
/*
5
This source is part of the libosmscout library
6
Copyright (C) 2019 Lukas Karas
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
#include <
osmscout/navigation/Agents.h
>
25
#include <
osmscout/navigation/PositionAgent.h
>
26
27
namespace
osmscout
{
28
29
struct
OSMSCOUT_API
ArrivalEstimateMessage
CLASS_FINAL
:
public
NavigationMessage
30
{
31
Timestamp
arrivalEstimate
;
32
Distance
remainingDistance
;
33
34
ArrivalEstimateMessage
(
const
Timestamp
&
timestamp
,
35
const
Timestamp
&
arrivalEstimate
,
36
const
Distance&
remainingDistance
);
37
};
38
39
class
OSMSCOUT_API
ArrivalEstimateAgent
CLASS_FINAL
:
public
NavigationAgent
40
{
41
private
:
42
43
public
:
44
explicit
ArrivalEstimateAgent
() =
default
;
45
std::list<NavigationMessageRef>
Process
(
const
NavigationMessageRef
&
message
)
override
;
46
};
47
}
48
49
#endif
//OSMSCOUT_NAVIGATION_ARRIVAL_ESTIMATE_AGENT_H
50
Agents.h
OSMSCOUT_API
#define OSMSCOUT_API
Definition
CoreImportExport.h:45
Engine.h
PositionAgent.h
osmscout::CLASS_FINAL
Definition
Area.h:88
osmscout::CLASS_FINAL::arrivalEstimate
Timestamp arrivalEstimate
Definition
ArrivalEstimateAgent.h:31
osmscout::CLASS_FINAL::Process
std::list< NavigationMessageRef > Process(const NavigationMessageRef &message) override
osmscout::CLASS_FINAL::ArrivalEstimateAgent
ArrivalEstimateAgent()=default
osmscout::CLASS_FINAL::ArrivalEstimateMessage
ArrivalEstimateMessage(const Timestamp ×tamp, const Timestamp &arrivalEstimate, const Distance &remainingDistance)
osmscout::CLASS_FINAL::remainingDistance
Distance remainingDistance
Definition
ArrivalEstimateAgent.h:32
osmscout::CLASS_FINAL::message
std::vector< VoiceSample > message
Definition
VoiceInstructionAgent.h:99
osmscout::NavigationAgent
Definition
Engine.h:79
osmscout
Definition
Area.h:39
osmscout::Timestamp
std::chrono::system_clock::time_point Timestamp
Definition
Time.h:27
osmscout::NavigationMessageRef
std::shared_ptr< NavigationMessage > NavigationMessageRef
Definition
Engine.h:56
osmscout::NavigationMessage
Definition
Engine.h:49
osmscout::NavigationMessage::timestamp
const Timestamp timestamp
Definition
Engine.h:50
Generated by
1.17.0