VICI
0.11.815
Visual Chart Interpreter
|
The API for interpreter library. More...
#include <vici/vici.h>
Public Member Functions | |
virtual | ~Interpreter () |
virtual destructor | |
virtual void | addClient (InterpreterClient *)=0 |
add a client for notifications | |
virtual void | setScript (csr filename)=0 |
the XML VICI script to execute | |
virtual void | setArgs (VICI::ArgList args)=0 |
set the program options | |
virtual void | debugMode (bool mode)=0 |
enable debug mode More... | |
virtual int | openDisplay (NodeId node)=0 |
open a Display object for reading More... | |
virtual void | dataAck (NodeId node)=0 |
call this after responding to InterpreterClient::dataReady() to wait for the next set of data. More... | |
virtual void | setValue (csr varName, csr value)=0 |
this is called when a variable has its value changed by the user More... | |
virtual void | setPosn (ThreadId tid, NodeId node)=0 |
call this to set the point where execution resumes More... | |
virtual void | setBreak (NodeId node, bool set)=0 |
call this to mark a node as a break point More... | |
virtual void | setInterval (double secs)=0 |
set the time interval between executing commands More... | |
virtual void | saveSnapshot (csr filename)=0 |
save a snapshot file More... | |
virtual void | loadSnapshot (csr filename)=0 |
restore a snapshot file More... | |
virtual void | run ()=0 |
start running the script | |
virtual void | run (csr functionName)=0 |
start running the script at a specified function More... | |
virtual void | pause ()=0 |
pause the script | |
virtual void | step (ThreadId tid)=0 |
virtual void | resume ()=0 |
resume a paused script | |
virtual void | kill ()=0 |
stop the script | |
virtual int | result ()=0 |
get the exit code | |
Static Public Attributes | |
static const NodeId | OutDisplay = -1 |
the node id of the default output display | |
static const NodeId | ErrDisplay = -2 |
the node id of the default error display | |
The API for interpreter library.
This is the facade for the interpreter library, libvici.
It provides an interface that lets the user control the operation of the interpreter.
|
pure virtual |
call this after responding to InterpreterClient::dataReady() to wait for the next set of data.
node | the node id of the display that is being acknowledged. |
Implemented in VICI::stub::InterpreterStub.
|
pure virtual |
enable debug mode
turning this on causes events to be generated at each step of the processing.
mode | set this true to enable debugging mode |
Implemented in VICI::stub::InterpreterStub.
|
pure virtual |
restore a snapshot file
filename | the name of the file to load the state from |
Implemented in VICI::stub::InterpreterStub.
|
pure virtual |
open a Display object for reading
the InterpreterClient::dataReady() will be called when the file descriptor has data to be read.
node | the display object to open |
Implemented in VICI::stub::InterpreterStub.
|
pure virtual |
start running the script at a specified function
functionName | the function to start |
Implemented in VICI::stub::InterpreterStub.
|
pure virtual |
save a snapshot file
filename | the name of the file to save the interpreter state to |
Implemented in VICI::stub::InterpreterStub.
|
pure virtual |
call this to mark a node as a break point
node | The node to break execution on when reached |
set | True to set the breakpoint and false to clear it. |
Implemented in VICI::stub::InterpreterStub.
|
pure virtual |
set the time interval between executing commands
secs | the interval to wait between executing commands |
Implemented in VICI::stub::InterpreterStub.
call this to set the point where execution resumes
tid | the execution thread to be repositioned |
node | the place to resume execution |
Implemented in VICI::stub::InterpreterStub.
this is called when a variable has its value changed by the user
varName | the variable being changed |
value | the new value to assign to the variable |
Implemented in VICI::stub::InterpreterStub.
|
pure virtual |
tid | the thread to execute one command from |
Implemented in VICI::stub::InterpreterStub.