ADTF  3.18.2
pin_intf.h
Go to the documentation of this file.
1 
7 #pragma once
8 #include "samplestreamer_intf.h"
9 
10 namespace adtf
11 {
12 namespace streaming
13 {
14 namespace ant
15 {
23  class IPin: public ITriggerPipeItem,
24  public INamedGraphObject
25  {
26  protected:
28  ~IPin() = default;
29 
30  public:
32  ADTF_IID(IPin, "pin.ant.streaming.adtf.iid");
35 
36  public:
48 
53  virtual bool IsConnected() const = 0;
54 
61  virtual tResult SetActive() = 0;
62 
69  virtual tResult SetInactive() = 0;
70 
83  virtual tResult Connect(const ucom::ant::iobject_ptr<ISampleStream>& pSampleStream) = 0;
90  virtual tResult Disconnect() = 0;
91 
100  };
101 } //namespace ant
102 
103 namespace flash
104 {
105 
107 {
108  protected:
109  virtual ~IStreamerPin() = default;
110 
111  public:
113  ADTF_IID(IStreamerPin, "streamer_pin.flash.streaming.adtf.iid");
114 
115  public:
116  virtual tResult RegisterStreamer(ISampleStreamer& oStreamer) = 0;
117  virtual tResult UnregisterStreamer(ISampleStreamer& oStreamer) = 0;
118 };
119 
120 }
121 
123 using ant::IPin;
124 
125 } //namespace streaming
126 } //namespace adtf
Interface for a NamedGraphObject which can be added to the FilterGraph.
Pin Interface for the IDataBinding.
Definition: pin_intf.h:25
virtual tResult Disconnect()=0
Disonnects the Pin from a SampleStream.
virtual tResult GetSampleStream(ucom::ant::iobject_ptr< ISampleStream > &pSampleStream) const =0
Retrieves the connected SampleStream.
virtual bool IsConnected() const =0
Retrieves the state of the Pin is either connected to a SampleStream or not.
virtual tResult SetInactive()=0
Deactivates the pin.
virtual tResult GetType(ucom::ant::iobject_ptr< const IStreamType > &pStreamType) const =0
Retrieves the Type of the Pin if set.
UCOM_RESOLVE(adtf::ucom::ant::IObject, INamedGraphObject)
resolver
~IPin()=default
not destructable
virtual tResult SetActive()=0
Activates the pin.
ADTF_IID(IPin, "pin.ant.streaming.adtf.iid")
defintion of interface id
virtual tResult Connect(const ucom::ant::iobject_ptr< ISampleStream > &pSampleStream)=0
Connects the Pin to the SampleStream.
Interface for objects which can participate a ITriggerPipe.
Base interface for sample readers and writers.
ADTF_IID(IStreamerPin, "streamer_pin.flash.streaming.adtf.iid")
defintion of interface id
Base class for every interface type within the uCOM.
Definition: object_intf.h:31
Base object pointer to realize binary compatible reference counting in interface methods.
Namespace for entire ADTF SDK.
Copyright © Audi Electronics Venture GmbH.