SUMO - Simulation of Urban MObility

RODFDetFlowLoader.h

Go to the documentation of this file.
00001 /****************************************************************************/
00007 // A loader for detector flows
00008 /****************************************************************************/
00009 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00010 // Copyright (C) 2001-2011 DLR (http://www.dlr.de/) and contributors
00011 /****************************************************************************/
00012 //
00013 //   This program is free software; you can redistribute it and/or modify
00014 //   it under the terms of the GNU General Public License as published by
00015 //   the Free Software Foundation; either version 2 of the License, or
00016 //   (at your option) any later version.
00017 //
00018 /****************************************************************************/
00019 #ifndef RODFDetFlowLoader_h
00020 #define RODFDetFlowLoader_h
00021 
00022 
00023 // ===========================================================================
00024 // included modules
00025 // ===========================================================================
00026 #ifdef _MSC_VER
00027 #include <windows_config.h>
00028 #else
00029 #include <config.h>
00030 #endif
00031 
00032 #include <string>
00033 #include <vector>
00034 #include <utils/importio/NamedColumnsParser.h>
00035 #include <utils/common/UtilExceptions.h>
00036 #include "RODFDetector.h"
00037 #include "RODFDetectorFlow.h"
00038 
00039 
00040 // ===========================================================================
00041 // class definitions
00042 // ===========================================================================
00047 class RODFDetFlowLoader {
00048 public:
00057     RODFDetFlowLoader(const RODFDetectorCon& dets, RODFDetectorFlows& into,
00058                       SUMOTime startTime, SUMOTime endTime,
00059                       SUMOTime timeOffset, int timeScale) throw();
00060 
00061 
00063     ~RODFDetFlowLoader() throw();
00064 
00065 
00080     void read(const std::string& file) throw(IOError, ProcessError);
00081 
00082 
00083 private:
00085     RODFDetectorFlows& myStorage;
00086 
00088     const SUMOTime myTimeOffset;
00089 
00091     const SUMOTime myTimeScale;
00092 
00094     const SUMOTime myStartTime, myEndTime;
00095 
00097     NamedColumnsParser myLineHandler;
00098 
00100     const RODFDetectorCon& myDetectorContainer;
00101 
00103     bool myHaveWarnedAboutOverridingBoundaries;
00104 
00106     bool myHaveWarnedAboutPartialDefs;
00107 
00108 
00109 private:
00111     RODFDetFlowLoader(const RODFDetFlowLoader& src);
00112 
00114     RODFDetFlowLoader& operator=(const RODFDetFlowLoader& src);
00115 
00116 };
00117 
00118 
00119 #endif
00120 
00121 /****************************************************************************/
00122 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines