VICI  0.11.815
Visual Chart Interpreter
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
VICI::Interp::InterpreterClient Class Referenceabstract

The interface that must be implemented by clients of the interpreter. More...

#include <vici/vici.h>

Inheritance diagram for VICI::Interp::InterpreterClient:
VICI::Canvas::Canvas VICI::Vici VICI::stub::CanvasStub VICI::stub::ViciStub

Public Member Functions

virtual ~InterpreterClient ()
 virtual destructor
 
virtual void setValue (csr varName, csr value)=0
 this gets called when a script variable has a change of value More...
 
virtual void setFile (int state, csr filename)=0
 this gets called when a monitored file changes state. More...
 
virtual void setCursor (ThreadId tid, NodeId node)=0
 this gets called as the shell steps through the script More...
 
virtual void breakReached (ThreadId tid, NodeId node)=0
 this gets called when a break point is reached More...
 
virtual void dataReady (NodeId node)=0
 this gets called when data is available on a display More...
 
virtual void reportError (Severity sev, csr msg)=0
 This gets called if an error is detected. More...
 
virtual void done ()=0
 this gets called when the script completes
 

Detailed Description

The interface that must be implemented by clients of the interpreter.

The clients of the interpreter are responsible for showing the activity during debugging and for displaying the output streams. By implementing this interface and registering with the interpreter they will notified accordingly.

Member Function Documentation

virtual void VICI::Interp::InterpreterClient::breakReached ( ThreadId  tid,
NodeId  node 
)
pure virtual

this gets called when a break point is reached

Parameters
tidthe thread which reached the breakpoint
nodethe location of the breakpoint

Implemented in VICI::stub::ViciStub, and VICI::stub::CanvasStub.

virtual void VICI::Interp::InterpreterClient::dataReady ( NodeId  node)
pure virtual

this gets called when data is available on a display

Parameters
nodethe node of the display object in the flowchart

Implemented in VICI::stub::ViciStub, and VICI::stub::CanvasStub.

virtual void VICI::Interp::InterpreterClient::reportError ( Severity  sev,
csr  msg 
)
pure virtual

This gets called if an error is detected.

Parameters
msgThe text of the error message.
sevThe severity of the error

Implemented in VICI::stub::ViciStub, and VICI::stub::CanvasStub.

virtual void VICI::Interp::InterpreterClient::setCursor ( ThreadId  tid,
NodeId  node 
)
pure virtual

this gets called as the shell steps through the script

Parameters
tidthe thread which changed to executing this node
nodethe node that is currently being executed

Implemented in VICI::stub::ViciStub, and VICI::stub::CanvasStub.

virtual void VICI::Interp::InterpreterClient::setFile ( int  state,
csr  filename 
)
pure virtual

this gets called when a monitored file changes state.

Parameters
statethis needs to be defined
filenamethe name of the file that changed

Implemented in VICI::stub::ViciStub, and VICI::stub::CanvasStub.

virtual void VICI::Interp::InterpreterClient::setValue ( csr  varName,
csr  value 
)
pure virtual

this gets called when a script variable has a change of value

Parameters
varNamethe name of the variable that changed value
valuethe new value of the variable

Implemented in VICI::stub::ViciStub, and VICI::stub::CanvasStub.


The documentation for this class was generated from the following file: