libosmscout 1.1.1
Loading...
Searching...
No Matches
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
26
27namespace osmscout {
28
29 struct OSMSCOUT_API ArrivalEstimateMessage CLASS_FINAL : public NavigationMessage
30 {
33
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
#define OSMSCOUT_API
Definition CoreImportExport.h:45
Definition Area.h:88
Timestamp arrivalEstimate
Definition ArrivalEstimateAgent.h:31
std::list< NavigationMessageRef > Process(const NavigationMessageRef &message) override
ArrivalEstimateAgent()=default
ArrivalEstimateMessage(const Timestamp &timestamp, const Timestamp &arrivalEstimate, const Distance &remainingDistance)
Distance remainingDistance
Definition ArrivalEstimateAgent.h:32
std::vector< VoiceSample > message
Definition VoiceInstructionAgent.h:99
Definition Engine.h:79
Definition Area.h:39
std::chrono::system_clock::time_point Timestamp
Definition Time.h:27
std::shared_ptr< NavigationMessage > NavigationMessageRef
Definition Engine.h:56
Definition Engine.h:49
const Timestamp timestamp
Definition Engine.h:50