#include <xml.h>
Public Member Functions | |
XMLReader () | |
Constructor. | |
XMLReader (XMLReader const &xr) | |
Copy constructor. | |
XMLReader & | operator= (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... |
A class derived from XMLReader::Callback should be created so that it'll receive the data as it is parsed from the XML file.
bool databases::XMLReader::load | ( | std::string const & | filename, | |
Callback & | cb | |||
) |
LOads the given XML file.
[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. |