Public Methods |
| bool | Attach (const char *scrname) |
| | Attempt to attach script engine to active session and specify a starting script. More...
|
| void | Detach (void) |
| | Detach the current script image. More...
|
| bool | Redirect (const char *scrname) |
| | Script redirection support. More...
|
| bool | Step (const char *trapname = NULL) |
| | Execute the next pending script statement. More...
|
| bool | isActive (void) |
| | Test if script interpreter is currently active. More...
|
| char* | getOption (const char *def = NULL) |
| | Fetch next logical option but do not evaluate. More...
|
| char* | getValue (const char *def = NULL) |
| | Fetch and evaluate next logical option. More...
|
| char* | getContent (char *sym) |
| | Evaluate the content of an option retrieved with getOption. More...
|
| scriptline_t* | getScript (void) |
| | Return the current script line object so it may be debugged. More...
|
| scriptname_t* | getObject (void) |
| | Return the master script object for resource context. More...
|
| ScriptImage* | getImage (void) |
| | Return the script image holding this application's context. More...
|
| void | autoloop (bool enable) |
| | Enable or disable autolooping of statements. More...
|
Protected Methods |
| | ScriptInterp (ScriptCommand *cmd, int symsize, int pgsize = 1024) |
| | Derive a new instance of the system script interpreter. More...
|
| bool | getOnce (void) |
| | Fetch unique "once" flag and set. More...
|
| void | Notify (unsigned long mask) |
| | Notify signal mask for "on" handlers. More...
|
| void | Notify (const char *str) |
| | Notify signal by symbolic name. More...
|
| unsigned long | getMask (void) |
| | Fetch the current interpreter mask bits directly. More...
|
| ScriptCommand* | getCommand (void) |
| | Fetch the active command interpreter subsystem. More...
|
| bool | Conditional (void) |
| | Used to process "conditional" arguments such as for IF/DO/LOOP statements. More...
|
| bool | scrExit (void) |
| | Some systems can derive alternative "exit" commands which can call this routine after performing other operations.
|
| bool | scrGoto (void) |
| | This is often called to process branching requests.
|
| bool | scrData (void) |
| | Method used to encode "data" lines.
|
| virtual unsigned | getId (void) |
| | Used to return channel identifiers in some systems. More...
|
| scriptsymbol_t* | getVariable (int size = 0) |
| | Fetch a variable (symbol) that will be used to store data. More...
|
| virtual scriptsymbol_t* | getIndirect (char *sym) |
| | May be used to override processing of indirect content requests. More...
|
| void | Advance (void) |
| | Advance program to the next script statement.
|
| void | Error (const char *error) |
| | Set error variable and advance to either the error handler or next script statement. More...
|
| void | Trap (unsigned id) |
| | Set the execution interpreter to a trap identifier. More...
|
| void | Trap (const char *trapname) |
| | Select trap by symbolic name and execute if found, else advance to next script step (unless exit trap). More...
|
| bool | Push (void) |
| | Attempt to push a value onto the stack. More...
|
| bool | Pull (void) |
| | Attempt to recall a previous stack level. More...
|
| bool | Signal (const char *trapname) |
| | Signals are used during "delayed" execution steps when a signal event has occured aynchronously with the execution of a script controlled state event handler. More...
|
| bool | Signal (unsigned trapid) |
| | Signals can be referenced by numeric id as well as by symbolic name. More...
|
| virtual bool | Execute (scriptmethod_t method) |
| | Runtime execution of script handler. More...
|
| virtual void | Stop (unsigned long mask) |
| | Stop request handler. More...
|
| virtual void | Exit (void) = 0 |
| | Exit request handler. More...
|
Friends |
| class | ScriptCommand |
This class is further derived to impliment application specific language dialects.