34 #include "../NIImporter_Vissim.h" 35 #include "../tempstructs/NIVissimConnection.h" 56 while (tag !=
"von") {
66 while (tag !=
"nach") {
67 std::string x =
myRead(from);
68 std::string y =
myRead(from);
87 double dxeinordnen = 0;
88 double zuschlag1, zuschlag2;
89 zuschlag1 = zuschlag2 = 0;
93 while (tag !=
"fahrzeugklassen" && tag !=
"sperrung" && tag !=
"auswertung" && tag !=
"DATAEND") {
94 if (tag ==
"rechts") {
96 }
else if (tag ==
"links") {
98 }
else if (tag ==
"alle") {
100 }
else if (tag ==
"dxnothalt") {
102 }
else if (tag ==
"dxeinordnen") {
104 }
else if (tag ==
"segment") {
108 if (tag ==
"zuschlag") {
111 if (tag ==
"zuschlag") {
120 std::vector<int> assignedVehicles;
121 if (tag ==
"fahrzeugklassen") {
123 while (tag !=
"DATAEND" && tag !=
"sperrung" && tag !=
"auswertung") {
125 assignedVehicles.push_back(classes);
131 if (tag !=
"DATAEND") {
135 if (tag ==
"keinspurwechsel") {
136 while (tag !=
"DATAEND") {
139 }
else if (tag ==
"spur") {
145 std::vector<int> assignedVehicles;
147 if (tag ==
"fahrzeugklassen") {
150 while (tag !=
"DATAEND" && tag !=
"spur" && tag !=
"keinspurwechsel") {
152 assignedVehicles.push_back(classes);
159 }
while (tag !=
"DATAEND");
162 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)
A point in 2D or 3D with translation and scaling methods.
~NIVissimSingleTypeParser_Verbindungsdefinition()
Destructor.
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.
static int _2int(const E *const data)
converts a char-type array into the integer value described by it
static double _2double(const E *const data)
converts a char-type array into the double value described by it
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 ...