|
Back to Table of contents |
General information |
type: abstract
synonym: TReceiver<const GlowTimerMessage&>
module: glowGlowTimerReceiver is the base class of receivers of timer events. Subclasses should override the OnMessage() method to handle an timer event.
Some GLOW programs may make use of timer events. These include programs that perform periodic processing in the background.
Types |
Types
typedef const GlowTimerMessage& MessageType
A synonym for the type of message.
Methods |
Destructor
~GlowTimerReceiver(void)
Automatically informs GLOW that this receiver is going away.Information on senders
A receiver can provide rudimentary information on which senders are bound to it.unsigned int NumSenders(void)
Returns the number of senders bound to this receiver. Should be equal to the number of times this receiver has a timer event pending.unsigned int NumTrackers(void)
Returns the number of trackers bound to this receiver.
Overrideable methods |
Receiving messages
virtual void OnMessage(const GlowTimerMessage& message) = 0
This is a pure virtual method that must be overridden by a subclass. It is called whenever the receiver receives a timer event notification.
|
Back to Table of contents |
The GLOW Toolkit