UQTk: Uncertainty Quantification Toolkit 3.1.5
|
#include <XMLExpatParser.h>
Public Member Functions | |
XMLExpatParser () | |
Construct a new parser. | |
virtual | ~XMLExpatParser () throw () |
Destructor. | |
RefPtr< XMLElement > | parse (std::istream &) |
Parse the given input buffer and return a parse tree. | |
Public Member Functions inherited from XMLParser | |
XMLParser () | |
Default constructor. Intended for derived classes. | |
virtual | ~XMLParser () |
Destructor. | |
Public Member Functions inherited from Object | |
Object () | |
Construct a new reference counted object with a zero reference count. | |
virtual | ~Object () |
Destroy this object. | |
long int | reference_count () const |
Returns the number of references that are held to this object. | |
Static Public Member Functions | |
static void | start_ (void *, const XML_Char *, const XML_Char **) |
static void | end_ (void *, const XML_Char *) |
static void | character_data_ (void *, const XML_Char *, int) |
Private Member Functions | |
XMLExpatParser (const XMLExpatParser &) | |
XMLExpatParser & | operator= (const XMLExpatParser &) |
Blocked assignment operator. Not for public consumption. | |
void | do_start (const XML_Char *, const XML_Char **) |
The method used to parse the start tag. | |
void | do_end (const XML_Char *) |
The method used to parse the end tag. | |
void | do_character_data (const XML_Char *, int) |
The method used to parse character (content) data. | |
void | init () |
Initialize the state of the parser. | |
Private Attributes | |
XML_Parser | parser_ |
The Expat parser. | |
std::vector< RefPtr< XMLElement > > | path_ |
The path that we have traversed so far in building the tree. | |
RefPtr< XMLElement > | leaf_ |
The current leaf of the parse tree. | |
Friends | |
template<class T > | |
class | RefPtr |
template<class T > | |
class | ConstRefPtr |
Additional Inherited Members | |
Protected Member Functions inherited from Object | |
long int | reference_grab () const |
long int | reference_release () const |
An XML parser that uses the Expat library to handle the gruntwork. This class requires that the Expat be installed on your system.
Expat is available at the Expat site
This class may not be fully exception safe, since there is no good way of enforcing that the Expat parser is destroyed cleanly.
XMLExpatParser::XMLExpatParser | ( | ) |
Construct a new parser.
|
private |
Blocked copy constructor. It is not safe to copy this object since the Expat parser may save state which cannot be duplicated.
|
virtual |
Destructor.
|
static |
Static wrapper method used as a callback to get character data. This method is for internal use only. Calling this method directly will most likely result in a segmentation fault.
|
private |
The method used to parse character (content) data.
|
private |
The method used to parse the end tag.
|
private |
The method used to parse the start tag.
|
static |
Static wrapper method used as a callback to get the 'end' tag. This method is for internal use only. Calling this method directly will most likely result in a segmentation fault.
|
private |
Initialize the state of the parser.
|
private |
Blocked assignment operator. Not for public consumption.
|
virtual |
Parse the given input buffer and return a parse tree.
Implements XMLParser.
|
static |
Static wrapper method used as a callback to get the 'start' tag. This method is for internal use only. Calling this method directly will most likely result in a segmentation fault.
|
friend |
|
friend |
|
private |
The current leaf of the parse tree.
|
private |
The Expat parser.
|
private |
The path that we have traversed so far in building the tree.