SUMO - Simulation of Urban MObility
RODFDetFlowLoader.h
Go to the documentation of this file.
1 /****************************************************************************/
9 // A loader for detector flows
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
12 // Copyright (C) 2001-2015 DLR (http://www.dlr.de/) and contributors
13 /****************************************************************************/
14 //
15 // This file is part of SUMO.
16 // SUMO is free software: you can redistribute it and/or modify
17 // it under the terms of the GNU General Public License as published by
18 // the Free Software Foundation, either version 3 of the License, or
19 // (at your option) any later version.
20 //
21 /****************************************************************************/
22 #ifndef RODFDetFlowLoader_h
23 #define RODFDetFlowLoader_h
24 
25 
26 // ===========================================================================
27 // included modules
28 // ===========================================================================
29 #ifdef _MSC_VER
30 #include <windows_config.h>
31 #else
32 #include <config.h>
33 #endif
34 
35 #include <string>
36 #include <vector>
39 #include "RODFDetector.h"
40 #include "RODFDetectorFlow.h"
41 
42 
43 // ===========================================================================
44 // class definitions
45 // ===========================================================================
51 public:
61  SUMOTime startTime, SUMOTime endTime,
62  SUMOTime timeOffset, int timeScale);
63 
64 
67 
68 
83  void read(const std::string& file);
84 
85 
86 private:
89 
92 
95 
98 
101 
104 
107 
110 
111 
112 private:
115 
118 
119 };
120 
121 
122 #endif
123 
124 /****************************************************************************/
125 
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.
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.
RODFDetFlowLoader(const RODFDetectorCon &dets, RODFDetectorFlows &into, SUMOTime startTime, SUMOTime endTime, SUMOTime timeOffset, int timeScale)
Constructor.
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.
int SUMOTime
Definition: SUMOTime.h:43
~RODFDetFlowLoader()
Destructor.
A parser to retrieve information from a table with known columns.