#include <xml.h>
Inheritance diagram for databases::XMLImport:
Public Member Functions | |
virtual bool | import_data (std::string const &dir, std::string const &database)=0 |
Imports a database from an XML file. | |
Static Public Attributes | |
static modules::PSIID const | IID = 0x42e3f23f |
The interface identifier. |
The import_data() function must be overriden in derived classes.
virtual bool databases::XMLImport::import_data | ( | std::string const & | dir, | |
std::string const & | database | |||
) | [pure virtual] |
Imports a database from an XML file. 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 XMLReader class may be used as a framework to make the task easier.
[in] | dir | The input directory for the XML file. If it is an empty string, the file is located in the current working directory. |
[in] | database | The name of the database to import. |