|
ADTF
|
#include <samplewriter.h>
Inherits adtf::streaming::flash::cSampleWriter.
Public Member Functions | |
| sample_writer () | |
| Default CTOR. | |
| tResult | Write (const DATA_TYPE &oSampleData) |
Writes Data of the given DATA_TYPE. The Sample Time of the created Sample is retrieved from the IReferenceClock (if any exists). | |
| tResult | Write (tTimeStamp tmTime, const DATA_TYPE &oSampleData) |
| tResult | Write (base::flash::tNanoSeconds tmTime, const DATA_TYPE &oSampleData) |
| tResult | Transmit (const DATA_TYPE &oSampleData) |
| tResult | Transmit (tTimeStamp tmTime, const DATA_TYPE &oSampleData) |
Writes Data of the given DATA_TYPE. The Sample Time of the created Sample is retrieved from the IReferenceClock (if any exists). | |
| tResult | Transmit (base::flash::tNanoSeconds tmTime, const DATA_TYPE &oSampleData) |
Writes Data of the given DATA_TYPE. The Sample Time of the created Sample is retrieved from the IReferenceClock (if any exists). | |
Public Member Functions inherited from adtf::streaming::flash::cSampleWriter | |
| void | SetName (const char *strName) override |
| tResult | GetName (base::ant::IString &&strName) override |
| tResult | SetType (const ucom::ant::iobject_ptr< const ant::IStreamType > &pStreamType) override |
| tResult | GetType (ucom::ant::iobject_ptr< const ant::IStreamType > &pStreamType) const override |
| tResult | BeginStreaming (ISampleStream &oSampleStream) override |
| tResult | EndStreaming () override |
| tResult | SetStreamerPin (const ucom::ant::iobject_ptr< IStreamerPin > &pStreamerPin) override |
| tResult | GetStreamerPin (ucom::ant::iobject_ptr< IStreamerPin > &pStreamerPin) const |
| tResult | Write (const ucom::ant::iobject_ptr< const ant::ISample > &pSample) override |
| virtual tResult | Transmit (const ucom::ant::iobject_ptr< const ant::ISample > &pSample) |
| tResult | ChangeType (const ucom::ant::iobject_ptr< const ant::IStreamType > &pType) override |
| tResult | Flush () override |
| tResult | SetStreamError (tResult oError) override |
| tResult | ManualTrigger (base::flash::tNanoSeconds tmActivationTime=base::flash::tNanoSeconds{-1}) override |
Protected Attributes | |
| ucom::ant::object_ptr< services::flash::IReferenceClock > | m_pClock |
Specialized Sample Writer to write data of a given type DATA_TYPE. The operator << will be overloaded to write data.
| DATA_TYPE | the type which is written. This sample content is created and written at Write call. |
| BASE | the base adtf::streaming::flash::ISampleWriter Implementation (default is adtf::streaming::flash::cSampleWriter). |
|
inline |
Writes Data of the given DATA_TYPE. The Sample Time of the created Sample is retrieved from the IReferenceClock (if any exists).
| oSampleData | reference to the data of DATA_TYPE. |
|
inline |
Writes Data of the given DATA_TYPE. The Sample Time of the created Sample is retrieved from the IReferenceClock (if any exists).
| oSampleData | reference to the data of DATA_TYPE. |
|
inline |
Writes Data to the set stream of the given DATA_TYPE.
| tmTime | the sample time to set on the created sample |
| oSampleData | reference to the data of DATA_TYPE. |
| ERR_NOERROR | if the sample was successfully written to the stream. |
|
inline |
Writes Data of the given DATA_TYPE. The Sample Time of the created Sample is retrieved from the IReferenceClock (if any exists).
| oSampleData | reference to the data of DATA_TYPE. |
|
inline |
Writes Data to the set stream of the given DATA_TYPE.
| tmTime | the sample time to set on the created sample |
| oSampleData | reference to the data of DATA_TYPE. |
| ERR_NOERROR | if the sample was successfully written to the stream. |
|
protected |
Set clock reference to retrieve the current stream time for sample writing. The value was initialized in the constructor, but might be null if no clock service was available at construction time.