SUMO - Simulation of Urban MObility
|
00001 /****************************************************************************/ 00008 // 00009 /****************************************************************************/ 00010 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/ 00011 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors 00012 /****************************************************************************/ 00013 // 00014 // This file is part of SUMO. 00015 // SUMO is free software: you can redistribute it and/or modify 00016 // it under the terms of the GNU General Public License as published by 00017 // the Free Software Foundation, either version 3 of the License, or 00018 // (at your option) any later version. 00019 // 00020 /****************************************************************************/ 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 <iostream> 00033 #include <utils/common/TplConvert.h> 00034 #include "../NIImporter_Vissim.h" 00035 #include "NIVissimSingleTypeParser_Stopschilddefinition.h" 00036 00037 #ifdef CHECK_MEMORY_LEAKS 00038 #include <foreign/nvwa/debug_new.h> 00039 #endif // CHECK_MEMORY_LEAKS 00040 00041 00042 // =========================================================================== 00043 // method definitions 00044 // =========================================================================== 00045 NIVissimSingleTypeParser_Stopschilddefinition::NIVissimSingleTypeParser_Stopschilddefinition(NIImporter_Vissim& parent) 00046 : NIImporter_Vissim::VissimSingleTypeParser(parent) {} 00047 00048 00049 NIVissimSingleTypeParser_Stopschilddefinition::~NIVissimSingleTypeParser_Stopschilddefinition() {} 00050 00051 00052 bool 00053 NIVissimSingleTypeParser_Stopschilddefinition::parse(std::istream& from) { 00054 readUntil(from, "strecke"); 00055 std::string tag; 00056 from >> tag; // edge name 00057 from >> tag; // "spur" 00058 from >> tag; // lane no 00059 from >> tag; // "bei" 00060 from >> tag; // pos 00061 from >> tag; 00062 if (tag == "RTOR") { 00063 from >> tag; // "lsa" 00064 from >> tag; // lsa id 00065 from >> tag; // "gruppe" 00066 from >> tag; // gruppe id 00067 } else { 00068 while (tag == "fahrzeugklasse") { 00069 from >> tag; // class no 00070 from >> tag; // "zeiten" 00071 from >> tag; // times no 00072 tag = readEndSecure(from, "fahrzeugklasse"); 00073 } 00074 } 00075 return true; 00076 } 00077 00078 00079 00080 /****************************************************************************/ 00081