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 2001-2010 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                       int timeOffset) 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     int myTimeOffset;
00089 
00091     SUMOTime myStartTime, myEndTime;
00092 
00094     NamedColumnsParser myLineHandler;
00095 
00097     const RODFDetectorCon &myDetectorContainer;
00098 
00100     bool myHaveWarnedAboutOverridingBoundaries;
00101 
00102 
00103 private:
00105     RODFDetFlowLoader(const RODFDetFlowLoader &src);
00106 
00108     RODFDetFlowLoader &operator=(const RODFDetFlowLoader &src);
00109 
00110 };
00111 
00112 
00113 #endif
00114 
00115 /****************************************************************************/
00116 

Generated on Wed May 5 00:06:36 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6