23#include <xercesc/sax/HandlerBase.hpp>
24#include <xercesc/sax/AttributeList.hpp>
25#include <xercesc/sax/SAXParseException.hpp>
26#include <xercesc/sax/SAXException.hpp>
63 void startElement(
const XMLCh*
const name, XERCES_CPP_NAMESPACE::AttributeList& attributes);
66 bool addOption(std::string value,
const std::string& synonymes,
const std::string& type,
67 const std::string& help,
bool required,
bool positional,
const std::string& listSep)
const;
84 void warning(
const XERCES_CPP_NAMESPACE::SAXParseException& exception);
90 void error(
const XERCES_CPP_NAMESPACE::SAXParseException& exception);
96 void fatalError(
const XERCES_CPP_NAMESPACE::SAXParseException& exception);
A storage for options typed value containers)
A SAX-Handler for loading options.
void fatalError(const XERCES_CPP_NAMESPACE::SAXParseException &exception)
Called on an XML-fatal error.
TemplateHandler(const TemplateHandler &s)=delete
invalid copy constructor
static const std::string INVALID_DOUBLE_STR
invalid double in string format
TemplateHandler & operator=(const TemplateHandler &s)=delete
invalid assignment operator
void endElement(const XMLCh *const name)
Called on the end of an element.
bool myError
The information whether an error occurred.
int myLevel
The nesting level of parsed elements.
std::string mySubTopic
current subtopic
std::string myOptionName
The name of the current option.
void startElement(const XMLCh *const name, XERCES_CPP_NAMESPACE::AttributeList &attributes)
Called on the occurrence of the beginning of a tag.
OptionsCont & myOptions
The options to fill.
~TemplateHandler()
destructor
void error(const XERCES_CPP_NAMESPACE::SAXParseException &exception)
Called on an XML-error.
static void parseTemplate(OptionsCont &options, const std::string &templateString)
run parser
static const std::string INVALID_INT_STR
invalid int in string format
bool addOption(std::string value, const std::string &synonymes, const std::string &type, const std::string &help, bool required, bool positional, const std::string &listSep) const
add option
void warning(const XERCES_CPP_NAMESPACE::SAXParseException &exception)
Called on an XML-warning.