#include <script.h>
Inheritance diagram for ScriptImage:
Public Methods | |
ifstream& | getSource (void) |
Used by embedded interpreters to fetch script from the current source file. More... | |
Protected Methods | |
char* | getToken (void) |
ScriptImage (ScriptCommand *cmdset) | |
Construct a new working image. More... | |
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... | |
void | Commit (void) |
Used in the derived constructor to "commit" the current image for new processes. More... | |
virtual scriptname_t* | getScript (const char *name) |
Fetch named script. More... | |
Protected Attributes | |
ifstream | scrFile |
ScriptCommand* | cmds |
int | refcount |
scriptname_t* | index [SCRIPT_INDEX_SIZE] |
char | buffer [512] |
char* | bp |
bool | quote |
Friends | |
class | ScriptInterp |
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 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.
|
|
A method to invoke the script compiler to include a script only if it has not been included already.
|
|
Fetch named script. Made virtual so that it could have a a overriden version which externally fetches scripts not already compiled, for example.
|
|
Used by embedded interpreters to fetch script from the current source file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|