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