A reader for an XML element that contains only characters. More...
#include <nxmlelementreader.h>
Public Member Functions | |
NXMLCharsReader () | |
Creates a new XML element reader. | |
const std::string & | getChars () |
Returns the characters stored in the XML element that has been read. | |
virtual void | initialChars (const std::string &chars) |
Signifies that the initial text belonging to this XML element has been read. |
A reader for an XML element that contains only characters.
Any XML subelements will be ignored (as will any characters occurring after any subelements).
regina::NXMLCharsReader::NXMLCharsReader | ( | ) | [inline] |
Creates a new XML element reader.
const std::string & regina::NXMLCharsReader::getChars | ( | ) | [inline] |
Returns the characters stored in the XML element that has been read.
void regina::NXMLCharsReader::initialChars | ( | const std::string & | chars ) | [inline, 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.