SUMO - Simulation of Urban MObility
ROJTRTurnDefLoader.h
Go to the documentation of this file.
00001 /****************************************************************************/
00009 // Loader for the of turning percentages and source/sink definitions
00010 /****************************************************************************/
00011 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00012 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors
00013 /****************************************************************************/
00014 //
00015 //   This file is part of SUMO.
00016 //   SUMO is free software: you can redistribute it and/or modify
00017 //   it under the terms of the GNU General Public License as published by
00018 //   the Free Software Foundation, either version 3 of the License, or
00019 //   (at your option) any later version.
00020 //
00021 /****************************************************************************/
00022 #ifndef ROJTRTurnDefLoader_h
00023 #define ROJTRTurnDefLoader_h
00024 
00025 
00026 // ===========================================================================
00027 // included modules
00028 // ===========================================================================
00029 #ifdef _MSC_VER
00030 #include <windows_config.h>
00031 #else
00032 #include <config.h>
00033 #endif
00034 
00035 #include <set>
00036 #include <string>
00037 #include <utils/xml/SUMOSAXHandler.h>
00038 #include <utils/importio/NamedColumnsParser.h>
00039 #include <utils/importio/LineHandler.h>
00040 
00041 
00042 // ===========================================================================
00043 // class declarations
00044 // ===========================================================================
00045 class ROJTREdge;
00046 class RONet;
00047 
00048 
00049 // ===========================================================================
00050 // class definitions
00051 // ===========================================================================
00062 class ROJTRTurnDefLoader : public SUMOSAXHandler {
00063 public:
00068     ROJTRTurnDefLoader(RONet& net) ;
00069 
00070 
00072     ~ROJTRTurnDefLoader() ;
00073 
00074 
00075 protected:
00077 
00078 
00086     void myStartElement(int element,
00087                         const SUMOSAXAttributes& attrs) ;
00088 
00089 
00097     void myCharacters(int element,
00098                       const std::string& chars) ;
00100 
00101 
00102 private:
00113     void beginFromEdge(const SUMOSAXAttributes& attrs) ;
00114 
00115 
00129     void addToEdge(const SUMOSAXAttributes& attrs) ;
00130 
00131 
00132 private:
00134     RONet& myNet;
00135 
00137     SUMOTime myIntervalBegin, myIntervalEnd;
00138 
00140     ROJTREdge* myEdge;
00141 
00143     bool myHaveWarnedAboutDeprecatedSources, myHaveWarnedAboutDeprecatedSinks;
00144     bool myHaveWarnedAboutDeprecatedFromEdge, myHaveWarnedAboutDeprecatedToEdge;
00145 
00146 
00147 };
00148 
00149 
00150 #endif
00151 
00152 /****************************************************************************/
00153 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines