| interfaceRepository {CORBA} | R Documentation |
Allows one to query or set the identity of the Interface Repository (IR) containing the definitions of the CORBA interfaces that we query during dynamic CORBA calls and server implementations. Many functions consult this internally stored value, and this allows us to set this value dynamically, rather than once at initialization.
interfaceRepository(id=character(0))
id |
a CORBA identifier - a single character string specifying an IOR, or alternatively one or more character strings that are used as an iterative path identifying a (nested) name in the default CORBA naming service. |
Functions that access the interface repository usually consult the default repository stored in a C++ structure. This function allows us to query and set that value.
A CORBA IOR string identifying an Interface Repository. If the function is called with no arguments, this is the IOR for the current default repository. If an argument is provided, this value identifies the previous default that has now been replaced. This allows one to temporarily set the default repository and arrange to have the original value restored at the end of a computation. See the examples below.
Duncan Temple Lang
idlInterface, getIRContainerContents,
namingService
# get the current repsository
interfaceRepository()
iorDump(interfaceRepository())
# Start a new Interface Repository
# irserv -OAport 4444 -ior > /tmp/IR.ref
# set the default repository to point to this
old <- interfaceRepository(ior("/tmp/IR.ref"))
# arrange to switch back to the old one.
on.exit(interfaceRepository(old))