ADTF
Loading...
Searching...
No Matches
adtf::streaming::elasto::cWeakBindingServer Class Reference

#include <interface_binding_object.h>

Inherits adtf::ucom::catwo::object< ant::IBindingObject, ant::named_graph_object< ant::IBindingServer > >.

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)
 
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 adtf::ucom::catwo::object< ant::IBindingObject, ant::named_graph_object< ant::IBindingServer > >
tResult GetInterface (const char *i_strIID, void *&o_pInterface) override
 Query interfaces on an object.
 
tResult GetInterface (const char *i_strIID, const void *&o_pInterface) const override
 Provides const correct interface querying.
 
void Destroy () const override
 Switch from non-virtual destructor to virtual destructor.
 
tResult GetInterface (const char *i_strIID, void *&o_pInterface) override
 Query interfaces on an object.
 
tResult GetInterface (const char *i_strIID, const void *&o_pInterface) const override
 Provides const correct interface querying.
 
void Destroy () const override
 Switch from non-virtual destructor to virtual destructor.
 
tResult GetInterface (const char *i_strIID, void *&o_pInterface) override
 Query interfaces on an object.
 
tResult GetInterface (const char *i_strIID, const void *&o_pInterface) const override
 Provides const correct interface querying.
 
void Destroy () const override
 Switch from non-virtual destructor to virtual destructor.
 
- Public Member Functions inherited from adtf::ucom::ant::IObject
 ADTF_IID (IObject, "object.ant.ucom.adtf.iid")
 

Additional Inherited Members

- Protected Member Functions inherited from adtf::ucom::ant::IObject
 ~IObject ()=default
 Protected destructor --> Only the final implementation can be destroyed!
 

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

Constructor & Destructor Documentation

◆ cWeakBindingServer()

adtf::streaming::elasto::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.

The documentation for this class was generated from the following file: