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. More...

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

void addDummy (const char *names)
 Add unused commands to aaScript for compiler clean-ness. 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:
David Sugar <dyfet@ostel.com>


Constructor & Destructor Documentation

aaScript::aaScript  
 

Default scripting environment.


Member Function Documentation

void aaScript::addDummy const char *   names
 

Add unused commands to aaScript for compiler clean-ness.

Parameters:
names   of commands to add.

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

friend class Functions [friend]
 


The documentation for this class was generated from the following file:
Generated at Wed Nov 21 12:17:03 2001 for Bayonne by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001