 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
27 #include "../NIImporter_Vissim.h"
28 #include "../tempstructs/NIVissimConnection.h"
49 while (tag !=
"von") {
59 while (tag !=
"nach") {
60 std::string x =
myRead(from);
61 std::string y =
myRead(from);
80 double dxeinordnen = 0;
81 double zuschlag1, zuschlag2;
82 zuschlag1 = zuschlag2 = 0;
86 while (tag !=
"fahrzeugklassen" && tag !=
"sperrung" && tag !=
"auswertung" && tag !=
"DATAEND") {
87 if (tag ==
"rechts") {
89 }
else if (tag ==
"links") {
91 }
else if (tag ==
"alle") {
93 }
else if (tag ==
"dxnothalt") {
95 }
else if (tag ==
"dxeinordnen") {
97 }
else if (tag ==
"segment") {
101 if (tag ==
"zuschlag") {
104 if (tag ==
"zuschlag") {
113 std::vector<int> assignedVehicles;
114 if (tag ==
"fahrzeugklassen") {
116 while (tag !=
"DATAEND" && tag !=
"sperrung" && tag !=
"auswertung") {
118 assignedVehicles.push_back(classes);
124 if (tag !=
"DATAEND") {
128 if (tag ==
"keinspurwechsel") {
129 while (tag !=
"DATAEND") {
132 }
else if (tag ==
"spur") {
138 std::vector<int> assignedVehicles;
140 if (tag ==
"fahrzeugklassen") {
143 while (tag !=
"DATAEND" && tag !=
"spur" && tag !=
"keinspurwechsel") {
145 assignedVehicles.push_back(classes);
152 }
while (tag !=
"DATAEND");
155 assignedVehicles, clv);
NIVissimSingleTypeParser_Verbindungsdefinition(NIImporter_Vissim &parent)
Constructor.
NIVissimExtendedEdgePoint readExtEdgePointDef(std::istream &from)
bool parse(std::istream &from)
Parses the data type from the given stream.
std::vector< NIVissimClosedLaneDef * > NIVissimClosedLanesVector
static double toDouble(const std::string &sData)
converts a string into the double value described by it by calling the char-type converter
std::string readName(std::istream &from)
Reads the structures name We cannot use the "<<" operator, as names may contain more than one word wh...
Importer for networks stored in Vissim format.
void push_back_noDoublePos(const Position &p)
insert in back a non double position
std::string readEndSecure(std::istream &from, const std::string &excl="")
as myRead, but returns "DATAEND" when the current field has ended
A point in 2D or 3D with translation and scaling methods.
static int toInt(const std::string &sData)
converts a string into the integer value described by it by calling the char-type converter,...
std::string overrideOptionalLabel(std::istream &from, const std::string &tag="")
overrides the optional label definition; returns the next tag as done by readEndSecure
static bool dictionary(int id, NIVissimConnection *o)
std::string myRead(std::istream &from)
reads from the stream and returns the lower case version of the read value
~NIVissimSingleTypeParser_Verbindungsdefinition()
Destructor.