 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
28 #include "../NIImporter_Vissim.h"
29 #include "../tempstructs/NIVissimNodeParticipatingEdge.h"
30 #include "../tempstructs/NIVissimNodeParticipatingEdgeVector.h"
31 #include "../tempstructs/NIVissimNodeDef_Edges.h"
32 #include "../tempstructs/NIVissimNodeDef_Poly.h"
33 #include "../tempstructs/NIVissimNodeDef.h"
59 while (tag !=
"netzausschnitt") {
64 if (tag ==
"strecke") {
66 while (tag ==
"strecke") {
68 double from_pos, to_pos;
69 from_pos = to_pos = -1.0;
84 for (
int i = 0; i < no; i++) {
std::vector< NIVissimNodeParticipatingEdge * > NIVissimNodeParticipatingEdgeVector
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...
Importer for networks stored in Vissim format.
Position getPosition(std::istream &from)
returns the 2d-position saved as next within the stream
std::string readEndSecure(std::istream &from, const std::string &excl="")
as myRead, but returns "DATAEND" when the current field has ended
void closePolygon()
ensures that the last position equals the first
NIVissimSingleTypeParser_Knotendefinition(NIImporter_Vissim &parent)
Constructor.
static bool dictionary(int id, const std::string &name, const NIVissimNodeParticipatingEdgeVector &edges)
~NIVissimSingleTypeParser_Knotendefinition()
Destructor.
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, const std::string &name, const PositionVector &poly)
std::string myRead(std::istream &from)
reads from the stream and returns the lower case version of the read value