class skExecutable

This class gives an interface for the Interpreter to call into

Inheritance:

skExecutable


Public Methods

skExecutable()
Default Constructor
virtual ~skExecutable()
Destructor
virtual int executableType() const
this method returns the type of the object
virtual int intValue() const
returns an integer equivalent of this object
virtual bool boolValue() const
returns a boolean equivalent of this object
virtual char charValue() const
returns a character equivalent of this object
virtual skString strValue() const
returns a String equivalent of this object
virtual float floatValue() const
returns a float equivalent of this object
virtual bool setValue(const skString& field_name, const skString& attribute, const skRValue& value)
requests the object to set a field to the given value
virtual bool getValue(const skString& field_name, const skString& attribute, skRValue& value)
requests the object to return a field's value
virtual bool method(const skString& method_name, skRValueArray& arguments, skRValue& return_value)
Requests that the object execute the given method
virtual bool equals(skExecutable * other_object) const
This method compares this object with another object

Documentation

This class gives an interface for the Interpreter to call into
skExecutable()
Default Constructor

virtual ~skExecutable()
Destructor

virtual int executableType() const
this method returns the type of the object. By default this is UNDEFINED_TYPE. Define your own value if you want to check the type of your object at run-time

virtual int intValue() const
returns an integer equivalent of this object

virtual bool boolValue() const
returns a boolean equivalent of this object

virtual char charValue() const
returns a character equivalent of this object

virtual skString strValue() const
returns a String equivalent of this object

virtual float floatValue() const
returns a float equivalent of this object

virtual bool setValue(const skString& field_name, const skString& attribute, const skRValue& value)
requests the object to set a field to the given value
Returns:
true if the field was changed, false if the field could not be set or found
Parameters:
field_name - - the name of the field name to set
attribute - - the attribute name to set (may be blank)
value - - the value to be set

virtual bool getValue(const skString& field_name, const skString& attribute, skRValue& value)
requests the object to return a field's value
Returns:
true if the field was changed, false if the field could not be get or found
Parameters:
field_name - - the name of the field name to get
attribute - - the attribute name to get (may be blank)
value - - the value to receive the value of the field

virtual bool method(const skString& method_name, skRValueArray& arguments, skRValue& return_value)
Requests that the object execute the given method
Parameters:
method_name - - the name of the method to execute
arguments - - an array of RValue objects, which are the arguments to the method
return_value - - an object to receive the return value of the method
return - true if the method could be executed, or false if the method is not supported

virtual bool equals(skExecutable * other_object) const
This method compares this object with another object. The default implementation checks object pointers.


Direct child classes:
skXMLElementObject
skTreeNodeObject
skInterpreter

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