24#include <xercesc/sax/HandlerBase.hpp>
25#include <xercesc/sax/AttributeList.hpp>
26#include <xercesc/sax/SAXParseException.hpp>
27#include <xercesc/sax/SAXException.hpp>
61 XERCES_CPP_NAMESPACE::AttributeList& attributes);
70 void characters(
const XMLCh*
const chars,
const XERCES3_SIZE_t length);
87 void warning(
const XERCES_CPP_NAMESPACE::SAXParseException& exception);
93 void error(
const XERCES_CPP_NAMESPACE::SAXParseException& exception);
99 void fatalError(
const XERCES_CPP_NAMESPACE::SAXParseException& exception);
134 void setValue(
const std::string& key,
const std::string& value);
A storage for options typed value containers)
A SAX-Handler for loading options.
~OptionsLoader()
destructor
OptionsLoader & operator=(const OptionsLoader &s)=delete
invalid assignment operator
virtual void startElement(const XMLCh *const name, XERCES_CPP_NAMESPACE::AttributeList &attributes)
Called on the occurrence of the beginning of a tag.
void fatalError(const XERCES_CPP_NAMESPACE::SAXParseException &exception)
Called on an XML-fatal error.
bool myError
The information whether an error occurred.
const std::string & getItem() const
Returns the last item read.
void characters(const XMLCh *const chars, const XERCES3_SIZE_t length)
Called on the occurrence of character data.
bool errorOccurred() const
Returns the information whether an error occurred.
OptionsLoader(const OptionsLoader &s)=delete
invalid copy constructor
void warning(const XERCES_CPP_NAMESPACE::SAXParseException &exception)
Called on an XML-warning.
std::string myValue
The currently read characters string.
bool setSecure(OptionsCont &options, const std::string &name, const std::string &value) const
Tries to set the named option to the given value.
void endElement(const XMLCh *const name)
Called on the end of an element.
OptionsCont & myOptions
The options to fill.
std::string myItem
The name of the currently parsed option.
void setValue(const std::string &key, const std::string &value)
Tries to set the named option to the given value.
const bool myRootOnly
The information whether only the root element should be parsed.
void error(const XERCES_CPP_NAMESPACE::SAXParseException &exception)
Called on an XML-error.