58 while (tag !=
"netzausschnitt") {
63 if (tag ==
"strecke") {
65 while (tag ==
"strecke") {
67 double from_pos, to_pos;
68 from_pos = to_pos = -1.0;
83 for (
int i = 0; i < no; i++) {
std::vector< NIVissimNodeParticipatingEdge * > NIVissimNodeParticipatingEdgeVector
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
std::string readName(std::istream &from)
Reads the structures name We cannot use the "<<" operator, as names may contain more than one word wh...
std::string overrideOptionalLabel(std::istream &from, const std::string &tag="")
overrides the optional label definition; returns the next tag as done by readEndSecure
std::string myRead(std::istream &from)
reads from the stream and returns the lower case version of the read value
Importer for networks stored in Vissim format.
static bool dictionary(int id, const std::string &name, const NIVissimNodeParticipatingEdgeVector &edges)
static bool dictionary(int id, const std::string &name, const PositionVector &poly)
~NIVissimSingleTypeParser_Knotendefinition()
Destructor.
NIVissimSingleTypeParser_Knotendefinition(NIImporter_Vissim &parent)
Constructor.
bool parse(std::istream &from)
Parses the data type from the given stream.
void closePolygon()
ensures that the last position equals the first
static int toInt(const std::string &sData)
converts a string into the integer value described by it by calling the char-type converter,...