00001 /****************************************************************************/ 00007 // The abstract base class for loading routes or route definitions 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 ROAbstractRouteDefLoader_h 00020 #define ROAbstractRouteDefLoader_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 <utils/common/SUMOTime.h> 00034 #include <utils/common/UtilExceptions.h> 00035 00036 00037 // =========================================================================== 00038 // class declarations 00039 // =========================================================================== 00040 class ROLoader; 00041 class RONet; 00042 class OptionsCont; 00043 00044 00045 // =========================================================================== 00046 // class definitions 00047 // =========================================================================== 00055 class ROAbstractRouteDefLoader { 00056 public: 00063 ROAbstractRouteDefLoader(RONet &net, SUMOTime begin, SUMOTime end) throw(); 00064 00065 00067 virtual ~ROAbstractRouteDefLoader() throw(); 00068 00069 00072 00084 virtual bool readRoutesAtLeastUntil(SUMOTime time, bool skipping) throw(ProcessError) = 0; 00085 00086 00091 virtual SUMOTime getLastReadTimeStep() const throw() = 0; 00092 00093 00098 virtual bool ended() const throw() = 0; 00100 00101 00102 protected: 00104 RONet &myNet; 00105 00107 SUMOTime myBegin; 00108 00110 SUMOTime myEnd; 00111 00112 00113 private: 00115 ROAbstractRouteDefLoader(const ROAbstractRouteDefLoader &src); 00116 00118 ROAbstractRouteDefLoader &operator=(const ROAbstractRouteDefLoader &src); 00119 00120 }; 00121 00122 00123 #endif 00124 00125 /****************************************************************************/ 00126
1.5.6