databases::XMLReader Class Reference

Class for reading XML database files. More...

#include <xml.h>

List of all members.

Public Member Functions

 XMLReader ()
 Constructor.
 XMLReader (XMLReader const &xr)
 Copy constructor.
XMLReaderoperator= (XMLReader const &right)
 Assignment operator.
bool load (std::string const &filename, Callback &cb)
 Loads the given XML file.
char const * error () const
 Returns the last error string.

Classes

class  Callback
 The callback class used by XMLReader::load(). More...


Detailed Description

This class may be used to read database XML files that have been generated through the XMLExport interface, possibly using the XMLWriter class. It's generally used when implementing the XMLImport interface.

A class derived from XMLReader::Callback should be created so that it'll receive the data as it is parsed from the XML file.


Member Function Documentation

bool databases::XMLReader::load std::string const &  filename,
Callback cb
 

LOads the given XML file.

Parameters:
[in] filename The name of the file to load, either absolute or relative to the current working directory.
[in] cb The callback object that will be used to pass the parsed data to the caller.
Returns:
true if successful, false otherwise.


The documentation for this class was generated from the following file:
Generated on Sun May 20 21:32:20 2007 for Epona API by  doxygen 1.4.6