Eclipse 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-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 /****************************************************************************/
17 // A loader for detector flows
18 /****************************************************************************/
19 #ifndef RODFDetFlowLoader_h
20 #define RODFDetFlowLoader_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <config.h>
27 
28 #include <string>
29 #include <vector>
32 #include "RODFDetector.h"
33 #include "RODFDetectorFlow.h"
34 
35 
36 // ===========================================================================
37 // class definitions
38 // ===========================================================================
44 public:
54  SUMOTime startTime, SUMOTime endTime,
55  SUMOTime timeOffset, SUMOTime timeScale);
56 
57 
60 
61 
76  void read(const std::string& file);
77 
78 
79 private:
82 
85 
88 
91 
94 
97 
100 
103 
104 
105 private:
108 
111 
112 };
113 
114 
115 #endif
116 
117 /****************************************************************************/
118 
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.
long long int SUMOTime
Definition: SUMOTime.h:35
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:221
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.