25 template<
typename INTERFACE,
bool INTERFACE_CHECK=true>
78 if (!pBindingType.
Get())
80 RETURN_ERROR_DESC(ERR_POINTER,
"Binding proxy has not connected to a binding server");
103 RETURN_ERROR_DESC(ERR_DEVICE_IN_USE,
"This binding proxy has already been bound to a server.");
187 adtf::ucom::ucom_object_ptr_cast<const IBindingType>(
m_pBindingType)));
224 "default_binding_proxy.streaming.adtf.cid",
240 using ant::binding_proxy;
243 using ant::cDefaultBindingProxy;
#define RETURN_ERROR_DESC(_code,...)
Same as RETURN_ERROR(_error) using a printf like parameter list for detailed error description.
#define RETURN_IF_FAILED(s)
Return if expression is failed, which requires the calling function's return type to be tResult.
#define RETURN_NOERROR
Return status ERR_NOERROR, which requires the calling function's return type to be tResult.
#define RETURN_ERROR(code)
Return specific error code, which requires the calling function's return type to be tResult.
#define RETURN_IF_POINTER_NULL(_ptr)
Return ERR_POINTER if _ptr is nullptr, which requires the calling function's return type to be tResul...
A common result class usable as return value throughout.
This default class implementation will halp to define a Default InterfaceBindingProxy.
adtf::ucom::object_ptr< INTERFACE > m_pServerObject
Server interface this proxy will provided.
binding_proxy(const char *strName, const adtf::ucom::iobject_ptr< const IBindingType > &pBindingType)
CTOR which initializes the binding type.
adtf::ucom::object_list< IBindingProxy > m_lstBindingRoutes
List of attached Routes.
adtf::ucom::object_ptr< IBindingType > m_pBindingType
Type of the Server interface this proxy will provided.
virtual ~binding_proxy()
DTOR.
binding_proxy(const char *strName)
CTOR which initializes the name.
tResult SetBindingType(const adtf::ucom::iobject_ptr< const IBindingType > &pBindingType)
Sets the binding type of the proxy.
The Default implementation of the IBindingProxy interface.
ADTF_CLASS_ID_NAME(cDefaultBindingProxy, "default_binding_proxy.streaming.adtf.cid", "Binding Proxy")
Implements the adtf::ucom::IClassInfo.
Default convenient implementation for INamedGraphObject.
tResult SetName(const char *strName) override
Sets the Name of the object.
virtual tResult Reset(const iobject_ptr< T > &i_oOther)=0
Reset this object_ptr<> with the content of another iobject_ptr<>
virtual T * Get() const =0
Get raw pointer to shared object.
Base object pointer to realize binary compatible reference counting in interface methods.
Object pointer implementation used for reference counting on objects of type IObject.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
tResult reset_object_ptr(TDest< const T > &o_oDest, const TSrc< U > &i_oSrc)
Reset an iobject_ptr with const T.
Namespace for entire ADTF SDK.