 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
29 #include "../NIImporter_Vissim.h"
30 #include "../tempstructs/NIVissimEdge.h"
31 #include "../tempstructs/NIVissimConnection.h"
66 std::vector<std::string> tmp;
67 tmp.push_back(
"zeit");
68 tmp.push_back(
"fahrzeugklasse");
70 while (tag !=
"DATAEND" && tag !=
"zeit") {
88 const std::vector<int>& lanes = c->
getToLanes();
90 for (std::vector<int>::const_iterator j = lanes.begin(); j != lanes.end(); j++) {
A temporary storage for edges imported from Vissim.
std::string readName(std::istream &from)
Reads the structures name We cannot use the "<<" operator, as names may contain more than one word wh...
void setSpeed(int lane, int speedDist)
Importer for networks stored in Vissim format.
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 readEndSecure(std::istream &from, const std::string &excl="")
as myRead, but returns "DATAEND" when the current field has ended
~NIVissimSingleTypeParser_VWunschentscheidungsdefinition()
Destructor.
static int toInt(const std::string &sData)
converts a string into the integer value described by it by calling the char-type converter,...
NIVissimSingleTypeParser_VWunschentscheidungsdefinition(NIImporter_Vissim &parent)
Constructor.
const std::vector< int > & getToLanes() const
bool parse(std::istream &from)
Parses the data type from the given stream.
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, NIVissimConnection *o)
std::string myRead(std::istream &from)
reads from the stream and returns the lower case version of the read value