NAME

OTC_EVAgent - Base class for objects capable of receiving events.

SYNOPSIS


#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;
};

CLASS TYPE

Abstract

DESCRIPTION

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.

DESTRUCTION

virtual ~OTC_EVAgent();

IDENTIFICATION

inline int id() const;

LOOKUP

static OTC_EVAgent* lookup(int theAgentId);

INITIALISATION

OTC_EVAgent();

EVENT CALLBACK

virtual void handle(OTC_Event* theEvent) = 0;

SEE ALSO

OTC_Event, OTC_Dispatcher

LIBRARY

OTC

AUTHOR(S)

Graham Dumpleton

COPYRIGHT

Copyright 1993 OTC LIMITED
Copyright 1994 DUMPLETON SOFTWARE CONSULTING PTY LIMITED