29 #include "../NIImporter_Vissim.h" 30 #include "../tempstructs/NIVissimTL.h" 50 std::string tag, name;
59 if (type ==
"festzeit") {
65 if (type ==
"vsplus") {
68 if (type ==
"trends") {
83 if (type ==
"extern") {
86 WRITE_ERROR(
"Unsupported LSA-Type '" + type +
"' occurred.");
93 int id, std::string name, std::istream& from) {
94 std::string type =
"festzeit";
103 if (tag ==
"versatz") {
106 if (tag !=
"szpkonfdatei" && tag !=
"DATAEND" && tag !=
"progdatei") {
108 if (tag ==
"szpkonfdatei" || tag ==
"progdatei") {
109 type =
"festzeit_fake";
118 int id, std::string name, std::istream& from) {
127 if (tag ==
"versatz") {
136 int id, std::string name, std::istream& from,
const std::string& type) {
145 if (tag ==
"versatz") {
148 while (tag !=
"datei") {
std::string myRead(std::istream &from)
reads from the stream and returns the lower case version of the read value
std::string readEndSecure(std::istream &from, const std::string &excl="")
as myRead, but returns "DATAEND" when the current field has ended
Importer for networks stored in Vissim format.
NIVissimSingleTypeParser_Lichtsignalanlagendefinition(NIImporter_Vissim &parent)
Constructor.
~NIVissimSingleTypeParser_Lichtsignalanlagendefinition()
Destructor.
bool parseRestActuated(int id, std::string name, std::istream &from, const std::string &type)
Parses actuated traffic lights (beside VAS)
static bool dictionary(int id, const std::string &type, const std::string &name, SUMOTime absdur, SUMOTime offset)
bool parseVAS(int id, std::string name, std::istream &from)
Parses a vas-traffic light; All other actuated traffic lights are parsed using "parseRestActuated" 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)
std::string readName(std::istream &from)
Reads the structures name We cannot use the "<<" operator, as names may contain more than one word wh...