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

skXMLExecutable 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 <skXMLExecutable.h>

Inheritance diagram for skXMLExecutable:

skXMLElementObject skExecutable skiExecutable List of all members.

Public Methods

 skXMLExecutable ()
 Default Constructor.

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

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

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

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

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

void load (const skString& fileName)
 This method causes the XML 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 XML 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.


Member Function Documentation

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

This method causes the XML to be reloaded.

Parameters:
in   - string containing the XML

void skXMLExecutable::load ( const skString & scriptLocation,
InputSource & in )
 

This method causes the XML to be reloaded.

Parameters:
in   - stream containing the XML

void skXMLExecutable::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:26 2001 for Simkin by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000