ADTF
Loading...
Searching...
No Matches
connect_pins.h
Go to the documentation of this file.
1
7#pragma once
12
13namespace adtf
14{
15namespace streaming
16{
17namespace testing
18{
19namespace ant
20{
21 tResult connect_pin(const adtf::ucom::ant::iobject_ptr<IOutPin>& pOutPin,
22 adtf::ucom::ant::iobject_ptr<ISampleStream>& pSampleStream,
23 bool bSync);
24 tResult connect_pin(const adtf::ucom::ant::iobject_ptr<IOutPin>& pOutPin,
25 const adtf::ucom::ant::iobject_ptr<ISampleStream>& pSampleStream,
26 bool bSync);
27
28 tResult connect_pin(const adtf::ucom::ant::iobject_ptr<IInPin>& pInPin,
29 adtf::ucom::ant::iobject_ptr<ISampleStream>& pSampleStream,
30 bool bSync);
31 tResult connect_pin(const adtf::ucom::ant::iobject_ptr<IInPin>& pInPin,
32 const adtf::ucom::ant::iobject_ptr<ISampleStream>& pSampleStream,
33 bool bSync);
34
35 tResult connect_pins(const adtf::ucom::ant::iobject_ptr<IOutPin>& pOutPin,
36 const adtf::ucom::ant::iobject_ptr<IInPin>& pInPin,
37 bool bSync);
38 tResult connect_pins(const adtf::ucom::ant::iobject_ptr<IOutPin>& pOutPin,
39 const adtf::ucom::ant::iobject_ptr<IInPin>& pInPin,
40 adtf::ucom::ant::iobject_ptr<ISampleStream>& pSampleStream,
41 bool bSync);
42 tResult connect_pins(const adtf::ucom::ant::iobject_ptr<ISampleStream>& pForcedSampleStream,
43 const adtf::ucom::ant::iobject_ptr<IOutPin>& pOutPin,
44 const adtf::ucom::ant::iobject_ptr<IInPin>& pInPin,
45 bool bSync);
46
47
48
49 class cSampleWriterTester : public streaming::ant::cSampleWriter
50 {
51 protected:
54
55 public:
56 cSampleWriterTester() = default;
57 virtual ~cSampleWriterTester();
58
59 tResult ConnectToPin(adtf::streaming::ant::IDataBinding& oDataBinding, const char* strPinName, bool bSync);
60 tResult Disconnect();
61
62 tResult Write(tTimeStamp tmTime, const void* pData, size_t szData);
63 tResult RunTrigger(tTimeStamp tmTime);
64
66
67 tResult PrintTriggerPipe();
68 };
69
71 {
72 public:
73 std::vector<adtf::ucom::object_ptr<const adtf::streaming::ant::ISample>> m_oSamples;
74 std::vector<adtf::ucom::object_ptr<const adtf::streaming::ant::IStreamType>> m_oTypes;
75 std::vector<tTimeStamp> m_oTriggers;
76
77 private:
79
80 public:
82 tResult Connect(adtf::streaming::ant::IDataBinding& oDataBinding, const char* strPinName);
84 tResult Push(const adtf::streaming::ant::IStreamItem& oItem, tTimeStamp tsTime) override;
85
86 };
87
88} //namespace ant
89
90namespace flash
91{
92
93class cSampleWriterTester: public ant::cSampleWriterTester
94{
95 public:
96 using ant::cSampleWriterTester::Write;
97 using ant::cSampleWriterTester::RunTrigger;
98
99 tResult Write(base::flash::tNanoSeconds tmTime, const void* pData, size_t szData);
100 tResult RunTrigger(base::flash::tNanoSeconds tmTime);
101};
102
103}
104
105namespace penguin
106{
107
120 const char* strOutputPin,
122 const char* strInputPin,
123 bool bSync = true);
124
169
170}
171
172using ant::connect_pin;
173using ant::connect_pins;
178
179} //namespace testing
180} //namespace streaming
181} //namespace adtf
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition result.h:775
Definition data_binding_intf.h:24
Definition streamitem_intf.h:25
Definition samplewriter.h:34
cDisconnector(const adtf::ucom::ant::iobject_ptr< adtf::ucom::ant::IObject > &pObject, const char *strPinName)
cDisconnector(const adtf::ucom::ant::iobject_ptr< adtf::streaming::ant::IOutPin > &pPin)
cDisconnector(const adtf::ucom::ant::iobject_ptr< adtf::ucom::ant::IObject > &pObject, const char *strPinName)
cDisconnector(const adtf::ucom::ant::iobject_ptr< adtf::streaming::ant::IPin > &pPin)
cDisconnector(const adtf::ucom::ant::iobject_ptr< adtf::streaming::ant::IInPin > &pPin)
Base object pointer to realize binary compatible reference counting in interface methods.
Definition object_ptr_intf.h:112
Definition object_ptr.h:384
sample_reader< cDynamicSampleReaderQueue > cDynamicSampleReader
The cDynamicSampleReader will create a sample reader which will create a internal sample queue with u...
Definition samplereader.h:807
Namespace for all testing functionality of the ADTF Streaming SDK provided since v3....
Definition check_inner_pipes.h:18
Namespace for all testing functionality of the ADTF Streaming SDK provided since v3....
Definition connect_binding_objects.h:37
Namespace for all testing functionality of the ADTF Streaming SDK provided since v3....
Definition connect_pins.h:106
tResult connect_pins(const adtf::ucom::ant::iobject_ptr< adtf::ucom::ant::IObject > &pSource, const char *strOutputPin, const adtf::ucom::ant::iobject_ptr< adtf::ucom::ant::IObject > &pDestination, const char *strInputPin, bool bSync=true)
Namespace for all testing functionality provided within the ADTF Streaming SDK.
Definition check_inner_pipes.h:16
Namespace for the ADTF Streaming SDK.
Definition bindingproxyinport.h:14
ant::weak_object_ptr< T > weak_object_ptr
Alias always bringing the latest version of ant::weak_object_ptr into scope.
Definition weak_object_ptr.h:232
Namespace for all functionality provided by ADTF and its SDKs.
Definition adtf_client_connector.h:14
A timestamp with nanosecond precision.
Definition chrono.h:23