SUMO - Simulation of Urban MObility
RODFDetFlowLoader.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
19 // A loader for detector flows
20 /****************************************************************************/
21 #ifndef RODFDetFlowLoader_h
22 #define RODFDetFlowLoader_h
23 
24 
25 // ===========================================================================
26 // included modules
27 // ===========================================================================
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
34 #include <string>
35 #include <vector>
38 #include "RODFDetector.h"
39 #include "RODFDetectorFlow.h"
40 
41 
42 // ===========================================================================
43 // class definitions
44 // ===========================================================================
50 public:
60  SUMOTime startTime, SUMOTime endTime,
61  SUMOTime timeOffset, SUMOTime timeScale);
62 
63 
66 
67 
82  void read(const std::string& file);
83 
84 
85 private:
88 
91 
94 
97 
100 
103 
106 
109 
110 
111 private:
114 
117 
118 };
119 
120 
121 #endif
122 
123 /****************************************************************************/
124 
bool myHaveWarnedAboutOverridingBoundaries
Whether a warning about overriding boundaries was already written.
const SUMOTime myStartTime
The first and the last time step to read.
const SUMOTime myTimeOffset
The time offset to apply to read time values.
const SUMOTime myEndTime
const RODFDetectorCon & myDetectorContainer
Container holding known detectors.
RODFDetFlowLoader(const RODFDetectorCon &dets, RODFDetectorFlows &into, SUMOTime startTime, SUMOTime endTime, SUMOTime timeOffset, SUMOTime timeScale)
Constructor.
A container for flows.
A container for RODFDetectors.
Definition: RODFDetector.h:227
A loader for detector flows.
RODFDetectorFlows & myStorage
The container for read detector values.
void read(const std::string &file)
Reads the given file assuming it contains detector values.
RODFDetFlowLoader & operator=(const RODFDetFlowLoader &src)
Invalidated assignment operator.
const SUMOTime myTimeScale
The time scale to apply to read time values.
bool myHaveWarnedAboutPartialDefs
Whether a warning about partial definitions was already written.
NamedColumnsParser myLineHandler
The value extractor.
~RODFDetFlowLoader()
Destructor.
A parser to retrieve information from a table with known columns.
long long int SUMOTime
Definition: TraCIDefs.h:51