XmlFile Class Reference
[XML file IO]

Class for saving and loading World as XML file. More...

#include <xmlfile.h>

List of all members.

Public Member Functions

 XmlFile (QIODevice *device)
bool save (const World *world)
bool load (World *world, const Factory *factory)
QString errorString () const


Detailed Description

Class for saving and loading World as XML file.


Constructor & Destructor Documentation

XmlFile ( QIODevice *  device  ) 

Constructs XmlFile

Parameters:
device QIODevice to save or load file
Todo:
TODO don't pass factory here !


Member Function Documentation

bool save ( const World world  ) 

Save world to XML file

Parameters:
world World to save
Returns:
true on success, false on failure (with error message in errorString())

bool load ( World world,
const Factory factory 
)

Load world from XML file

Parameters:
world World to which file should be loaded (should be empty)
factory Factory for creating new objects
Returns:
true on success, false on failure (with error message in errorString())

QString errorString (  )  const

Get error message from last failed save() or load()


The documentation for this class was generated from the following files:
Generated on Thu Mar 15 14:23:38 2007 for StepCore by  doxygen 1.5.1