SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NIVissimSingleTypeParser_Lichtsignalanlagendefinition.h
Go to the documentation of this file.
1 /****************************************************************************/
7 //
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
10 // Copyright (C) 2001-2013 DLR (http://www.dlr.de/) and contributors
11 /****************************************************************************/
12 //
13 // This file is part of SUMO.
14 // SUMO is free software: you can redistribute it and/or modify
15 // it under the terms of the GNU General Public License as published by
16 // the Free Software Foundation, either version 3 of the License, or
17 // (at your option) any later version.
18 //
19 /****************************************************************************/
20 #ifndef NIVissimSingleTypeParser_Lichtsignalanlagendefinition_h
21 #define NIVissimSingleTypeParser_Lichtsignalanlagendefinition_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #include <iostream>
34 #include <string>
35 #include "../NIImporter_Vissim.h"
36 
37 
38 // ===========================================================================
39 // class definitions
40 // ===========================================================================
47 public:
50 
53 
55  bool parse(std::istream& from);
56 
57 private:
59  bool parseFixedTime(int id, std::string name, std::istream& from);
60 
64  bool parseVAS(int id, std::string name, std::istream& from);
65 
67  bool parseRestActuated(int id, std::string name, std::istream& from,
68  const std::string& type);
69 
70 };
71 
72 
73 #endif
74 
75 /****************************************************************************/
76 
Importer for networks stored in Vissim format.
bool parseRestActuated(int id, std::string name, std::istream &from, const std::string &type)
Parses actuated traffic lights (beside VAS)
bool parseVAS(int id, std::string name, std::istream &from)
Parses a vas-traffic light; All other actuated traffic lights are parsed using &quot;parseRestActuated&quot; as...
bool parse(std::istream &from)
Parses the data type from the given stream.
bool parseFixedTime(int id, std::string name, std::istream &from)
parses a traffic light with fixed times (no other types are supported by now)