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

OmniEvents::Orb Class Reference

Singleton class that owns the ORB and various initial references. More...

#include <Orb.h>

Collaboration diagram for OmniEvents::Orb:

Collaboration graph
[legend]
List of all members.

Public Methods

void init (int argc, char **argv)
void run ()
 Parks the main thread, but also picks up (and ignores) responses from orphan requests. More...

void orphanRequest (CORBA::Request *req)
 Adopts the request and then stores it in _orphans. More...


Static Public Methods

Orb & inst ()

Public Attributes

CORBA::ORB_var _orb
PortableServer::POA_var _RootPOA
PortableServer::POA_var _omniINSPOA
PortableServer::Current_ptr _POACurrent
CosNaming::NamingContext_var _NameService

Private Attributes

list< CORBA::Request_var > _orphans

Static Private Attributes

Orb _inst

Detailed Description

Singleton class that owns the ORB and various initial references.

Definition at line 41 of file Orb.h.


Member Function Documentation

void OmniEvents::Orb::init int    argc,
char **    argv
 

Definition at line 40 of file Orb.cc.

References _NameService, _omniINSPOA, _orb, _POACurrent, and _RootPOA.

Orb& OmniEvents::Orb::inst   [inline, static]
 

Definition at line 48 of file Orb.h.

void OmniEvents::Orb::orphanRequest CORBA::Request *    req
 

Adopts the request and then stores it in _orphans.

run() later picks up and ignores the responses. This is a tidier alternative to just calling req->send_oneway() - the ORB can get confused by unexpected responses if we call twoway operations as oneway.

Definition at line 107 of file Orb.cc.

References _orphans.

void OmniEvents::Orb::run  
 

Parks the main thread, but also picks up (and ignores) responses from orphan requests.

Definition at line 80 of file Orb.cc.

References _orphans, and DB.


Member Data Documentation

Orb OmniEvents::Orb::_inst [static, private]
 

Definition at line 38 of file Orb.cc.

CosNaming::NamingContext_var OmniEvents::Orb::_NameService
 

Definition at line 57 of file Orb.h.

Referenced by init().

PortableServer::POA_var OmniEvents::Orb::_omniINSPOA
 

Definition at line 55 of file Orb.h.

Referenced by init().

CORBA::ORB_var OmniEvents::Orb::_orb
 

Definition at line 53 of file Orb.h.

Referenced by init().

list<CORBA::Request_var> OmniEvents::Orb::_orphans [private]
 

Definition at line 45 of file Orb.h.

Referenced by orphanRequest(), and run().

PortableServer::Current_ptr OmniEvents::Orb::_POACurrent
 

Definition at line 56 of file Orb.h.

Referenced by init().

PortableServer::POA_var OmniEvents::Orb::_RootPOA
 

Definition at line 54 of file Orb.h.

Referenced by init().


The documentation for this class was generated from the following files:
Generated on Fri Dec 12 10:53:14 2003 for OmniEvents by doxygen1.2.15