Eclipse SUMO - Simulation of Urban MObility
SUMORouteLoader.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2002-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
15 // A class that performs the loading of routes
16 /****************************************************************************/
17 #ifndef SUMORouteLoader_h
18 #define SUMORouteLoader_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include <utils/common/SUMOTime.h>
27 
28 
29 // ===========================================================================
30 // class declarations
31 // ===========================================================================
32 class SUMORouteHandler;
33 class SUMOSAXReader;
34 
35 
36 // ===========================================================================
37 // class definitions
38 // ===========================================================================
43 public:
46 
49 
52 
54  bool moreAvailable() const;
55 
57  SUMOTime getFirstDepart() const;
58 
59 private:
62 
65 
68 };
69 
70 
71 #endif
72 
73 /****************************************************************************/
74 
SUMORouteLoader::getFirstDepart
SUMOTime getFirstDepart() const
returns the first departure time that was ever read
Definition: SUMORouteLoader.cpp:75
SUMORouteLoader
Definition: SUMORouteLoader.h:42
SUMOTime.h
SUMORouteLoader::myHandler
SUMORouteHandler * myHandler
the used Handler
Definition: SUMORouteLoader.h:67
SUMORouteLoader::myParser
SUMOSAXReader * myParser
the used SAXReader
Definition: SUMORouteLoader.h:61
SUMOSAXReader
SAX-reader encapsulation containing binary reader.
Definition: SUMOSAXReader.h:55
SUMOTime
long long int SUMOTime
Definition: SUMOTime.h:34
SUMORouteLoader::~SUMORouteLoader
~SUMORouteLoader()
destructor
Definition: SUMORouteLoader.cpp:41
SUMORouteLoader::myMoreAvailable
bool myMoreAvailable
flag with information whether more vehicles should be available
Definition: SUMORouteLoader.h:64
SUMORouteLoader::loadUntil
SUMOTime loadUntil(SUMOTime time)
loads vehicles until a vehicle is read that starts after the specified time
Definition: SUMORouteLoader.cpp:48
SUMORouteLoader::moreAvailable
bool moreAvailable() const
returns the information whether new data is available
Definition: SUMORouteLoader.cpp:69
SUMORouteHandler
Parser for routes during their loading.
Definition: SUMORouteHandler.h:50
config.h
SUMORouteLoader::SUMORouteLoader
SUMORouteLoader(SUMORouteHandler *handler)
constructor
Definition: SUMORouteLoader.cpp:32