24#include <xercesc/sax/HandlerBase.hpp>
25#include <xercesc/sax/AttributeList.hpp>
26#include <xercesc/sax/SAXParseException.hpp>
27#include <xercesc/sax/SAXException.hpp>
65 XERCES_CPP_NAMESPACE::AttributeList& attributes);
75 void characters(
const XMLCh*
const chars,
const XERCES3_SIZE_t length);
95 void warning(
const XERCES_CPP_NAMESPACE::SAXParseException& exception);
102 void error(
const XERCES_CPP_NAMESPACE::SAXParseException& exception);
109 void fatalError(
const XERCES_CPP_NAMESPACE::SAXParseException& exception);
132 void setValue(
const std::string& key,
const std::string& value);
144 bool setSecure(
const std::string& name,
const std::string& value)
const;
A storage for options typed value containers)
A SAX-Handler for loading options.
OptionsLoader(const bool routeOnly=false)
Constructor.
bool setSecure(const std::string &name, const std::string &value) const
Tries to set the named option to the given value.
virtual void startElement(const XMLCh *const name, XERCES_CPP_NAMESPACE::AttributeList &attributes)
Called on the occurence 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 occurence of character data.
bool errorOccurred() const
Returns the information whether an error occurred.
void warning(const XERCES_CPP_NAMESPACE::SAXParseException &exception)
Called on an XML-warning.
std::string myValue
The currently read characters string.
void endElement(const XMLCh *const name)
Called on the end of an element.
OptionsLoader & operator=(const OptionsLoader &s)
bool myRootOnly
The information whether only the root element should be parsed.
OptionsLoader(const OptionsLoader &s)
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.
void error(const XERCES_CPP_NAMESPACE::SAXParseException &exception)
Called on an XML-error.