ADTF  3.18.2
cWeakBindingServer

Default Implementation of IBindingServer for a BindingObject that is able to connect to a IBindingProxy. More...

Inheritance diagram for cWeakBindingServer:
[legend]

Public Member Functions

 cWeakBindingServer (const char *strName, const ucom::ant::iobject_ptr< const ant::IBindingType > &pBindingType, const ucom::ant::iobject_ptr< ucom::ant::IObject > &pServerObject)
 CTOR to create the BindingServer. More...
 
tResult GetBindingType (ucom::ant::iobject_ptr< const ant::IBindingType > &pBindingType) const override
 
tResult GetServerObject (ucom::ant::iobject_ptr< ucom::ant::IObject > &pServerObject) const override
 
tResult GetBindingProxy (ucom::ant::iobject_ptr< ant::IBindingProxy > &pBindingProxy) const override
 
tResult Unbind () override
 
tResult Bind (const ucom::ant::iobject_ptr< ant::IBindingProxy > &pBindingProxy) override
 
- Public Member Functions inherited from object< ant::IBindingObject, ant::named_graph_object< ant::IBindingServer > >
tResult GetInterface (const char *i_strIID, void *&o_pInterface) override
 Query interfaces on an object. More...
 
tResult GetInterface (const char *i_strIID, const void *&o_pInterface) const override
 Provides const correct interface querying. More...
 
void Destroy () const override
 Destruct and deallocate instantiations of type IObject. More...
 
- Public Member Functions inherited from IObject
 ADTF_IID (IObject, "object.ant.ucom.adtf.iid")
 Marks the IObject to be castable with the ucom_cast() More...
 

Private Member Functions

util::cString GetServerObjectName () const
 

Additional Inherited Members

- Protected Member Functions inherited from IObject
 ~IObject ()=default
 Protected destructor --> Use implemented Destroy() instead of delete!
 

Detailed Description

Default Implementation of IBindingServer for a BindingObject that is able to connect to a IBindingProxy.

This implementation stores a weak pointer to the server object only. This way it can be used to register an object by itself without breaking reference counting.

See also
adtf::streaming::elasto::create_weak_binding_server

Definition at line 168 of file interface_binding_object.h.

Constructor & Destructor Documentation

◆ cWeakBindingServer()

cWeakBindingServer ( const char *  strName,
const ucom::ant::iobject_ptr< const ant::IBindingType > &  pBindingType,
const ucom::ant::iobject_ptr< ucom::ant::IObject > &  pServerObject 
)

CTOR to create the BindingServer.

Parameters
[in]strNameName of the BindingServer.
[in]pBindingTypeBindingType of the BindingServer.
[in]pServerObjectServerObject which implements the interface IBindingType::GetInterfaceID.