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 /****************************************************************************/
16 // A loader for detector flows
17 /****************************************************************************/
18 #ifndef RODFDetFlowLoader_h
19 #define RODFDetFlowLoader_h
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
27 #include <string>
28 #include <vector>
31 #include "RODFDetector.h"
32 #include "RODFDetectorFlow.h"
33 
34 
35 // ===========================================================================
36 // class definitions
37 // ===========================================================================
43 public:
53  SUMOTime startTime, SUMOTime endTime,
54  SUMOTime timeOffset, SUMOTime timeScale);
55 
56 
59 
60 
75  void read(const std::string& file);
76 
77 
78 private:
81 
84 
87 
90 
93 
96 
99 
102 
103 
104 private:
107 
110 
111 };
112 
113 
114 #endif
115 
116 /****************************************************************************/
117 
RODFDetectorFlows
A container for flows.
Definition: RODFDetectorFlow.h:67
RODFDetFlowLoader::myStartTime
const SUMOTime myStartTime
The first and the last time step to read.
Definition: RODFDetFlowLoader.h:89
RODFDetFlowLoader::operator=
RODFDetFlowLoader & operator=(const RODFDetFlowLoader &src)
Invalidated assignment operator.
RODFDetFlowLoader
A loader for detector flows.
Definition: RODFDetFlowLoader.h:42
RODFDetFlowLoader::myEndTime
const SUMOTime myEndTime
Definition: RODFDetFlowLoader.h:89
SUMOTime
long long int SUMOTime
Definition: SUMOTime.h:34
RODFDetector.h
RODFDetectorCon
A container for RODFDetectors.
Definition: RODFDetector.h:220
RODFDetFlowLoader::myDetectorContainer
const RODFDetectorCon & myDetectorContainer
Container holding known detectors.
Definition: RODFDetFlowLoader.h:95
RODFDetFlowLoader::~RODFDetFlowLoader
~RODFDetFlowLoader()
Destructor.
Definition: RODFDetFlowLoader.cpp:50
RODFDetFlowLoader::myTimeScale
const SUMOTime myTimeScale
The time scale to apply to read time values.
Definition: RODFDetFlowLoader.h:86
NamedColumnsParser.h
UtilExceptions.h
RODFDetFlowLoader::RODFDetFlowLoader
RODFDetFlowLoader(const RODFDetectorCon &dets, RODFDetectorFlows &into, SUMOTime startTime, SUMOTime endTime, SUMOTime timeOffset, SUMOTime timeScale)
Constructor.
Definition: RODFDetFlowLoader.cpp:40
RODFDetectorFlow.h
RODFDetFlowLoader::myTimeOffset
const SUMOTime myTimeOffset
The time offset to apply to read time values.
Definition: RODFDetFlowLoader.h:83
config.h
RODFDetFlowLoader::myHaveWarnedAboutPartialDefs
bool myHaveWarnedAboutPartialDefs
Whether a warning about partial definitions was already written.
Definition: RODFDetFlowLoader.h:101
RODFDetFlowLoader::myLineHandler
NamedColumnsParser myLineHandler
The value extractor.
Definition: RODFDetFlowLoader.h:92
RODFDetFlowLoader::myHaveWarnedAboutOverridingBoundaries
bool myHaveWarnedAboutOverridingBoundaries
Whether a warning about overriding boundaries was already written.
Definition: RODFDetFlowLoader.h:98
RODFDetFlowLoader::myStorage
RODFDetectorFlows & myStorage
The container for read detector values.
Definition: RODFDetFlowLoader.h:80
RODFDetFlowLoader::read
void read(const std::string &file)
Reads the given file assuming it contains detector values.
Definition: RODFDetFlowLoader.cpp:54
NamedColumnsParser
A parser to retrieve information from a table with known columns.
Definition: NamedColumnsParser.h:50