NullInterpreter Class Reference

#include <nullinterpreter.h>

Inheritance diagram for NullInterpreter:

Inheritance graph
[legend]
Collaboration diagram for NullInterpreter:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NullInterpreter ()
virtual ~NullInterpreter ()
virtual void start ()
virtual void stop ()
virtual void * define (const char *var, const char *value)
virtual bool defined (const char *var)
virtual void * eval (const char *script)
virtual int toint (void *value)
virtual const char * tostring (void *value)
virtual double todouble (void *value)
virtual bool tobool (void *value)
virtual void upscope ()
virtual void downscope ()

Constructor & Destructor Documentation

NullInterpreter::NullInterpreter  )  [inline]
 

virtual NullInterpreter::~NullInterpreter  )  [inline, virtual]
 


Member Function Documentation

virtual void NullInterpreter::start  )  [inline, virtual]
 

Start the intrepreter and do any necessary initialization.

Implements Interpreter.

virtual void NullInterpreter::stop  )  [inline, virtual]
 

Stop the intrepreter and do and necessary cleanup.

Implements Interpreter.

virtual void* NullInterpreter::define const char *  var,
const char *  value
[inline, virtual]
 

Define a variable with in the intrepreter.

Parameters:
var Variable name.
value Variable value.
Returns:
A void pointer to the value structure.

Implements Interpreter.

virtual bool NullInterpreter::defined const char *  var  )  [inline, virtual]
 

Check if a variable is defined in the intreperter with in the current context.

Parameters:
var The name of the variable.
Returns:
true if var is defined, false otherwise.

Implements Interpreter.

virtual void* NullInterpreter::eval const char *  script  )  [inline, virtual]
 

Evaluage a line of script.

Parameters:
script The script.
Returns:
A void pointer to the return value.

Implements Interpreter.

virtual int NullInterpreter::toint void *  value  )  [inline, virtual]
 

Convert a value to an integer.

Parameters:
value A pointer to the value to be converted.
Returns:
The integer result.

Implements Interpreter.

virtual const char* NullInterpreter::tostring void *  value  )  [inline, virtual]
 

Convert a value pointer to a string.

Parameters:
value The value pointer.
Returns:
The string value of the value.

Implements Interpreter.

virtual double NullInterpreter::todouble void *  value  )  [inline, virtual]
 

Convert a value pointer to a double.

Parameters:
value The value pointer.
Returns:
The value converted to a double.

Implements Interpreter.

virtual bool NullInterpreter::tobool void *  value  )  [inline, virtual]
 

Convert a value pointer to a bool.

Parameters:
value The value pointer.
Returns:
The boolean value

Implements Interpreter.

virtual void NullInterpreter::upscope  )  [inline, virtual]
 

Create a new scope level in the intrepreter. It is not exactly defined how this should effect scripting. This function is called each time a node or network is entered.

Implements Interpreter.

virtual void NullInterpreter::downscope  )  [inline, virtual]
 

Move down a scope level in the intrepreter. It is not exactly defined how this should effect scripting. This function is called each time a node or network is exited.

Implements Interpreter.


The documentation for this class was generated from the following file:
Generated on Wed Apr 5 21:04:41 2006 for Sesame by  doxygen 1.4.6