Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

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 Methods

virtual void callback (CORBA::Request_ptr req)=0
 Invoked when the CORBA::Request has returned. More...

 Callback ()
bool isValid () const
virtual ~Callback ()

Private Attributes

long _magic

Static Private Attributes

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


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.

References _goodMagic, and _magic.

OmniEvents::Callback::~Callback   [virtual]
 

Definition at line 246 of file Orb.cc.

References _magic.


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 244 of file Orb.cc.

Referenced by Callback(), and isValid().

long OmniEvents::Callback::_magic [private]
 

Definition at line 60 of file Callback.h.

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


The documentation for this class was generated from the following files:
Generated on Fri Nov 19 17:42:31 2004 for OmniEvents by doxygen1.2.15