Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes

BACI_CORBA Class Reference

#include <baciCORBA.h>

Collaboration diagram for BACI_CORBA:
Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static BACI_CORBAgetInstance ()
static BACI_CORBAcreateInstance (CORBA::ORB_ptr orb_m, PortableServer::POAManager_ptr poaManager, PortableServer::POA_ptr poaRoot_m, PortableServer::POA_ptr poaPersistent_m, PortableServer::POA_ptr poaTransient_m)
static void destroyInstance ()
static CORBA::ORB_ptr getORB ()
static
PortableServer::POAManager_ptr 
getPOAManager ()
static PortableServer::POA_ptr getPOARoot ()
static PortableServer::POA_ptr getPOA ()
static CORBA::Object_ptr ActivateCORBAObject (PortableServer::Servant srvnt, const ACE_CString &id)
static CORBA::Object_ptr ActivateCORBAObject (PortableServer::Servant srvnt, const char *id)
template<class T >
static T * ActivateTransientCORBAObject (PortableServer::Servant servant)
static bool DestroyCORBAObject (CORBA::Object_ptr obj)
static bool DestroyCORBAObject (PortableServer::Servant srvnt)
static bool DestroyTransientCORBAObject (CORBA::Object_ptr obj)
static bool DestroyTransientCORBAObject (PortableServer::Servant srvnt)
static bool InitCORBA (int argc, char *argv[])
static bool DoneCORBA ()

Protected Member Functions

 BACI_CORBA (CORBA::ORB_ptr orb_m, PortableServer::POAManager_ptr poaManager, PortableServer::POA_ptr poaRoot_m, PortableServer::POA_ptr poaPersistent_m, PortableServer::POA_ptr poaTransient_m)
 ~BACI_CORBA ()
 Destructor.

Private Member Functions

void operator= (const BACI_CORBA &)
 BACI_CORBA (const BACI_CORBA &)

Private Attributes

PortableServer::POAManager_var poaManager_m
PortableServer::POA_var poaRoot_m
PortableServer::POA_var poaPersistent_m
PortableServer::POA_var poaTransient_m
CORBA::ORB_var orb_m

Static Private Attributes

static BACI_CORBAinstance_mp

Detailed Description

Class providing CORBA access to BACI (Singleton pattern)

Author:
Matej Sekoranja, Jozef Stefan Institute, Slovenia

Constructor & Destructor Documentation

BACI_CORBA::BACI_CORBA ( CORBA::ORB_ptr  orb_m,
PortableServer::POAManager_ptr  poaManager,
PortableServer::POA_ptr  poaRoot_m,
PortableServer::POA_ptr  poaPersistent_m,
PortableServer::POA_ptr  poaTransient_m 
) [protected]

Contructor

Parameters:
orb_m 
poaRoot_m 
poaPersistent_m 
BACI_CORBA::~BACI_CORBA (  )  [protected]

Destructor.

BACI_CORBA::BACI_CORBA ( const BACI_CORBA  )  [private]

ALMA C++ coding standards state copy constructors should be disabled.


Member Function Documentation

static CORBA::Object_ptr BACI_CORBA::ActivateCORBAObject ( PortableServer::Servant  srvnt,
const ACE_CString &  id 
) [static]

Activate servant with name (id)

Returns:
true on success, false on failure
static CORBA::Object_ptr BACI_CORBA::ActivateCORBAObject ( PortableServer::Servant  srvnt,
const char *  id 
) [static]
template<class T >
static T* BACI_CORBA::ActivateTransientCORBAObject ( PortableServer::Servant  servant  )  [inline, static]

Activates a transient CORBA object.

Returns:
Refererence to the narrowed CORBA object
static BACI_CORBA* BACI_CORBA::createInstance ( CORBA::ORB_ptr  orb_m,
PortableServer::POAManager_ptr  poaManager,
PortableServer::POA_ptr  poaRoot_m,
PortableServer::POA_ptr  poaPersistent_m,
PortableServer::POA_ptr  poaTransient_m 
) [static]

Create instance of BACI_CORBA class

Parameters:
orb_m 
poaRoot_m 
poaPersistent_m 
Returns:
reference to BACI_CORBA class, 0 if failed
static bool BACI_CORBA::DestroyCORBAObject ( CORBA::Object_ptr  obj  )  [static]

Destroy (deactivate) CORBA object

Returns:
true on success, false on failure
static bool BACI_CORBA::DestroyCORBAObject ( PortableServer::Servant  srvnt  )  [static]

Destroy (deactivate) servant

Returns:
true on success, false on failure
static void BACI_CORBA::destroyInstance (  )  [static]

Destroys instance of BACI_CORBA class

static bool BACI_CORBA::DestroyTransientCORBAObject ( CORBA::Object_ptr  obj  )  [static]

Destroy (deactivate) Transient CORBA object

Returns:
true on success, false on failure
static bool BACI_CORBA::DestroyTransientCORBAObject ( PortableServer::Servant  srvnt  )  [static]

Destroy (deactivate) servant

Returns:
true on success, false on failure
static bool BACI_CORBA::DoneCORBA (  )  [static]

Finalize CORBA

Returns:
true on succes, false on failure
static BACI_CORBA* BACI_CORBA::getInstance (  )  [static]

Get instance of BACI_CORBA class

Returns:
reference to BACI_CORBA class
static CORBA::ORB_ptr BACI_CORBA::getORB (  )  [static]

Get ORB

Returns:
reference to ORB
static PortableServer::POA_ptr BACI_CORBA::getPOA (  )  [static]

Get POA

Returns:
reference to POA
static PortableServer::POAManager_ptr BACI_CORBA::getPOAManager (  )  [static]

Get POA Manager

Returns:
reference to POA manager
static PortableServer::POA_ptr BACI_CORBA::getPOARoot (  )  [static]

Get root POA

Returns:
reference to POARoot
static bool BACI_CORBA::InitCORBA ( int  argc,
char *  argv[] 
) [static]

Initialize CORBA

Parameters:
argc argument count
argv string array of arguments
Returns:
true on succes, false on failure
void BACI_CORBA::operator= ( const BACI_CORBA  )  [private]

ALMA C++ coding standards state assignment operators should be disabled.


Member Data Documentation

BACI_CORBA* BACI_CORBA::instance_mp [static, private]
CORBA::ORB_var BACI_CORBA::orb_m [private]
PortableServer::POAManager_var BACI_CORBA::poaManager_m [private]
PortableServer::POA_var BACI_CORBA::poaPersistent_m [private]
PortableServer::POA_var BACI_CORBA::poaRoot_m [private]
PortableServer::POA_var BACI_CORBA::poaTransient_m [private]

The documentation for this class was generated from the following file: