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