IPCCore Class Reference

#include <core.h>

List of all members.

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)


Detailed Description

This class provides the basic IPC initialization functions.

See also:


Member Enumeration Documentation

enum IPCCore::ObjectRefType

Enumerator:
Ior  IOR format
Corbaloc  CORBALOC format


Member Function Documentation

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.

Parameters:
argc number of command line arguments
argv an array which contains command line arguments
Returns:
list of parsed argumen:value pairs
Exceptions:
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.

Parameters:
opt list of CORBA specific parameters
Exceptions:
daq::ipc::AlreadyInitialized 
daq::ipc::CannotInitialize 
See also:
IPCCore::init( int & argc, char ** argv )

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.

Parameters:
argc number of command line arguments
argv an array which contains command line arguments
opt list of CORBA specific parameters
Exceptions:
daq::ipc::AlreadyInitialized 
daq::ipc::CannotInitialize 
See also:
IPCCore::init( const std::list< std::pair< std::string, std::string > > & opt )


The documentation for this class was generated from the following files:
Generated on Tue Aug 8 17:08:21 2006 for IPC User API by  doxygen 1.4.7