#include <Activity.h>
Inheritance diagram for CODEX_Events::Activity:

Public Member Functions | |
| Activity (DeadPileType &deadPile, QType &eventQueue) | |
| virtual | ~Activity () |
| Virtual destructor. | |
| virtual bool | handler (EventAck &event) |
| The base class is responsible for handling acknowledgements, which are relevant to whether the Activity is ready for deletion. | |
Protected Member Functions | |
| void | sendEvent (EventBase *event, Activity *source, bool failure=false) |
| void | enableTerminate () |
| This method should be called when an Activity has received a CloseEvent or other indicator that it is no longer needed. | |
Protected Attributes | |
| DeadPileType & | m_deadPile |
| The pile of Activity%s to be garbage-collected. | |
| QType & | m_queue |
| The event queue. | |
This class provides basic event-handling functionality and bookkeeping for automated clean-up. Every type of event should have an accompanying abstract class inheriting Activity as a virtual base. Specific event-handling classes then inherit these abstract classes, permitting the various types of events to ensure at compilation time that they have appropriate destinations.
It is important that Activity%s are created using new if automatic deletion via a dead pile is used. Only scheduling, not the actual deletion, is handled here.
Definition at line 55 of file Activity.h.
|
||||||||||||
|
Definition at line 25 of file Activity.cc. |
|
|
This method should be called when an Activity has received a CloseEvent or other indicator that it is no longer needed. Actual termination will not occur until there are no remaining events outstanding (unacknowledged). Definition at line 63 of file Activity.cc. Referenced by CODEX_KeyService::ClientActivity::handler(), and CODEX_KeyService::ClientActivity::processRequest(). |
|
|
The base class is responsible for handling acknowledgements, which are relevant to whether the Activity is ready for deletion. If a derived class reimpliments this method, it must call this version explicitly. Definition at line 39 of file Activity.cc. Referenced by CODEX_Events::EventAck::handle(), and CODEX_KeyService::ClientActivity::handler(). |
|
||||||||||||||||
1.4.1