28#include <xercesc/sax2/SAX2XMLReader.hpp>
29#include <xercesc/sax/EntityResolver.hpp>
30#include <xercesc/sax/InputSource.hpp>
89 void parse(std::string systemID);
131 XERCES_CPP_NAMESPACE::InputSource*
resolveEntity(
const XMLCh*
const publicId,
const XMLCh*
const systemId);
SumoXMLTag
Numbers representing SUMO-XML - element names.
A handler which converts occurring elements and attributes into enums.
Encapsulated SAX-Attributes.
const bool myHaveFallback
flag for check if we have fallback
const bool myNoOp
flag for check if there is an operation
XERCES_CPP_NAMESPACE::InputSource * resolveEntity(const XMLCh *const publicId, const XMLCh *const systemId)
resolve entity
SAX-reader encapsulation containing binary reader.
std::unique_ptr< IStreamInputSource > myInputStream
input stream
const SUMOSAXReader & operator=(const SUMOSAXReader &s)=delete
invalidated assignment operator
std::string myValidationScheme
Information whether built reader/parser shall validate XML-documents against schemata.
std::pair< int, SUMOSAXAttributes * > myNextSection
next section
void setHandler(GenericSAXHandler &handler)
Sets the given handler as content and error handler for the reader.
void parseString(std::string content)
Parse XML from the given string.
LocalSchemaResolver myLocalResolver
local resolver
bool parseFirst(std::string systemID)
Start parsing the given file using parseFirst of myXMLReader.
SUMOSAXReader(const SUMOSAXReader &s)=delete
invalidated copy constructor
std::unique_ptr< std::istream > myIStream
istream
LocalSchemaResolver mySchemaResolver
schema resolver
bool parseSection(SumoXMLTag element)
Continue a progressive parse started by parseFirst until the given element is encountered.
void setValidation(std::string validationScheme="")
Sets a new validation scheme and applies the validation settings to the XML reader.
~SUMOSAXReader()
Destructor.
std::vector< SumoXMLTag > myXMLStack
The stack of begun xml elements.
GenericSAXHandler * myHandler
generic SAX Handler
void parse(std::string systemID)
Parse the given file completely by calling parse of myXMLReader.
XERCES_CPP_NAMESPACE::SAX2XMLReader * myXMLReader
XML reader.
LocalSchemaResolver myNoOpResolver
no operation resolver
XERCES_CPP_NAMESPACE::XMLGrammarPool * myGrammarPool
Schema cache to be used for grammars which are not declared.
XERCES_CPP_NAMESPACE::XMLPScanToken myToken
token
void ensureSAXReader()
Builds a reader, if needed.
bool parseNext()
Continue a progressive parse started by parseFirst.