36 #include "../NIImporter_Vissim.h" 37 #include "../tempstructs/NIVissimEdge.h" 38 #include "../tempstructs/NIVissimConnection.h" 73 std::vector<std::string> tmp;
74 tmp.push_back(
"zeit");
75 tmp.push_back(
"fahrzeugklasse");
77 while (tag !=
"DATAEND" && tag !=
"zeit") {
95 const std::vector<int>& lanes = c->
getToLanes();
97 for (std::vector<int>::const_iterator j = lanes.begin(); j != lanes.end(); j++) {
98 e->setSpeed((*j), numv);
102 e->setSpeed(numlane, numv);
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.
const std::vector< int > & getToLanes() const
static bool dictionary(int id, NIVissimConnection *o)
A temporary storage for edges imported from Vissim.
~NIVissimSingleTypeParser_VWunschentscheidungsdefinition()
Destructor.
static bool dictionary(int id, const std::string &name, const std::string &type, int noLanes, double zuschlag1, double zuschlag2, double length, const PositionVector &geom, const NIVissimClosedLanesVector &clv)
Adds the described item to the dictionary Builds the edge first.
std::string readName(std::istream &from)
Reads the structures name We cannot use the "<<" operator, as names may contain more than one word wh...
static int _2int(const E *const data)
converts a char-type array into the integer value described by it
bool parse(std::istream &from)
Parses the data type from the given stream.
NIVissimSingleTypeParser_VWunschentscheidungsdefinition(NIImporter_Vissim &parent)
Constructor.
std::string overrideOptionalLabel(std::istream &from, const std::string &tag="")
overrides the optional label definition; returns the next tag as done by readEndSecure ...