#include <acsncORBHelper.h>
Collaboration diagram for nc::ORBHelper:
Public Member Functions | |
ORBHelper () | |
ORBHelper (int argc, char *argv[]) | |
virtual | ~ORBHelper () |
CORBA::ORB_ptr | getORB () const |
void | runOrb () |
Private Member Functions | |
void | init_ORB () |
void | init_ORB (int argc, char *argv[]) |
void | operator= (const ORBHelper &) |
ORBHelper (const ORBHelper &) | |
Static Private Member Functions | |
void * | runOrbThread (void *pThis) |
Private Attributes | |
CORBA::ORB_ptr | orb_mp |
baci::BACIThreadManager * | threadManager_mp |
TODO:
|
Default Constructor This constructor uses default parameters (NameService and NotifyFactory dynamically generated using the hostname). Should be used only when this object will be instantiated on the same host as manager. |
|
Constructor This constructor assumes all parameters needed by the ORB are passed directly in argc and argv. This constructor is much more powerful than the default and should normally be used. A sample usage would be: argc=4 argv={"", "-ORBInitRef NameService=corbaloc::hostname:xxxx/NameService", "-ORBDottedDecimalAddresses=1", "-ORBInitRef NotifyEventChannelFactory=corbaloc::hostname:xxxx/NotifyEventChannelFactory"}; |
|
Destructor Destroys orb_mp. |
|
ALMA C++ coding standards state copy constructors should be disabled. |
|
getORB() This method merely returns the ORB.
|
|
Called by ORBHelper(int argc, char *argv[]) It also initializes CORBA references, gets POA & POA manager, activates POA mgr.
|
|
Called by ORBHelper() It also initializes CORBA references, gets POA & POA manager, activates POA mgr.
|
|
ALMA C++ coding standards state assignment operators should be disabled. |
|
Runs the orb in a separate thread. This has to be called manually!
|
|
Run the orb in a BACI thread because orb_mp->run() is a blocking call. Called by runOrb.
|
|
The orb created by this class |
|
Used to spawn a thread for running orb_mp. |