42 #include "../NIImporter_Vissim.h" 43 #include "../tempstructs/NIVissimDistrictConnection.h" 70 std::vector<int> districts;
71 std::vector<double> percentages;
73 while (tag !=
"ort") {
78 if (tag ==
"anteil") {
81 districts.push_back(districtid);
82 percentages.push_back(perc);
102 if (tag ==
"belegung") {
107 std::vector<std::pair<int, int> > assignedVehicles;
108 while (tag !=
"default") {
114 assignedVehicles.push_back(std::pair<int, int>(vclass, vwunsch));
125 districts, percentages, edgeid, position, assignedVehicles);
void readUntil(std::istream &from, const std::string &name)
Reads from the stream until the keywor occurs.
~NIVissimSingleTypeParser_Parkplatzdefinition()
Destructor.
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.
NIVissimSingleTypeParser_Parkplatzdefinition(NIImporter_Vissim &parent)
Constructor.
std::string readName(std::istream &from)
Reads the structures name We cannot use the "<<" operator, as names may contain more than one word wh...
bool parse(std::istream &from)
Parses the data type from the given stream.
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.