code::EventCallback Class Reference

Inheritance diagram for code::EventCallback:

code::ActionListenerAdapter code::SQLEventHandler::SQLEventCallback List of all members.

Detailed Description

This is the abstract base class of all the inter-process event callbacks in the CODE/WDSSII system.

To use interprocess communication, make a subclass of EventCallback and implement the actionPerformed() function. The actionPerformedOnError function is recommended, but not required.

The callbacks need not be re-entrant.

Author:
: Lakshman
See also:
EventHandler
Version:
:
Id
code_EventHandler.h,v 1.20 2009/07/06 19:00:22 lakshman Exp


Public Member Functions

virtual void actionPerformed (const Buffer &msg)=0
 This is the function that will be invoked when the event happens.
virtual void actionPerformedOnError ()
 This is the function that will be invoked when there is a system error making event notification not possible, either for the particular event requested or for all events.
virtual ~EventCallback ()
 Meant to be subclassed.


Constructor & Destructor Documentation

virtual code::EventCallback::~EventCallback (  )  [inline, virtual]

Meant to be subclassed.


Member Function Documentation

virtual void code::EventCallback::actionPerformed ( const Buffer msg  )  [pure virtual]

This is the function that will be invoked when the event happens.

Passed in to you is the message that was posted.

Additional arguments may be simply obtained by adding the appropriate arguments to your EventCallback subclass. (See for example, the more rounded LBEventCallback, which gives you access to the LB name used for update notification).

Implemented in code::SQLEventHandler::SQLEventCallback, and code::ActionListenerAdapter.

virtual void code::EventCallback::actionPerformedOnError (  )  [inline, virtual]

This is the function that will be invoked when there is a system error making event notification not possible, either for the particular event requested or for all events.

Additional arguments may be simply obtained by adding the appropriate arguments to your EventCallback subclass. (See for example, the more rounded LBEventCallback, which gives you access to the LB name used for update notification).


Generated on Fri May 4 13:40:13 2012 for WDSS-IIw2 by  doxygen 1.4.7