Regina Calculation Engine
Public Member Functions
regina::NXMLCharsReader Class Reference

A reader for an XML element that contains only characters. More...

#include <nxmlelementreader.h>

Inheritance diagram for regina::NXMLCharsReader:
regina::NXMLElementReader

List of all members.

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.

Detailed Description

A reader for an XML element that contains only characters.

Any XML subelements will be ignored (as will any characters occurring after any subelements).

Python:
Not present.

Constructor & Destructor Documentation

regina::NXMLCharsReader::NXMLCharsReader ( ) [inline]

Creates a new XML element reader.


Member Function Documentation

const std::string & regina::NXMLCharsReader::getChars ( ) [inline]

Returns the characters stored in the XML element that has been read.

Returns:
the characters stored in the XML element.
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.

Parameters:
charsthe initial text for this element.

Reimplemented from regina::NXMLElementReader.


The documentation for this class was generated from the following file:

Copyright © 1999-2009, Ben Burton
This software is released under the GNU General Public License.
For further information, or to submit a bug or other problem, please contact Ben Burton (bab@debian.org).