48 std::string tag, name;
57 if (type ==
"festzeit") {
63 if (type ==
"vsplus") {
66 if (type ==
"trends") {
81 if (type ==
"extern") {
91 int id, std::string name, std::istream& from) {
92 std::string type =
"festzeit";
101 if (tag ==
"versatz") {
104 if (tag !=
"szpkonfdatei" && tag !=
"DATAEND" && tag !=
"progdatei") {
106 if (tag ==
"szpkonfdatei" || tag ==
"progdatei") {
107 type =
"festzeit_fake";
116 int id, std::string name, std::istream& from) {
125 if (tag ==
"versatz") {
134 int id, std::string name, std::istream& from,
const std::string& type) {
143 if (tag ==
"versatz") {
146 while (tag !=
"datei") {
#define WRITE_ERRORF(...)
std::string readEndSecure(std::istream &from, const std::string &excl="")
as myRead, but returns "DATAEND" when the current field has ended
std::string readName(std::istream &from)
Reads the structures name We cannot use the "<<" operator, as names may contain more than one word wh...
std::string myRead(std::istream &from)
reads from the stream and returns the lower case version of the read value
Importer for networks stored in Vissim format.
bool parseFixedTime(int id, std::string name, std::istream &from)
parses a traffic light with fixed times (no other types are supported by now)
~NIVissimSingleTypeParser_Lichtsignalanlagendefinition()
Destructor.
NIVissimSingleTypeParser_Lichtsignalanlagendefinition(NIImporter_Vissim &parent)
Constructor.
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 "parseRestActuated" as...
bool parse(std::istream &from)
Parses the data type from the given stream.
static bool dictionary(int id, const std::string &type, const std::string &name, SUMOTime absdur, SUMOTime offset)