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

aaScript Class Reference

We derive a Bayonne server version of ScriptCommand, aaScript, which holds most common elements of the script engine for Bayonne use. Bayonne script dialect. More...

#include <bayonne.h>

Inheritance diagram for aaScript:

ScriptCommand Driver List of all members.

Public Methods

functioncall_t getFunction (char *name)
 Get a function call handler by name. More...

 aaScript ()
 Default scripting environment.

void addModule (Module *module)
 Used to bind "generic" modules to aaScript. More...


Protected Methods

unsigned long getTrapMask (const char *trapname)
 New GetTrapMask() used to set DTMF bit when dtmf digits are also requested in ^traps. More...

void addFunction (char *name, functioncall_t function)
 Add a generic function to the interpreter. More...


Friends

class  Functions

Detailed Description

We derive a Bayonne server version of ScriptCommand, aaScript, which holds most common elements of the script engine for Bayonne use. Bayonne script dialect.

Individual drivers may further derive sub-dialects.

Author(s):
David Sugar <dyfet@ostel.com>


Constructor & Destructor Documentation

aaScript::aaScript ( )
 

Default scripting environment.


Member Function Documentation

void aaScript::addFunction ( char * name,
functioncall_t function ) [protected]
 

Add a generic function to the interpreter.

Parameters:
name   of function.
function   handler.

void aaScript::addModule ( Module * module )
 

Used to bind "generic" modules to aaScript.

Parameters:
Module   to bind.

functioncall_t aaScript::getFunction ( char * name )
 

Get a function call handler by name.

Returns:
handler for function.
Parameters:
name   of function.

unsigned long aaScript::getTrapMask ( const char * trapname ) [protected]
 

New GetTrapMask() used to set DTMF bit when dtmf digits are also requested in ^traps.

Returns:
trap mask to apply.
Parameters:
trap   name being evaluated.


Friends And Related Function Documentation

class Functions [friend]
 


The documentation for this class was generated from the following file:
Generated at Fri Dec 15 12:35:19 2000 for Bayonne by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000