VICI
0.11.815
Visual Chart Interpreter
|
Send events to registered objects. More...
#include <vici/libifstubs.h>
Public Member Functions | |
void | registerEvent (csr useCase, csr event, Event *fn) |
Register a method to be called. More... | |
void | sendEvent (csr useCase, csr event) |
Make a registered call. More... | |
void | clearTrace () |
Clear the trace data. | |
void | enableTracing (bool x) |
Enable tracing. More... | |
void | trace (csr x) |
Record a trace message. More... | |
std::vector< std::string > & | getTrace () |
Get the current trace data. More... | |
Static Public Member Functions | |
static Dispatcher & | instance () |
Get an instance of the singleton object. More... | |
Send events to registered objects.
The Dispatcher enables us to make method calls on objects using strings to identify them, thus separating the caller from any dependency on the callee.
The Dispatcher also collects trace information so that the test harness can verify the correct sequence of method calls.
|
inline |
Enable tracing.
x | Set to true to enable tracing. |
|
inline |
Get the current trace data.
|
static |
Get an instance of the singleton object.
Register a method to be called.
useCase | The name of the use case. |
event | The name of the event within the use case. |
fn | The function to call. |
Make a registered call.
useCase | The name of the use case. |
event | the name of the event within the use case. |
|
inline |
Record a trace message.
x | The message to record. |