class ScriptImage

Script compiler image set. More...

Definition#include <../../extras/script/script.h>
InheritsMemPager
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Protected Members


Detailed Description

A derivable class to hold compiled script images for active processes. 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.

ScriptImage (ScriptCommand *cmdset)
[protected]

Construct a new working image. This must be derived to an application specific compiler that can scan directories and invoke the compiler as needed.

Parameters:
cmdsetof keyword table object used.

int Compile (const char *scrfile)
[protected]

The script compiler itself. This linearly compiles a Bayonne script file that is specified. Normally used along with a dir scanner in the constructor.

Parameters:
nameof script file to compile.

Returns: lines of script compiled.

void Commit (void)
[protected]

Used in the derived constructor to "commit" the current image for new processes. This is usually the last statement in the derived constructor.

scriptname_t * getScript (const char *name)
[protected]

Fetch named script.

Parameters:
scriptname to find.

Returns: script or NULL.