• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

step/stepcore

StepCore::XmlFile

StepCore::XmlFile Class Reference
[XML file IO]

#include <xmlfile.h>

List of all members.


Detailed Description

Class for saving and loading World as XML file.

Definition at line 39 of file xmlfile.h.


Public Member Functions

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

Static Public Attributes

static const char * DOCKTYPE
static const char * NAMESPACE_URI
static const char * VERSION

Protected Attributes

QIODevice * _device
QString _errorString

Constructor & Destructor Documentation

StepCore::XmlFile::XmlFile ( QIODevice *  device  )  [inline]

Constructs XmlFile.

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

Definition at line 45 of file xmlfile.h.


Member Function Documentation

QString StepCore::XmlFile::errorString (  )  const [inline]

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

Definition at line 63 of file xmlfile.h.

bool StepCore::XmlFile::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())

bool StepCore::XmlFile::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())


Member Data Documentation

QIODevice* StepCore::XmlFile::_device [protected]

Definition at line 66 of file xmlfile.h.

QString StepCore::XmlFile::_errorString [protected]

Definition at line 67 of file xmlfile.h.

const char* StepCore::XmlFile::DOCKTYPE [static]

Definition at line 70 of file xmlfile.h.

const char* StepCore::XmlFile::NAMESPACE_URI [static]

Definition at line 71 of file xmlfile.h.

const char* StepCore::XmlFile::VERSION [static]

Definition at line 72 of file xmlfile.h.


The documentation for this class was generated from the following file:
  • xmlfile.h

step/stepcore

Skip menu "step/stepcore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal