Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ addObject()

void IceGrid::AdminPrx::addObject ( const std::optional< Ice::ObjectPrx > & obj,
const Ice::Context & context = Ice::noExplicitContext ) const

Adds an object to the object registry.

IceGrid gets the object type by calling ice_id on obj. The object must be reachable.

Parameters
objA proxy to the object. This proxy is never null.
contextThe request context.
Exceptions
IceGrid::DeploymentExceptionThrown when the object can't be added.
IceGrid::ObjectExistsExceptionThrown when the object is already registered.