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

step/stepcore

  • StepCore
  • XmlFile
Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
StepCore::XmlFile Class Reference
XML file IO

#include <xmlfile.h>

Public Member Functions

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

Static Public Attributes

static const char * DOCTYPE
 
static const char * NAMESPACE_URI
 
static const char * VERSION
 

Protected Attributes

QIODevice * _device
 
QString _errorString
 

Detailed Description

Class for saving and loading World as XML file.

Definition at line 37 of file xmlfile.h.

Constructor & Destructor Documentation

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

Constructs XmlFile.

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

Definition at line 43 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 61 of file xmlfile.h.

bool StepCore::XmlFile::load ( World *  world,
const Factory *  factory 
)

Load world from XML file.

Parameters
worldWorld to which file should be loaded (should be empty)
factoryFactory 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
worldWorld 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 64 of file xmlfile.h.

QString StepCore::XmlFile::_errorString
protected

Definition at line 65 of file xmlfile.h.

const char* StepCore::XmlFile::DOCTYPE
static

Definition at line 68 of file xmlfile.h.

const char* StepCore::XmlFile::NAMESPACE_URI
static

Definition at line 69 of file xmlfile.h.

const char* StepCore::XmlFile::VERSION
static

Definition at line 70 of file xmlfile.h.


The documentation for this class was generated from the following file:
  • xmlfile.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:43:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

step/stepcore

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

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal