Regina Calculation Engine
|
Helper class that reads the XML element for a single top-dimensional simplex in a dim-dimensional triangulation. More...
#include <triangulation/detail/xmltrireader.h>
Public Member Functions | |
XMLSimplexReader (Triangulation< dim > *tri, size_t whichSimplex) | |
Creates a new simplex element reader. More... | |
virtual void | startElement (const std::string &, const regina::xml::XMLPropertyDict &props, XMLElementReader *) override |
Signifies that parsing of this XML element is beginning. More... | |
virtual void | initialChars (const std::string &chars) override |
Signifies that the initial text belonging to this XML element has been read. More... | |
virtual XMLElementReader * | startSubElement (const std::string &subTagName, const regina::xml::XMLPropertyDict &subTagProps) |
Signifies that a subelement of this XML element is about to be parsed. More... | |
virtual void | endSubElement (const std::string &subTagName, XMLElementReader *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 (XMLElementReader *subReader) |
Signifies that XML parsing has been aborted. More... | |
Helper class that reads the XML element for a single top-dimensional simplex in a dim-dimensional triangulation.
In other words, this reads the contents of a single <simplex> element for dimension dim ≥ 5, or a single <triangle>, <tet> or <pent> element for dimension dim = 2, 3 or 4.
It is assumed that the underlying triangulation and its simplices have already been created. The task of this reader is to flesh out the "contents" of a single simplex; that is, the description of the simplex and its gluings to adjacent simplices.
dim | The dimension of the triangulation being read. |