Marsyas
0.6.0-alpha
|
Expression Event evaluates the supplied expression when prompted by the scheduler. More...
#include <EvExpr.h>
Inherits EvEvent.
Public Member Functions | |
virtual EvExpr * | clone () |
clone this event and all its parameters. This method must be implemented so that scheduled events may be copied. | |
void | dispatch () |
the action to be performed by the event. This method is called when the event is due. Since Marsyas is not threaded, this method will block so be careful not to do too much. | |
EvExpr (MarSystem *target, std::string e, std::string nm="Expr") | |
EvExpr (MarSystem *target, Ex e, Rp r, std::string nm="Expr") | |
EvExpr (MarSystem *target, ExFile ef, std::string nm="Expr") | |
Expr * | getExpression () |
virtual bool | repeat () |
report if the event is to be repeated | |
virtual std::string | repeat_interval () |
virtual void | set_repeat (Repeat r) |
void | setTimer (TmTimer *t) |
set the timer on which this event is scheduled. This method is called by the timer's post method when the scheduled event is posted on the timer. | |
void | updctrl (std::string cname, TmControlValue value) |
update event parameters dynamically. Parameters of the event may be updated while the event is on the heap. The support for modifiable parameters is dependent on the implementation of concrete events. Unsupported parameter updates should generate warnings. | |
virtual | ~EvExpr () |
Friends | |
std::ostream & | operator<< (std::ostream &, EvEvent &) |
std::istream & | operator>> (std::istream &, EvEvent &) |
Expression Event evaluates the supplied expression when prompted by the scheduler.
Definition at line 26 of file EvExpr.cpp.
Definition at line 31 of file EvExpr.cpp.
Definition at line 36 of file EvExpr.cpp.
~EvExpr | ( | ) | [virtual] |
Definition at line 41 of file EvExpr.cpp.
clone this event and all its parameters. This method must be implemented so that scheduled events may be copied.
Implements EvEvent.
Definition at line 69 of file EvExpr.cpp.
void dispatch | ( | ) | [virtual] |
the action to be performed by the event. This method is called when the event is due. Since Marsyas is not threaded, this method will block so be careful not to do too much.
Implements EvEvent.
Definition at line 63 of file EvExpr.cpp.
Expr* getExpression | ( | ) | [inline] |
bool repeat | ( | ) | [virtual] |
report if the event is to be repeated
Reimplemented from EvEvent.
Definition at line 75 of file EvExpr.cpp.
std::string repeat_interval | ( | ) | [virtual] |
Definition at line 81 of file EvExpr.cpp.
virtual void set_repeat | ( | Repeat | r | ) | [inline, virtual] |
set the timer on which this event is scheduled. This method is called by the timer's post method when the scheduled event is posted on the timer.
t | the timer on which this event is posted. |
Reimplemented from EvEvent.
Definition at line 47 of file EvExpr.cpp.
void updctrl | ( | std::string | cname, |
TmControlValue | value | ||
) | [virtual] |
update event parameters dynamically. Parameters of the event may be updated while the event is on the heap. The support for modifiable parameters is dependent on the implementation of concrete events. Unsupported parameter updates should generate warnings.
cname | the path name of the parameter to be modified. |
value | the value to be assigned |
Reimplemented from EvEvent.
Definition at line 88 of file EvExpr.cpp.