35 #include "../NIImporter_Vissim.h" 36 #include "../tempstructs/NIVissimConnection.h" 57 while (tag !=
"von") {
67 while (tag !=
"nach") {
68 std::string x =
myRead(from);
69 std::string y =
myRead(from);
88 double dxeinordnen = 0;
89 double zuschlag1, zuschlag2;
90 zuschlag1 = zuschlag2 = 0;
94 while (tag !=
"fahrzeugklassen" && tag !=
"sperrung" && tag !=
"auswertung" && tag !=
"DATAEND") {
95 if (tag ==
"rechts") {
97 }
else if (tag ==
"links") {
99 }
else if (tag ==
"alle") {
101 }
else if (tag ==
"dxnothalt") {
103 }
else if (tag ==
"dxeinordnen") {
105 }
else if (tag ==
"segment") {
109 if (tag ==
"zuschlag") {
112 if (tag ==
"zuschlag") {
121 std::vector<int> assignedVehicles;
122 if (tag ==
"fahrzeugklassen") {
124 while (tag !=
"DATAEND" && tag !=
"sperrung" && tag !=
"auswertung") {
126 assignedVehicles.push_back(classes);
132 if (tag !=
"DATAEND") {
136 if (tag ==
"keinspurwechsel") {
137 while (tag !=
"DATAEND") {
140 }
else if (tag ==
"spur") {
146 std::vector<int> assignedVehicles;
148 if (tag ==
"fahrzeugklassen") {
151 while (tag !=
"DATAEND" && tag !=
"spur" && tag !=
"keinspurwechsel") {
153 assignedVehicles.push_back(classes);
160 }
while (tag !=
"DATAEND");
163 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 ...