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-2018 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 /****************************************************************************/
16 // A class that performs the loading of routes
17 /****************************************************************************/
18 #ifndef SUMORouteLoader_h
19 #define SUMORouteLoader_h
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
27 #include <utils/common/SUMOTime.h>
28 
29 
30 // ===========================================================================
31 // class declarations
32 // ===========================================================================
33 class SUMORouteHandler;
34 class SUMOSAXReader;
35 
36 
37 // ===========================================================================
38 // class definitions
39 // ===========================================================================
44 public:
47 
50 
54 
56  bool moreAvailable() const;
57 
59  SUMOTime getFirstDepart() const;
60 
61 private:
64 
67 
70 
71 };
72 
73 
74 #endif
75 
76 /****************************************************************************/
77 
long long int SUMOTime
Definition: SUMOTime.h:36
bool myMoreAvailable
information whether more vehicles should be available
SAX-reader encapsulation containing binary reader.
Definition: SUMOSAXReader.h:51
~SUMORouteLoader()
destructor
bool moreAvailable() const
returns the information whether new data is available
SUMOTime loadUntil(SUMOTime time)
SUMOTime getFirstDepart() const
returns the first departure time that was ever read
SUMORouteHandler * myHandler
the used Handler
Parser for routes during their loading.
SUMOSAXReader * myParser
the used SAXReader
SUMORouteLoader(SUMORouteHandler *handler)
constructor