61 std::vector<int> districts;
62 std::vector<double> percentages;
64 while (tag !=
"ort") {
69 if (tag ==
"anteil") {
72 districts.push_back(districtid);
73 percentages.push_back(perc);
93 if (tag ==
"belegung") {
98 std::vector<std::pair<int, int> > assignedVehicles;
99 while (tag !=
"default") {
105 assignedVehicles.push_back(std::pair<int, int>(vclass, vwunsch));
116 districts, percentages, edgeid, position, assignedVehicles);
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 readUntil(std::istream &from, const std::string &name)
Reads from the stream until the keywor occurs.
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 std::vector< int > &districts, const std::vector< double > &percentages, int edgeid, double position, const std::vector< std::pair< int, int > > &assignedVehicles)
Inserts the connection into the dictionary after building it.
bool parse(std::istream &from)
Parses the data type from the given stream.
~NIVissimSingleTypeParser_Parkplatzdefinition()
Destructor.
NIVissimSingleTypeParser_Parkplatzdefinition(NIImporter_Vissim &parent)
Constructor.