libxcks  0.1.0.1
libxcks::XMLParserDefaultHandler Class Reference

Default XML parser handler. More...

#include <xmlparser.hpp>

Inheritance diagram for libxcks::XMLParserDefaultHandler:

Public Member Functions

 XMLParserDefaultHandler ()
 Default constructor. More...
 
 XMLParserDefaultHandler (const XMLParserDefaultHandler &)=delete
 Deleted copy constructor. More...
 
XMLParserDefaultHandleroperator= (const XMLParserDefaultHandler &)=delete
 Deleted copy assignment operator. More...
 
virtual ~XMLParserDefaultHandler ()
 Destructor. More...
 
virtual void startElement (const std::string &name, const XMLParserAttributes &atts) noexcept(false)
 Receives notification of the beginning of an element. More...
 
virtual void endElement (const std::string &name) noexcept(false)
 Receives notification of the end of an element. More...
 
virtual void characters (const std::string &chars) noexcept(false)
 Receives notification of character data. More...
 
virtual void fatalError (XML_Error errorCode, const std::string &errorMessage, int line, int column) noexcept
 Receive notification of a non-recoverable error. More...
 

Detailed Description

Default XML parser handler.

Definition at line 197 of file xmlparser.hpp.

Constructor & Destructor Documentation

◆ XMLParserDefaultHandler() [1/2]

libxcks::XMLParserDefaultHandler::XMLParserDefaultHandler ( )
inline

Default constructor.

Definition at line 201 of file xmlparser.hpp.

◆ XMLParserDefaultHandler() [2/2]

libxcks::XMLParserDefaultHandler::XMLParserDefaultHandler ( const XMLParserDefaultHandler )
delete

Deleted copy constructor.

◆ ~XMLParserDefaultHandler()

virtual libxcks::XMLParserDefaultHandler::~XMLParserDefaultHandler ( )
inlinevirtual

Destructor.

Definition at line 210 of file xmlparser.hpp.

Member Function Documentation

◆ characters()

virtual void libxcks::XMLParserDefaultHandler::characters ( const std::string &  chars)
inlinevirtualnoexcept

Receives notification of character data.

This default implementation does nothing.

Parameters
charsThe characters from the XML document.

Reimplemented in libxcks::XCKS1FileHandler.

Definition at line 238 of file xmlparser.hpp.

◆ endElement()

virtual void libxcks::XMLParserDefaultHandler::endElement ( const std::string &  name)
inlinevirtualnoexcept

Receives notification of the end of an element.

This default implementation does nothing.

Parameters
nameThe name of the element.

Reimplemented in libxcks::XCKS1FileHandler.

Definition at line 229 of file xmlparser.hpp.

◆ fatalError()

virtual void libxcks::XMLParserDefaultHandler::fatalError ( XML_Error  errorCode,
const std::string &  errorMessage,
int  line,
int  column 
)
inlinevirtualnoexcept

Receive notification of a non-recoverable error.

This default implementation does nothing.

Parameters
errorCodeThe error code.
errorMessageThe error message.
lineThe line number the text where the error has occurred.
columnThe column number where the error has occurred.

Reimplemented in libxcks::XCKS1FileHandler.

Definition at line 250 of file xmlparser.hpp.

◆ operator=()

XMLParserDefaultHandler& libxcks::XMLParserDefaultHandler::operator= ( const XMLParserDefaultHandler )
delete

Deleted copy assignment operator.

◆ startElement()

virtual void libxcks::XMLParserDefaultHandler::startElement ( const std::string &  name,
const XMLParserAttributes atts 
)
inlinevirtualnoexcept

Receives notification of the beginning of an element.

This default implementation does nothing.

Parameters
nameThe name of the element.
attsThe attributes attached to the element.

Reimplemented in libxcks::XCKS1FileHandler.

Definition at line 220 of file xmlparser.hpp.


The documentation for this class was generated from the following file: