36 #include "../NIImporter_Vissim.h" 37 #include "../tempstructs/NIVissimNodeParticipatingEdge.h" 38 #include "../tempstructs/NIVissimNodeParticipatingEdgeVector.h" 39 #include "../tempstructs/NIVissimNodeDef_Edges.h" 40 #include "../tempstructs/NIVissimNodeDef_Poly.h" 41 #include "../tempstructs/NIVissimNodeDef.h" 67 while (tag !=
"netzausschnitt") {
72 if (tag ==
"strecke") {
74 while (tag ==
"strecke") {
76 double from_pos, to_pos;
77 from_pos = to_pos = -1.0;
92 for (
int i = 0; i < no; i++) {
NIVissimSingleTypeParser_Knotendefinition(NIImporter_Vissim &parent)
Constructor.
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
Importer for networks stored in Vissim format.
~NIVissimSingleTypeParser_Knotendefinition()
Destructor.
static bool dictionary(int id, const std::string &name, const NIVissimNodeParticipatingEdgeVector &edges)
bool parse(std::istream &from)
Parses the data type from the given stream.
Position getPosition(std::istream &from)
returns the 2d-position saved as next within the 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...
std::vector< NIVissimNodeParticipatingEdge * > NIVissimNodeParticipatingEdgeVector
static int _2int(const E *const data)
converts a char-type array into the integer value described by it
void closePolygon()
ensures that the last position equals the first
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)