#include <OTC/dispatch/evagent.hh> class OTC_EVAgent {
public:
virtual ~OTC_EVAgent();
inline int id() const;
static OTC_EVAgent* lookup(int theAgentId);
protected:
OTC_EVAgent();
virtual void handle(OTC_Event* theEvent) = 0;
};
OTC_EVAgent
is a base class for any active object capable of
receiving events. In essence this class represent a thread
of control within a process.
virtual ~OTC_EVAgent();
inline int id() const;
static OTC_EVAgent* lookup(int theAgentId);
theAgentId
. If
found, a pointer to that agent is
returned, otherwise 0
is returned.
OTC_EVAgent();
virtual void handle(OTC_Event* theEvent) = 0;
theEvent
.
OTC_Event
, OTC_Dispatcher