#include <script.h>
Inheritance diagram for ScriptImage:
Public Methods | |
virtual scriptname_t* | getScript (const char *name) |
Fetch named script. More... | |
virtual scriptname_t* | dupScript (const char *name, const char *target) |
Duplicate script if needed. More... | |
unsigned | Gather (const char *suffix, scriptname_t **array, unsigned size) |
Fetch list of relational scripts. More... | |
std::istream* | getSource (void) |
Used by embedded interpreters to fetch script from the current source file. More... | |
Protected Methods | |
char* | getToken (void) |
scriptmethod_t | getHandler (const char *keyword) |
Get the interpreter method pointer for a given keyword. More... | |
ScriptImage (ScriptCommand *cmdset) | |
Construct a new working image. More... | |
void | Purge (void) |
Purge and reload the script image workspace. | |
scriptname_t* | Include (const char *scrfile) |
A method to invoke the script compiler to include a script only if it has not been included already. More... | |
int | Compile (const char *scrfile) |
The script compiler itself. More... | |
int | Compile (const char *scrfile, char *name) |
Compile a script from disk and give it a different internal "name" as passed. More... | |
int | Compile (std::istream *str, char *name, const char *scrname=NULL) |
Compile an open stream object into a script. More... | |
void | Commit (void) |
Used in the derived constructor to "commit" the current image for new processes. More... | |
Protected Attributes | |
std::ifstream | scrSource |
std::istream* | scrStream |
ScriptCommand* | cmds |
int | refcount |
scriptname_t* | index [SCRIPT_INDEX_SIZE] |
char | buffer [512] |
char* | bp |
bool | quote |
Mutex | duplock |
Friends | |
class | ScriptInterp |
class | ScriptModule |
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.
|
|
Used in the derived constructor to "commit" the current image for new processes. This is usually the last statement in the derived constructor. |
|
Compile an open stream object into a script.
|
|
Compile a script from disk and give it a different internal "name" as passed.
|
|
The script compiler itself. This linearly compiles a Bayonne script file that is specified. Normally used along with a dir scanner in the constructor.
|
|
Fetch list of relational scripts.
|
|
A method to invoke the script compiler to include a script only if it has not been included already.
|
|
Purge and reload the script image workspace.
|
|
Duplicate script if needed.
|
|
Get the interpreter method pointer for a given keyword.
|
|
Fetch named script.
|
|
Used by embedded interpreters to fetch script from the current source file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|