OmniEvents::Callback Class Reference

Interface for classes that wish to receive callbacks from deferred requests. More...

#include <Callback.h>

Inheritance diagram for OmniEvents::Callback:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual void callback (CORBA::Request_ptr req)=0
 Invoked when the CORBA::Request has returned.
 Callback ()
bool isValid () const
virtual ~Callback ()

Private Attributes

long _magic

Static Private Attributes

static const long _goodMagic = 0xCa11ab1e
 This value is only set equal to _goodMagic while the object is alive.

Detailed Description

Interface for classes that wish to receive callbacks from deferred requests.

Implementations must override the callback() method. Only call callback() if you FIRST call isValid() and it returns TRUE.

Definition at line 45 of file Callback.h.


Constructor & Destructor Documentation

OmniEvents::Callback::Callback  )  [inline]
 

Definition at line 53 of file Callback.h.

OmniEvents::Callback::~Callback  )  [virtual]
 

Definition at line 257 of file Orb.cc.

References _magic, OmniEvents::Orb::cancelCallback(), and OmniEvents::Orb::inst().


Member Function Documentation

virtual void OmniEvents::Callback::callback CORBA::Request_ptr  req  )  [pure virtual]
 

Invoked when the CORBA::Request has returned.

This method is never invoked when req has returned an exception.

Implemented in OmniEvents::ProxyPushConsumer_i::Connection, and OmniEvents::ProxyPushSupplier_i.

bool OmniEvents::Callback::isValid  )  const [inline]
 

Definition at line 55 of file Callback.h.

References _goodMagic, and _magic.


Member Data Documentation

const long OmniEvents::Callback::_goodMagic = 0xCa11ab1e [static, private]
 

This value is only set equal to _goodMagic while the object is alive.

Once the destructor has been called, any call to isValid() will return FALSE.

Definition at line 65 of file Callback.h.

Referenced by isValid().

long OmniEvents::Callback::_magic [private]
 

Definition at line 60 of file Callback.h.

Referenced by isValid(), and ~Callback().


The documentation for this class was generated from the following files:
Generated on Mon Jan 9 03:53:00 2006 for OmniEvents by  doxygen 1.4.6