ADTF  3.18.2
cBindingClient

Default Implementation of adtf::IDynamicBindingObject for one binding object that is able to connect to exactly one server object. More...

Inheritance diagram for cBindingClient:
[legend]

Public Types

typedef std::pair< adtf::ucom::IObject, IBindingObjectiobject_resolve_type
 private dpointer More...
 
typedef std::pair< INamedGraphObject, IBindingObjectinamedgraphobject_resolve_type
 object resolver
 

Public Member Functions

 UCOM_RESOLVE (inamedgraphobject_resolve_type, iobject_resolve_type)
 
 cBindingClient (const char *strName, const ucom::ant::iobject_ptr< const IBindingType > &pInterfaceType)
 CTOR to create the Binding Object. More...
 
 ~cBindingClient ()
 Default DTOR.
 
tResult GetBindingType (ucom::ant::iobject_ptr< const IBindingType > &pBindingType) const override
 
tResult GetServerObject (ucom::ant::iobject_ptr< ucom::ant::IObject > &pServerObject) const override
 
tResult GetBindingProxy (ucom::ant::iobject_ptr< IBindingProxy > &pBindingProxy) const override
 
tResult Unbind () override
 
tResult Bind (const ucom::ant::iobject_ptr< IBindingProxy > &pBindingProxy) override
 
tResult SetBindingType (const ucom::ant::iobject_ptr< const IBindingType > &pBindingType)
 Sets the Bindingtype. More...
 
virtual tResult SetServerObject (const ucom::ant::iobject_ptr< ucom::ant::IObject > &pServerObject)
 Sets the ServerObject of the BindingClient. More...
 
- Public Member Functions inherited from object< IBindingObject, named_graph_object< IBindingClient > >
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...
 

Protected Member Functions

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

Detailed Description

Default Implementation of adtf::IDynamicBindingObject for one binding object that is able to connect to exactly one server object.

This binding object is the connection point to access a dynamic binding via adtf::IDynamicBindingObject::GetServerObject(). A client declares the required server object this cClientBindingObject

See also
adtf::cDynamicBindingObject.

Definition at line 97 of file interface_binding_object.h.

Member Typedef Documentation

◆ iobject_resolve_type

private dpointer

object resolver

Definition at line 105 of file interface_binding_object.h.

Constructor & Destructor Documentation

◆ cBindingClient()

cBindingClient ( const char *  strName,
const ucom::ant::iobject_ptr< const IBindingType > &  pInterfaceType 
)
explicit

CTOR to create the Binding Object.

Parameters
[in]strNameName of the binding Object.
[in]pInterfaceTypeDynamicBindingType of the binding Object.

Member Function Documentation

◆ SetBindingType()

tResult SetBindingType ( const ucom::ant::iobject_ptr< const IBindingType > &  pBindingType)

Sets the Bindingtype.

Parameters
[in]pBindingTypeBindingtype.
Returns
Standard Result Code.

◆ SetServerObject()

virtual tResult SetServerObject ( const ucom::ant::iobject_ptr< ucom::ant::IObject > &  pServerObject)
virtual

Sets the ServerObject of the BindingClient.

Usually this is used after connection are established in IFilter::State_Ready. Use it to override if you want to specialize your client.

Parameters
[in]pServerObjectServerObject which implements the interface IBindingType::GetInterfaceID.
Returns
Standard Result Code.