step/stepcore
StepCore::XmlFile Class Reference
[XML file IO]
#include <xmlfile.h>
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] |
Member Function Documentation
| QString StepCore::XmlFile::errorString | ( | ) | const [inline] |
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] |
QString StepCore::XmlFile::_errorString [protected] |
const char* StepCore::XmlFile::DOCKTYPE [static] |
const char* StepCore::XmlFile::NAMESPACE_URI [static] |
const char* StepCore::XmlFile::VERSION [static] |
The documentation for this class was generated from the following file:
KDE 4.2 API Reference