#include <core.h>
Public Types | |
Ior | |
Corbaloc | |
enum | ObjectRefType { Ior, Corbaloc } |
Static Public Member Functions | |
static void | init (int &argc, char **argv) throw (daq::ipc::AlreadyInitialized, daq::ipc::CannotInitialize) |
static void | init (const std::list< std::pair< std::string, std::string > > &options) throw (daq::ipc::AlreadyInitialized, daq::ipc::CannotInitialize) |
static std::list< std::pair< std::string, std::string > > | extractOptions (int &argc, char **argv) throw (daq::ipc::UnknownOption, daq::ipc::BadOptionValue) |
static void | shutdown () throw (daq::ipc::NotInitialized,daq::ipc::CorbaException) |
static bool | isInitialised () throw () |
static CORBA::ORB_var | getORB () throw (daq::ipc::NotInitialized) |
static PortableServer::POA_var | getRootPOA () throw (daq::ipc::NotInitialized) |
static std::string | objectToString (CORBA::Object_ptr obj, ObjectRefType type=Ior) throw (daq::ipc::NotInitialized,daq::ipc::CorbaException) |
static CORBA::Object_ptr | stringToObject (const std::string &ref) throw (daq::ipc::NotInitialized,daq::ipc::CorbaException) |
list< pair< string, string > > IPCCore::extractOptions | ( | int & | argc, | |
char ** | argv | |||
) | throw (daq::ipc::UnknownOption, daq::ipc::BadOptionValue) [static] |
This function removes CORBA specific arguments from the given array and put them to the std::list container.
argc | number of command line arguments | |
argv | an array which contains command line arguments |
daq::ipc::UnknownOption | ||
daq::ipc::BadOptionValue |
void IPCCore::init | ( | const std::list< std::pair< std::string, std::string > > & | opt | ) | throw (daq::ipc::AlreadyInitialized, daq::ipc::CannotInitialize) [static] |
This function initializes CORBA broker. It must be called at least once by any application which is using IPC before it tries to utilise any IPC function.
opt | list of CORBA specific parameters |
void IPCCore::init | ( | int & | argc, | |
char ** | argv | |||
) | throw (daq::ipc::AlreadyInitialized, daq::ipc::CannotInitialize) [static] |
This function initializes CORBA broker. It must be called at least once by any application which is using IPC before it tries to utilise any IPC function. This function removes CORBA specific arguments from the given array.
argc | number of command line arguments | |
argv | an array which contains command line arguments | |
opt | list of CORBA specific parameters |