Provides the callbacks for an XMLParser.
More...
#include <utilities/xmlutils.h>
Provides the callbacks for an XMLParser.
The various routines in this class will be called when corresponding elements of the XML file being parsed are encountered.
The routines in this class do nothing; you will need to create a derived class that overrides some or all of these routines to do the processing that you require.
- Python:
- Not present.
- Author
- This class was taken and modified from the libxml++ library (
http://lusis.org/~ari/xml++/
).
regina::xml::XMLParserCallback::~XMLParserCallback |
( |
| ) |
|
|
inlinevirtual |
Default destructor that does nothing.
void regina::xml::XMLParserCallback::characters |
( |
const std::string & |
s | ) |
|
|
inlinevirtual |
Called when characters are encountered.
- Parameters
-
s | the characters encountered. |
Reimplemented in regina::NXMLCallback.
void regina::xml::XMLParserCallback::comment |
( |
const std::string & |
s | ) |
|
|
inlinevirtual |
Called when a comment is encountered.
- Parameters
-
void regina::xml::XMLParserCallback::end_document |
( |
| ) |
|
|
inlinevirtual |
void regina::xml::XMLParserCallback::end_element |
( |
const std::string & |
n | ) |
|
|
inlinevirtual |
Called when an element's closing tag is encountered.
This is called immediately after start_element() if the opening tag is in <tag/>
format.
- Parameters
-
Reimplemented in regina::NXMLCallback.
void regina::xml::XMLParserCallback::error |
( |
const std::string & |
s | ) |
|
|
inlinevirtual |
void regina::xml::XMLParserCallback::fatal_error |
( |
const std::string & |
s | ) |
|
|
inlinevirtual |
void regina::xml::XMLParserCallback::start_document |
( |
XMLParser * |
parser | ) |
|
|
inlinevirtual |
Called at the start of the document.
- Parameters
-
parser | the XML parser that is currently parsing this document. |
Reimplemented in regina::NXMLCallback.
Called when an element's opening tag is encountered.
- Parameters
-
n | the name of the tag. |
p | a dictionary of all the properties of the tag. |
Reimplemented in regina::NXMLCallback.
void regina::xml::XMLParserCallback::warning |
( |
const std::string & |
s | ) |
|
|
inlinevirtual |
The documentation for this class was generated from the following file: