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 tResult GetStreamError();
70 };
71
73 {
74 public:
75 std::vector<adtf::ucom::object_ptr<const adtf::streaming::ant::ISample>> m_oSamples;
76 std::vector<adtf::ucom::object_ptr<const adtf::streaming::ant::IStreamType>> m_oTypes;
77 std::vector<tTimeStamp> m_oTriggers;
78
79 private:
81
82 public:
84 tResult Connect(adtf::streaming::ant::IDataBinding& oDataBinding, const char* strPinName);
86 tResult Push(const adtf::streaming::ant::IStreamItem& oItem, tTimeStamp tsTime) override;
87
88 };
89
90} //namespace ant
91
92namespace flash
93{
94
95class cSampleWriterTester: public ant::cSampleWriterTester
96{
97 public:
98 using ant::cSampleWriterTester::Write;
99 using ant::cSampleWriterTester::RunTrigger;
100
101 tResult Write(base::flash::tNanoSeconds tmTime, const void* pData, size_t szData);
102 tResult RunTrigger(base::flash::tNanoSeconds tmTime);
103};
104
105}
106
107namespace penguin
108{
109
122 const char* strOutputPin,
124 const char* strInputPin,
125 bool bSync = true);
126
171
172}
173
174using ant::connect_pin;
175using ant::connect_pins;
180
181} //namespace testing
182} //namespace streaming
183} //namespace adtf
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition result.h:736
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:108
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