Regina Calculation Engine
|
An XML element reader that reads a single normal surface. More...
#include <surfaces/nxmlsurfacereader.h>
Public Member Functions | |
NXMLNormalSurfaceReader (NTriangulation *newTri, NormalCoords newCoords) | |
Creates a new normal surface reader. More... | |
NNormalSurface * | getSurface () |
Returns the normal surface that has been read. More... | |
virtual void | startElement (const std::string &tagName, const regina::xml::XMLPropertyDict &tagProps, NXMLElementReader *parentReader) |
Signifies that parsing of this XML element is beginning. More... | |
virtual void | initialChars (const std::string &chars) |
Signifies that the initial text belonging to this XML element has been read. More... | |
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. More... | |
![]() | |
NXMLElementReader () | |
Creates a new element reader. More... | |
virtual | ~NXMLElementReader () |
Destroys this element reader. More... | |
virtual void | endSubElement (const std::string &subTagName, NXMLElementReader *subReader) |
Signifies that parsing has finished for a subelement of this XML element. More... | |
virtual void | endElement () |
Signifies that parsing of this XML element is finished. More... | |
virtual void | usingParser (regina::xml::XMLParser *parser) |
Called for the top-level element in an XML file when parsing begins. More... | |
virtual void | abort (NXMLElementReader *subReader) |
Signifies that XML parsing has been aborted. More... | |
An XML element reader that reads a single normal surface.
|
inline |
Creates a new normal surface reader.
newTri | the triangulation in which this normal surface lives. |
newCoords | the coordinate system used by this normal surface. |
|
inline |
Returns the normal surface that has been read.
|
virtual |
Signifies that the initial text belonging to this XML element has been read.
The initial text is everything between the opening tag and the first subelement or closing tag.
The default implementation does nothing.
chars | the initial text for this element. |
Reimplemented from regina::NXMLElementReader.
|
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.