50 const char* strPinName,
63 const char* strPinName,
66 std::function<
void(uint32_t)> fnCancel);
90 WriteSubStream<T>(0, tmTimeStamp, xValue, bTrigger);
103 void Write(
const T& xValue,
bool bTrigger =
false)
121 bool bTrigger =
false)
126 pSample->SetSubStreamId(nSubStreamId);
134 WriteSample(ucom::ucom_object_ptr_cast<streaming::ISample>(pSample));
152 void WriteSubStream(uint32_t nSubStreamId,
const T& xValue,
bool bTrigger =
false)
176 std::function<
void(uint32_t)> fnCancel);
186 class cImplementation;
187 std::unique_ptr<cImplementation> m_pImplementation;
219 const char* strPinName,
250 std::set<uint32_t> m_setRequestedSubstreams;
251 mutable std::mutex m_mxLock;
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Defintion of a property set container interface.
Template class implementation for the ant::IRawMemory interface (see Supported types for adtf_memory<...
Helper class that wraps different objects into an adtf::streaming::ant::IStreamType.
Tester helper class to emulate a writing OutPin to InPin connection for sending samples and type to a...
void SetRequestCallbacks(std::function< void(uint32_t, const base::IProperties *)> fnRequest, std::function< void(uint32_t)> fnCancel)
Set the callbacks for the request calls on substreams.
void Write(const T &xValue, bool bTrigger=false)
Writes one sample with the sample buffer content of T into the writing stream.
~cTestWriter()
Destroy the c Test Writer object.
void WriteSubStream(uint32_t nSubStreamId, const T &xValue, bool bTrigger=false)
Writes one sample with the sample buffer content of T into the writing stream and mark it as part of ...
cTestWriter(const ucom::ant::iobject_ptr< ucom::ant::IObject > &pObject, const char *strPinName, const filter::flash::cStreamTypeHelper &oType=streaming::stream_meta_type_anonymous())
Construct a new Test Writer object.
void Write(base::flash::tNanoSeconds tmTimeStamp, const T &xValue, bool bTrigger=false)
Writes one sample with the sample buffer content of T into the writing stream.
void ManualTrigger(base::flash::tNanoSeconds tmActivationTime=base::flash::tNanoSeconds{-1})
Sends a manual trigger call into the runner pipe of the.
base::flash::tNanoSeconds GetCurrentStreamTime() const
Gets the current stream time (if any clock is present within the _runtime singleton).
void ChangeType(const filter::flash::cStreamTypeHelper &oType)
Emulates a stream type change during writing.
cTestWriter(const ucom::ant::iobject_ptr< ucom::ant::IObject > &pObject, const char *strPinName, const filter::flash::cStreamTypeHelper &oType, std::function< void(uint32_t, const base::IProperties *)> fnRequest, std::function< void(uint32_t)> fnCancel)
Construct a new Test Writer object.
void WriteSample(const ucom::ant::iobject_ptr< const streaming::ant::ISample > &pSample)
Writes the given sample into the writing stream.
void WriteSubStream(uint32_t nSubStreamId, base::flash::tNanoSeconds tmTimeStamp, const T &xValue, bool bTrigger=false)
Writes one sample with the sample buffer content of T into the writing stream and mark it as part of ...
Tester helper class to emulate a writing OutPin to InPin connection for sending samples and type to a...
std::set< uint32_t > GetCurrentRequests() const
Retrieve a copy of the current requested substream ids.
cTestWriterWithSubStreams(const adtf::ucom::ant::iobject_ptr< adtf::ucom::ant::IObject > &pObject, const char *strPinName, const adtf::filter::flash::cStreamTypeHelper &oType=adtf::streaming::stream_meta_type_anonymous())
CTOR.
bool IsSubstreamRequested(uint32_t ui32SubStreamId) const
Determines if the given ui32SubStreamId was requested.
void ChangeType(const filter::flash::cStreamTypeHelper &oType)
Emulates a stream type change during writing.
Base object pointer to realize binary compatible reference counting in interface methods.
Implementation for a exclusive lock guard.
Object pointer implementation used for reference counting on objects of type IObject.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
tResult alloc_sample(ucom::ant::iobject_ptr< ucom::ant::IObject > &pSampleObject, const char *strSampleCID)
Helper Function to get a Sample Instance through the adtf::ucom::ant::IRuntime.
Namespace for entire ADTF SDK.
Copyright © Audi Electronics Venture GmbH.
A timestamp with nanosecond precision.
#define THROW_IF_FAILED(s)
throws if the expression returns a failed tResult