36 #include "../NIImporter_Vissim.h" 37 #include "../tempstructs/NIVissimTL.h" 40 #ifdef CHECK_MEMORY_LEAKS 42 #endif // CHECK_MEMORY_LEAKS 61 std::string tag, name;
70 if (type ==
"festzeit") {
76 if (type ==
"vsplus") {
79 if (type ==
"trends") {
94 if (type ==
"extern") {
97 WRITE_ERROR(
"Unsupported LSA-Type '" + type +
"' occured.");
104 int id, std::string name, std::istream& from) {
105 std::string type =
"festzeit";
114 if (tag ==
"versatz") {
117 if (tag !=
"szpkonfdatei" && tag !=
"DATAEND" && tag !=
"progdatei") {
119 if (tag ==
"szpkonfdatei" || tag ==
"progdatei") {
120 type =
"festzeit_fake";
129 int id, std::string name, std::istream& from) {
138 if (tag ==
"versatz") {
147 int id, std::string name, std::istream& from,
const std::string& type) {
156 if (tag ==
"versatz") {
159 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...