42 #include "../NIImporter_Vissim.h" 43 #include "../tempstructs/NIVissimDistrictConnection.h" 46 #ifdef CHECK_MEMORY_LEAKS 48 #endif // CHECK_MEMORY_LEAKS 74 std::vector<int> districts;
75 std::vector<SUMOReal> percentages;
77 while (tag !=
"ort") {
82 if (tag ==
"anteil") {
85 districts.push_back(districtid);
86 percentages.push_back(perc);
106 if (tag ==
"belegung") {
111 std::vector<std::pair<int, int> > assignedVehicles;
112 while (tag !=
"default") {
118 assignedVehicles.push_back(std::pair<int, int>(vclass, vwunsch));
129 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...
static bool dictionary(int id, const std::string &name, const std::vector< int > &districts, const std::vector< SUMOReal > &percentages, int edgeid, SUMOReal 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.