SumoXMLTag
Numbers representing SUMO-XML - element names.
@ SUMO_TAG_ROOTFILE
root file
virtual void endTag()=0
end element
GeneralHandler(const std::string &file)
Constructor.
virtual void beginTag(SumoXMLTag tag, const SUMOSAXAttributes &attrs)=0
start element
~GeneralHandler()
Destructor.
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
void myEndElement(int element)
Called when a closing tag occurs.
const std::string & getFileName() const
returns the current file name
Encapsulated SAX-Attributes.
SAX-handler base for SUMO-files.
static bool runParser(GenericSAXHandler &handler, const std::string &file, const bool isNet=false, const bool isRoute=false, const bool isExternal=false, const bool catchExceptions=true)
Runs the given handler on the given file; returns if everything's ok.