class skXMLExecutable : public skXMLElementObject

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

Inheritance:

skXMLExecutable < skXMLElementObject < skExecutable


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
void load(const skString& scriptLocation, const skString& in)
This method causes the XML to be reloaded
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
void save(const skString& fileName)
This method saves the current state as an XML document out to the given file

Inherited from skXMLElementObject:

Public Methods

int executableType() const
int intValue() const
float floatValue() const
bool boolValue() const
char charValue() const
skString strValue() const
bool setValue(const skString& s, const skString& attribute, const skRValue& return_value)
bool getValue(const skString& s, const skString& attribute, skRValue& return_value)
bool method(const skString& name, skRValueArray& args, skRValue& ret)
bool equals(skExecutable * o) const
void copyItemsInto(DOM_Element other)
DOM_Element getElement()
static skString getData(DOM_Element element)
static void setData(DOM_Element element, const skString& data)
static DOM_Element findChild(DOM_Element parent, const skString& tagname)
static DOM_Element findChild(DOM_Element parent, const skString& tagname, const skString& attribute, const skString& value)
void setAttribute(skString name, const skString& value)
skString getAttribute(const skString& name)
static skString toString(DOMString str)
static DOMString fromString(const skString& str)

Protected Fields

skString m_ScriptLocation

Protected Methods

void setElement(DOM_Element element)

Inherited from skExecutable:


Documentation

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
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
Parameters:
in - - stream containing the XML

void load(const skString& scriptLocation, const skString& in)
This method causes the XML to be reloaded
Parameters:
in - - string containing the XML

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
Throws:
IOException if there was an error writing to the stream

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


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de