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

Public Member Functions | |
| void * | getMemory (size_t size) |
| Get memory for assoc data. | |
| virtual void | fastBranch (ScriptInterp *interp) |
| Fast branch linkback code. | |
| Name * | getCurrent (void) |
| Get current entity being compiled. | |
| void | addSelect (Line *line) |
| Add a select record to the currently compiled script. | |
| void | addRegistration (Line *line) |
| Add a registration record to the compiled script. | |
| ScriptRegistry * | getRegistry (void) |
| Get a registration record to use. | |
| void | addRoute (Line *line, unsigned pri) |
| Add an advertised route in a priority slot. | |
| Line * | getSelect (void) |
| Get the selection list from the image. | |
| Line * | getRegistration (void) |
| Get the registration list from the image. | |
| Line * | getRoute (unsigned pri) |
| Get an advertised priority record from the image. | |
| unsigned long | getInstance (void) |
| Get the session instance of the image. | |
| ScriptImage (ScriptCommand *cmdset, const char *symset) | |
| Construct a new working image. | |
| ~ScriptImage () | |
| Destruct the ScriptImage itself by removing linked objects. | |
| void | purge (void) |
| Purge and reload the script image workspace. | |
| void | commit (void) |
| Used in the derived constructor to "commit" the current image for new processes. | |
| void | load (Initial *ilist) |
| Used by a derived constructor to load an initialization list. | |
| void | initial (const char *keyword, const char *value, unsigned size=0) |
| Used to load a single initialization list entry. | |
| virtual Name * | getScript (const char *name) |
| Fetch named script. | |
| ScriptCommand * | getCommand (void) |
| Get the command object associated with the image. | |
| bool | isRipple (void) |
| Get the ripple flag for the current image. | |
| unsigned | gather (const char *suffix, Name **array, unsigned size) |
| Fetch list of relational scripts. | |
| void | incRef (void) |
| inc the reference count. | |
| void | decRef (void) |
| dec the reference count. | |
| bool | isRef (void) |
| See if the image is referenced. | |
| ScriptImage * | getActive (void) |
| Get the active image from command. | |
Protected Member Functions | |
| Method | getHandler (const char *keyword) |
| Get the interpreter method pointer for a given keyword. | |
Protected Attributes | |
| ScriptCommand * | cmds |
| unsigned | refcount |
| Name * | index [SCRIPT_INDEX_SIZE+1] |
| Name * | current |
| Line * | select |
| Line * | selecting |
| Line * | registration |
| Line * | advertising [SCRIPT_ROUTE_SLOTS] |
| Mutex | duplock |
| ScriptObject * | objects |
| unsigned long | instance |
| ost::ScriptImage::InitialList * | ilist |
Static Protected Attributes | |
| static unsigned long | serial |
Friends | |
| class | ScriptObject |
| class | ScriptInterp |
Classes | |
| class | InitialList |
This includes the script image compiler itself. Typically, a script is compiled one file at a time from a directory, and the committed, during the constructor in a derived class.
|
||||||||||||
|
Construct a new working image. This must be derived to an application specific compiler that can scan directories and invoke the compiler as needed.
|
|
|
Destruct the ScriptImage itself by removing linked objects.
|
|
|
Add a registration record to the compiled script.
|
|
||||||||||||
|
Add an advertised route in a priority slot.
|
|
|
Add a select record to the currently compiled script.
|
|
|
Used in the derived constructor to "commit" the current image for new processes. This is usually the last statement in the derived constructor. Reimplemented in ost::ScriptCompiler. |
|
|
dec the reference count.
|
|
|
Fast branch linkback code.
Reimplemented in ost::ScriptCompiler. |
|
||||||||||||||||
|
Fetch list of relational scripts.
|
|
|
Get the active image from command. Useful when compiling.
|
|
|
Get the command object associated with the image.
|
|
|
Get current entity being compiled. ..
|
|
|
Get the interpreter method pointer for a given keyword.
|
|
|
Get the session instance of the image.
|
|
|
Get memory for assoc data. ..
Implements ost::Assoc. |
|
|
Get the registration list from the image.
|
|
|
Get a registration record to use.
|
|
|
Get an advertised priority record from the image.
|
|
|
Fetch named script.
|
|
|
Get the selection list from the image.
|
|
|
inc the reference count.
|
|
||||||||||||||||
|
Used to load a single initialization list entry.
|
|
|
See if the image is referenced. ..
|
|
|
Get the ripple flag for the current image.
|
|
|
Used by a derived constructor to load an initialization list.
|
|
|
Purge and reload the script image workspace.
Reimplemented from ost::MemPager. |
|
|
Reimplemented in ost::ScriptCompiler. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.6