33 #include <xercesc/util/PlatformUtils.hpp>
40 #ifdef CHECK_MEMORY_LEAKS
42 #endif // CHECK_MEMORY_LEAKS
59 XERCES_CPP_NAMESPACE::XMLPlatformUtils::Initialize();
61 }
catch (
const XERCES_CPP_NAMESPACE::XMLException& e) {
75 for (std::vector<SUMOSAXReader*>::iterator i =
myReaders.begin(); i !=
myReaders.end(); ++i) {
79 XERCES_CPP_NAMESPACE::XMLPlatformUtils::Terminate();
97 const std::string& file) {
111 if (std::string(e.what()) != std::string(
"Process Error") && std::string(e.what()) != std::string(
"")) {
static void init()
Initialises the xml-subsystem.
static MsgHandler * getErrorInstance()
Returns the instance to add errors to.
static void close()
Closes the xml-subsystem.
static unsigned int myNextFreeReader
Information whether the reader is parsing.
SAX-reader encapsulation containing binary reader.
static bool runParser(GenericSAXHandler &handler, const std::string &file)
Runs the given handler on the given file; returns if everything's ok.
SAX-handler base for SUMO-files.
static bool myEnableValidation
Information whether built reader/parser shall validate XML-documents against schemata.
A handler which converts occuring elements and attributes into enums.
const std::string & getFileName() const
returns the current file name
void setFileName(const std::string &name)
Sets the current file name.
static std::string _2str(const E *const data)
static SUMOSAXReader * getSAXReader(SUMOSAXHandler &handler)
Builds a reader and assigns the handler to it.
static void setHandler(GenericSAXHandler &handler)
Sets the given handler for the default reader.
bool wasInformed() const
Returns the information whether any messages were added.
static void setValidation(bool enableValidation)
Enables or disables validation.
static std::vector< SUMOSAXReader * > myReaders
The XML Readers used for repeated parsing.