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

◆ add()

template<typename Prx = ObjectPrx, std::enable_if_t< std::is_base_of_v< ObjectPrx, Prx >, bool > = true>
Prx Ice::ObjectAdapter::add ( const ObjectPtr & servant,
const Identity & id )
inline

Adds a servant to this object adapter's Active Servant Map (ASM).

The ASM is a map {identity, facet} -> servant.

Template Parameters
PrxThe type of the proxy to return.
Parameters
servantThe servant to add.
idThe identity of the Ice object that is implemented by the servant.
Returns
A proxy for id created by this object adapter.
Exceptions
AlreadyRegisteredExceptionThrown when a servant with the same identity is already registered.
Remarks
This function is equivalent to calling addFacet with an empty facet.

Definition at line 106 of file ObjectAdapter.h.