Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

skElementExecutable Class Reference

This class is a base class for objects which store their data and methods in an XML document Each instance is associated with an XML document which is loaded on construction. More...

#include <skElementExecutable.h>

Inheritance diagram for skElementExecutable:

skElementObject skExecutable skiExecutable List of all members.

Public Methods

 skElementExecutable ()
 Default Constructor.

 skElementExecutable (const skString& fileName)
 Constructor - passed the name of a file to load an XML document from.

 skElementExecutable (const skString& scriptLocation,istream& in)
 Constructor taking an input stream containing an XML document.

 skElementExecutable (const skString& scriptLocation,const skString& in)
 Constructor taking a String containing an XML document.

void load (const skString& scriptLocation,istream& in)
 This method causes the to be reloaded. More...

void load (const skString& scriptLocation,const skString& in)
 This method causes the to be reloaded. More...

void load (const skString& fileName)
 This method causes the to be loaded from a file.

void save (ostream& out)
 Call this method to save the state of the object back to a stream. More...

void save (const skString& fileName)
 This method saves the current state as an document out to the given file.


Detailed Description

This class is a base class for objects which store their data and methods in an XML document Each instance is associated with an XML document which is loaded on construction.

This version uses the Expat XML parser to read documents.


Member Function Documentation

void skElementExecutable::load ( const skString & scriptLocation,
const skString & in )
 

This method causes the to be reloaded.

Parameters:
in   - string containing the

void skElementExecutable::load ( const skString & scriptLocation,
istream & in )
 

This method causes the to be reloaded.

Parameters:
in   - stream containing the

void skElementExecutable::save ( ostream & out )
 

Call this method to save the state of the object back to a stream.

Exceptions:
IOException   if there was an error writing to the stream


The documentation for this class was generated from the following files:
Generated at Mon Nov 5 19:22:25 2001 for Simkin by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000