36 #include "../NIImporter_Vissim.h" 37 #include "../tempstructs/NIVissimEdge.h" 38 #include "../tempstructs/NIVissimConnection.h" 41 #ifdef CHECK_MEMORY_LEAKS 43 #endif // CHECK_MEMORY_LEAKS 77 std::vector<std::string> tmp;
78 tmp.push_back(
"zeit");
79 tmp.push_back(
"fahrzeugklasse");
81 while (tag !=
"DATAEND" && tag !=
"zeit") {
99 const std::vector<int>& lanes = c->
getToLanes();
101 for (std::vector<int>::const_iterator j = lanes.begin(); j != lanes.end(); j++) {
102 e->setSpeed((*j), numv);
106 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.
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.
static bool dictionary(int id, const std::string &name, const std::string &type, int noLanes, SUMOReal zuschlag1, SUMOReal zuschlag2, SUMOReal length, const PositionVector &geom, const NIVissimClosedLanesVector &clv)
Adds the described item to the dictionary Builds the edge first.
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 ...