#include <xml.h>
Inheritance diagram for databases::XMLExport:
Public Member Functions | |
virtual bool | export_data (std::string const &dir, XMLIndex &index, std::string const &database="")=0 |
Exports databases to XML files. | |
Static Public Attributes | |
static modules::PSIID const | IID = 0x42e2ed91 |
The interface identifier. |
The export_data() function must be overriden in derived classes.
virtual bool databases::XMLExport::export_data | ( | std::string const & | dir, | |
XMLIndex & | index, | |||
std::string const & | database = "" | |||
) | [pure virtual] |
Exports databases to XML files. The tags used in the XML files are currently undocumented, sorry... But it is very straightforward and examining XML files generated by some of the "standard" database modules will probably get you started without having to read the source code ;). The XMLWriter class may be used as a framework to make the task easier.
[in] | dir | The output directory for XML files. If it is an empty string, files must be output to current working directory |
[in] | index | The index to which the files you create should be added to (you should check that a file hasn't been exported yet by looking for its presence in the index). |
[in] | database | The name of a database to export. If it is an empty string (the default), then all databases must be exported. |