A container for districts.
An XML-Handler for districts.
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called when an opening-tag occurs.
ODDistrictHandler(const ODDistrictHandler &s)
invalidated copy constructor
void openDistrict(const SUMOSAXAttributes &attrs)
Begins the parsing of a district.
std::pair< std::string, double > parseTAZ(const SUMOSAXAttributes &attrs)
Returns the id and weight for a taz/tazSink/tazSource.
void addSource(const SUMOSAXAttributes &attrs)
Adds a read source to the current district.
ODDistrict * myCurrentDistrict
The currently parsed district.
~ODDistrictHandler()
Destructor.
ODDistrictHandler & operator=(const ODDistrictHandler &s)
invalidated assignment operator
void closeDistrict()
Closes the processing of the current district.
void addSink(const SUMOSAXAttributes &attrs)
Adds a read sink to the current district.
void myEndElement(int element)
Called when a closing tag occurs.
ODDistrictCont & myContainer
The container to add read districts to.
A district (origin/destination)
Encapsulated SAX-Attributes.
SAX-handler base for SUMO-files.