Regina Calculation Engine
|
An XML element reader that reads a single group presentation. More...
#include <algebra/nxmlalgebrareader.h>
Public Member Functions | |
NXMLGroupPresentationReader () | |
Creates a new group presentation reader. | |
virtual NGroupPresentation * | getGroup () |
Returns the newly allocated group presentation that has been read by this element reader. | |
virtual void | startElement (const std::string &tagName, const regina::xml::XMLPropertyDict &tagProps, NXMLElementReader *parentReader) |
Signifies that parsing of this XML element is beginning. | |
virtual NXMLElementReader * | startSubElement (const std::string &subTagName, const regina::xml::XMLPropertyDict &subTagProps) |
Signifies that a subelement of this XML element is about to be parsed. | |
virtual void | endSubElement (const std::string &subTagName, NXMLElementReader *subReader) |
Signifies that parsing has finished for a subelement of this XML element. | |
![]() | |
NXMLElementReader () | |
Creates a new element reader. | |
virtual | ~NXMLElementReader () |
Destroys this element reader. | |
virtual void | initialChars (const std::string &chars) |
Signifies that the initial text belonging to this XML element has been read. | |
virtual void | endElement () |
Signifies that parsing of this XML element is finished. | |
virtual void | usingParser (regina::xml::XMLParser *parser) |
Called for the top-level element in an XML file when parsing begins. | |
virtual void | abort (NXMLElementReader *subReader) |
Signifies that XML parsing has been aborted. |
An XML element reader that reads a single group presentation.
A group presentation is generally contained within a <group>
... </group>
pair.
|
inline |
Creates a new group presentation reader.
|
virtual |
Signifies that parsing has finished for a subelement of this XML element.
The default implementation does nothing.
subTagName | the name of the subelement closing tag. |
subReader | the child reader that was used to parse the subelement (this is the reader that was returned by the corresponding startSubElement() call). It is guaranteed that endElement() has already been called upon this child reader and that the child reader has not yet been destroyed. |
Reimplemented from regina::NXMLElementReader.
|
inlinevirtual |
Returns the newly allocated group presentation that has been read by this element reader.
|
virtual |
Signifies that parsing of this XML element is beginning.
The default implementation does nothing.
tagName | the name of the opening tag for this element. |
tagProps | the properties associated with the opening tag. |
parentReader | the reader currently parsing the parent XML element, or 0 if this is the top-level element. If this paraneter is non-zero, it is guaranteed that startSubElement() has already been called upon the parent reader. |
Reimplemented from regina::NXMLElementReader.
|
virtual |
Signifies that a subelement of this XML element is about to be parsed.
The default implementation returns a new NXMLElementReader which can be used to ignore the subelement completely.
subTagName | the name of the subelement opening tag. |
subTagProps | the properties associated with the subelement opening tag. |
Reimplemented from regina::NXMLElementReader.