IOxml Class Reference

Input and output XML. More...

#include <ioXML.h>

Collaboration diagram for IOxml:

Collaboration graph
[legend]

List of all members.

Public Member Functions

QDomDocument * loadConfigFile (const QString &)
 Load an xml configuration file.
QDomDocument * loadFile (const QString &)
 Load an xml file.
bool saveFile (const QDomDocument &)
 Save an xml file.

Static Public Member Functions

static IOxmlInstance ()
 Get a pointer to the singleton instance.

Protected Member Functions

 IOxml ()
 protected constructor


Detailed Description

Input and output XML.

Singleton class providing global access to XML input and output.


Member Function Documentation

IOxml * IOxml::Instance (  )  [static]

Get a pointer to the singleton instance.

Returns:
a pointer to the single instance of the IOxml class

QDomDocument * IOxml::loadConfigFile ( const QString &  fileName  ) 

Load an xml configuration file.

NB: Caller is responsible for deleting the returned QDomDocument object!

Returns:
a pointer to the loaded QDomDocument

QDomDocument * IOxml::loadFile ( const QString &  type  ) 

Load an xml file.

NB: Caller is responsible for deleting the returned QDomDocument object!

Returns:
a pointer to the loaded QDomDocument

bool IOxml::saveFile ( const QDomDocument &  doc  ) 

Save an xml file.

Returns:
true if save successful


Generated on Mon Feb 23 16:42:00 2009 for Dragon Wings by  doxygen 1.5.5