#include <script3.h>
Inheritance diagram for ost::ScriptCommand:

Public Member Functions | |
| virtual bool | isInput (Line *line) |
| Checks if the line statement is an input statement. | |
| Method | getHandler (const char *keyword) |
| Get the method handler associated with a given keyword. | |
| bool | control (char **args) |
| Issue a control event against current image for attached modules until claimed. | |
| ScriptImage * | getActive (void) |
| Get the active script. | |
| const char * | getTrapName (unsigned id) |
| Get the name of a trap from it's id. | |
| void | aliasModule (const char *id, const char *use) |
| Alias use modules. | |
| virtual void | errlog (const char *level, const char *text) |
| Server level logging interface override. | |
| ScriptCommand () | |
| Create an initialized script command box. | |
| ScriptCommand (ScriptCommand *ini) | |
| Create a ScriptCommand box initialized from another. | |
| unsigned | getActivity (void) |
| Get activity counter. | |
Static Public Member Functions | |
| static const char * | findKeyword (Line *line, const char *keyword) |
| Test for a specific keyword. | |
| static bool | useKeywords (Line *line, const char *list) |
| Test current command against a list of valid keywords. | |
| static unsigned | getCount (Line *line) |
| Count non-keyword arguments. | |
| static const char * | getMember (Line *line) |
| Get the member id code of a line. | |
Protected Member Functions | |
| virtual const char * | getExternal (const char *opt) |
| bool | isInitial (const char *keyword) |
| Fetch whether the given keyword is valid for constructor. | |
| const char * | check (char *command, Line *line, ScriptImage *img) |
| Check keyword syntax. | |
| virtual unsigned | getTrapId (const char *name) |
| Get the trap id number associated with a trap name. | |
| virtual unsigned long | getTrapDefault (void) |
| Get the mask bits for the default script. | |
| virtual unsigned long | getTrapHandler (Name *script) |
| Get the mask bits for a trap "handler". | |
| virtual unsigned long | getTrapMask (unsigned id) |
| Get a trap mask for a given identifer. | |
| virtual unsigned long | getTrapModifier (const char *name) |
| A helper method for the compiler. | |
| virtual unsigned long | getTrapMask (const char *name) |
| A helper method for the compiler used specifically for "^" trap subsection requests. | |
| void | load (Script::Define *keywords) |
| Load a set of keywords into the system keyword table. | |
| int | trap (const char *name, bool inherited=true) |
| Add a trap handler symbolic identity to the keyword table. | |
| unsigned | getCount (void) |
| Get count of active traps. | |
| bool | isInherited (unsigned id) |
| Return true if the trap id is inherited. | |
| virtual const char * | check (Check chk, Line *line, ScriptImage *img) |
| Perform compile time check of a specified symbol. | |
Static Protected Member Functions | |
| static bool | hasKeywords (Line *line) |
| Test current command to see if it uses keyword syntax. | |
| static bool | useMember (Line *line, const char *list) |
| Check the member list. | |
| static const char * | getOption (Line *line, unsigned *index) |
| Get an option to examine in check routine. | |
Protected Attributes | |
| bool | ripple |
| unsigned | activity |
Static Protected Attributes | |
| static ScriptCommand * | runtime |
Friends | |
| class | ScriptImage |
| class | ScriptInterp |
| class | ScriptCompiler |
| class | ScriptBinder |
Classes | |
| struct | _keyword |
Application specific dialects are created by deriving a application specific version of ScriptCommand which then binds application specific keywords and associated methods in an application derived ScriptInterp which are typecast to (scriptmethod_t).
|
|
Create an initialized script command box.
|
|
|
Create a ScriptCommand box initialized from another.
|
|
||||||||||||
|
Alias use modules. ..
|
|
||||||||||||||||
|
Perform compile time check of a specified symbol.
|
|
||||||||||||||||
|
Check keyword syntax.
|
|
|
Issue a control event against current image for attached modules until claimed.
|
|
||||||||||||
|
Server level logging interface override.
|
|
||||||||||||
|
Test for a specific keyword.
|
|
|
Get the active script.
|
|
|
Get activity counter.
|
|
|
Get count of active traps.
Reimplemented from ost::Keydata. |
|
|
Count non-keyword arguments.
|
|
|
|
|
|
Get the method handler associated with a given keyword. This is used by ScriptImage when compiling.
|
|
|
Get the member id code of a line.
|
|
||||||||||||
|
Get an option to examine in check routine.
|
|
|
Get the mask bits for the default script.
|
|
|
Get the mask bits for a trap "handler".
|
|
|
Get the trap id number associated with a trap name.
|
|
|
A helper method for the compiler used specifically for "^" trap subsection requests. These will occasionally carry different attribute settings.
|
|
|
Get a trap mask for a given identifer. This is a virtual since some derived handlers may manipulate mask bits.
|
|
|
A helper method for the compiler. Converts a named trap into it's bit shifted mask. By making it a virtual, derived dialects can add "aliases" to default trap names.
|
|
|
Get the name of a trap from it's id.
|
|
|
Test current command to see if it uses keyword syntax.
|
|
|
Return true if the trap id is inherited.
|
|
|
Fetch whether the given keyword is valid for constructor.
|
|
|
Checks if the line statement is an input statement. Used in some servers...
|
|
|
Load a set of keywords into the system keyword table. This provides a convenient method of initializing and adding to the keyword indexes.
|
|
||||||||||||
|
Add a trap handler symbolic identity to the keyword table. These are used to handle signal mask coercion and event branch points in the compiler.
|
|
||||||||||||
|
Test current command against a list of valid keywords.
|
|
||||||||||||
|
Check the member list.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.6