28 #include "../NIImporter_Vissim.h" 29 #include "../tempstructs/NIVissimConnection.h" 50 while (tag !=
"von") {
60 while (tag !=
"nach") {
61 std::string x =
myRead(from);
62 std::string y =
myRead(from);
81 double dxeinordnen = 0;
82 double zuschlag1, zuschlag2;
83 zuschlag1 = zuschlag2 = 0;
87 while (tag !=
"fahrzeugklassen" && tag !=
"sperrung" && tag !=
"auswertung" && tag !=
"DATAEND") {
88 if (tag ==
"rechts") {
90 }
else if (tag ==
"links") {
92 }
else if (tag ==
"alle") {
94 }
else if (tag ==
"dxnothalt") {
96 }
else if (tag ==
"dxeinordnen") {
98 }
else if (tag ==
"segment") {
102 if (tag ==
"zuschlag") {
105 if (tag ==
"zuschlag") {
114 std::vector<int> assignedVehicles;
115 if (tag ==
"fahrzeugklassen") {
117 while (tag !=
"DATAEND" && tag !=
"sperrung" && tag !=
"auswertung") {
119 assignedVehicles.push_back(classes);
125 if (tag !=
"DATAEND") {
129 if (tag ==
"keinspurwechsel") {
130 while (tag !=
"DATAEND") {
133 }
else if (tag ==
"spur") {
139 std::vector<int> assignedVehicles;
141 if (tag ==
"fahrzeugklassen") {
144 while (tag !=
"DATAEND" && tag !=
"spur" && tag !=
"keinspurwechsel") {
146 assignedVehicles.push_back(classes);
153 }
while (tag !=
"DATAEND");
156 assignedVehicles, clv);
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
std::vector< NIVissimClosedLaneDef * > NIVissimClosedLanesVector
Importer for networks stored in Vissim format.
static bool dictionary(int id, NIVissimConnection *o)
NIVissimExtendedEdgePoint readExtEdgePointDef(std::istream &from)
static double toDouble(const std::string &sData)
converts a string into the double value described by it by calling the char-type converter ...
A point in 2D or 3D with translation and scaling methods.
~NIVissimSingleTypeParser_Verbindungsdefinition()
Destructor.
static int toInt(const std::string &sData)
converts a string into the integer value described by it by calling the char-type converter...
bool parse(std::istream &from)
Parses the data type from the given stream.
std::string readName(std::istream &from)
Reads the structures name We cannot use the "<<" operator, as names may contain more than one word wh...
NIVissimSingleTypeParser_Verbindungsdefinition(NIImporter_Vissim &parent)
Constructor.
void push_back_noDoublePos(const Position &p)
insert in back a non double position
std::string overrideOptionalLabel(std::istream &from, const std::string &tag="")
overrides the optional label definition; returns the next tag as done by readEndSecure ...