#include <script.h>
Inheritance diagram for ScriptSymbol::
Public Methods | |
scriptsymbol_t * | getTrigger (void) |
Fetch a pending trigger value and clear it. More... | |
int | getSymbolSize (void) |
Fetch default symbol size. More... | |
ScriptSymbol (int size, int pgsize=1024) | |
void * | getPointer (const char *symbol) |
Fetch an embedded pointer held in a symbol identifier. More... | |
bool | setPointer (const char *symbol, void *data) |
Set an embedded pointer object as a symbol. More... | |
char * | getSymbol (const char *symbol) |
Fetch the address of the value of a given symbol identifier. More... | |
char * | setSymbol (const char *symbol, const char *value="") |
Set a given symbol to a new value. More... | |
char * | setConst (const char *symbol, const char *value="") |
Set a constant value. More... | |
bool | makeSequence (const char *id, unsigned char count, unsigned char recsize) |
Create a sequence object (looping fifo). More... | |
bool | makeStack (const char *id, unsigned char count, unsigned char recsize) |
Create a stack object. More... | |
bool | makeFifo (const char *id, unsigned char count, unsigned char recsize) |
Create a fifo object. More... | |
bool | makeCounter (const char *id) |
Create an automatic counter object. More... | |
bool | postSymbol (scriptsymbol_t *sym, const char *value) |
Post data into a fifo. More... | |
bool | removeSymbol (scriptsymbol_t *sym, const char *value) |
Remove entry from a queue. More... | |
char * | readSymbol (scriptsymbol_t *sym) |
Read symbol handles special symbol types. More... | |
bool | setAlias (const char *symbol, const char *source) |
Set an alias. More... | |
scriptsymbol_t * | getAlias (const char *symbol) |
Get an alias. More... | |
char * | setSymbol (const char *symbol, int size=0) |
Create a new symbol entry of a specified size. More... | |
void | clrSymbol (const char *id) |
Clear a symbol definition. More... | |
void | Purge (void) |
Purge user defined symbols and memory space. More... | |
unsigned | Gather (scriptsymbol_t **index, unsigned max, const char *prefrix, const char *suffix=NULL) |
Gather a listing of common script symbols. More... | |
Protected Methods | |
virtual scriptsymbol_t * | getEntry (const char *symbol, int size=0) |
Fetch a symbol entry. More... | |
virtual void | Commit (scriptsymbol_t *sym) |
A virtual method used when "committing" symbol changes. More... | |
Friends | |
class | ScriptInterp |
A symbol is a variable with a reserved memory space. Some derived systems, like Bayonne IVR, may make use of a channel specific and global symbol tables.
|
|
|
A virtual method used when "committing" symbol changes. Normally this is a non-operation, but when system specific dialects are created, special symbols that must be converted from strings into other kinds of internal data types, or that might perform operations can be represented with the commit.
|
|
Gather a listing of common script symbols.
|
|
Purge user defined symbols and memory space.
|
|
Clear a symbol definition. This does not remove the entry if it already exists. It mearly clears the initial flag so it still can appear undefined.
|
|
Get an alias.
|
|
Fetch a symbol entry. Normally this is presumed to be from the native symbol table. However, the use of a virtual allows one to derive special "system" symbols as needed for Bayonne dialects, as well as specify special attributes and properties for system symbols. For example, in the Bayonne IVR, symbols might be used to retrieve the current DTMF digit buffer and count, but these are stored as and manipulated in a channel structure rather than in "symbol space".
|
|
Fetch an embedded pointer held in a symbol identifier.
|
|
Fetch the address of the value of a given symbol identifier.
|
|
Fetch default symbol size.
|
|
Fetch a pending trigger value and clear it.
|
|
Create an automatic counter object.
|
|
Create a fifo object.
|
|
Create a sequence object (looping fifo).
|
|
Create a stack object.
|
|
Post data into a fifo.
|
|
Read symbol handles special symbol types.
|
|
Remove entry from a queue.
|
|
Set an alias.
|
|
Set a constant value.
|
|
Set an embedded pointer object as a symbol.
|
|
Create a new symbol entry of a specified size.
|
|
Set a given symbol to a new value.
|
|
|