ADTF  3.18.2
data_binding.h
Go to the documentation of this file.
1 
7 #pragma once
8 #include "data_binding_intf.h"
9 
10 namespace adtf
11 {
12 namespace streaming
13 {
14 namespace ant
15 {
16 
25 {
28 
29  public: // implements IDataBinding
33  tResult FindPin(const char* strName, ucom::ant::iobject_ptr<ucom::ant::IObject>& pPin) const;
34 
35  protected:
39  virtual ~cDataBinding();
40 
41  public:
60 
67 
73 
77  virtual tResult ActivatePins();
82 
87 
88 };
89 
96 template<typename Interface = IDataBinding>
97 class data_binding: public ucom::catwo::object<IDataBinding, Interface>, public cDataBinding
98 {
99  public:
102  {
103  return cDataBinding::GetPins(lstPins);
104  }
106  tResult FindPin(const char* strName, ucom::ant::iobject_ptr<ucom::ant::IObject>& pPin) const override
107  {
108  return cDataBinding::FindPin(strName, pPin);
109  }
110  };
111 
112 } //namespace ant
113 } //namespace streaming
114 } //namespace adtf
The cFilter class implements a basic filter that supports the IFilter and IPinEventSink interfaces.
Definition: data_binding.h:25
A_UTILS_D(cDataBinding)
private d-pointer
virtual tResult DeactivatePins()
Deactivate all pins.
virtual tResult UnregisterPin(const ucom::ant::iobject_ptr< IPin > &pIPin)
Unregisters a Pin from the pin list.
virtual tResult ActivatePins()
Activate all pins.
tResult RegisterPin(const ucom::ant::iobject_ptr< IOutPin > &pIOutPin)
Registers a InPin in a pin list.
virtual tResult RegisterPin(const ucom::ant::iobject_ptr< IPin > &pIPin)
Registers a Pin in a pin list.
tResult GetPins(ucom::ant::iobject_list< IPin > &lstPins) const
Returns the current Pins (only const access).
tResult Disconnect()
Disconnect all pins.
tResult ReleasePins()
Unregisters all Pins from the pin list.
tResult FindPin(const char *strName, ucom::ant::iobject_ptr< ucom::ant::IObject > &pPin) const
Find a Pin with the name of strName (only const access)
tResult RegisterPin(const ucom::ant::iobject_ptr< IInPin > &pIInPin)
Registers a InPin in a pin list.
Template class for the default implementation of IDataBinding.
Definition: data_binding.h:98
tResult GetPins(ucom::ant::iobject_list< IPin > &lstPins) const override
Returns the current Pins (only const access).
Definition: data_binding.h:101
tResult FindPin(const char *strName, ucom::ant::iobject_ptr< ucom::ant::IObject > &pPin) const override
Find a Pin with the name of strName (only const access)
Definition: data_binding.h:106
Base object pointer to realize binary compatible reference counting in interface methods.
Use this template if you want to implement an ucom::ant::IObject based Interface and/or subclass an e...
Definition: object.h:379
Copyright © Audi Electronics Venture GmbH.
Namespace for entire ADTF SDK.