This base implementation of a sample writer is samples and types to the given pin set at SetStreamerPin. More...
#include <samplewriter.h>
Public Member Functions | |
void | SetName (const char *strName) override |
Sets the name of the streamer. | |
tResult | GetName (base::ant::IString &&strName) override |
Retrieves the name of the streamer. | |
tResult | SetType (const ucom::ant::iobject_ptr< const ant::IStreamType > &pStreamType) override |
Sets the initial stream type of a streamer. | |
tResult | GetType (ucom::ant::iobject_ptr< const ant::IStreamType > &pStreamType) const override |
Returns the initial stream type of the streamer. | |
tResult | BeginStreaming (ISampleStream &oSampleStream) override |
Begin streaming on the given sample stream. | |
tResult | EndStreaming () override |
End streaming. | |
tResult | SetStreamerPin (const ucom::ant::iobject_ptr< IStreamerPin > &pStreamerPin) override |
Sets the pin that the streamer is associated with. | |
tResult | Write (const ucom::ant::iobject_ptr< const ant::ISample > &pSample) override |
Writes a sample to the connected sample stream. | |
virtual tResult | Transmit (const ucom::ant::iobject_ptr< const ant::ISample > &pSample) |
For compatibility purposes, call Write() instead. | |
tResult | ChangeType (const ucom::ant::iobject_ptr< const ant::IStreamType > &pType) override |
Communicates a type change for all following samples. | |
tResult | Flush () override |
Flushes the writer. | |
tResult | SetStreamError (tResult oError) override |
Reports and handles an error via the sample stream. | |
tResult | ManualTrigger (base::flash::tNanoSeconds tmActivationTime=base::flash::tNanoSeconds {-1}) override |
Calls all connected runners synchronously in this call. | |
Protected Attributes | |
std::unique_ptr< cImplementation > | m_pImplementation |
This base implementation of a sample writer is samples and types to the given pin set at SetStreamerPin.
Definition at line 355 of file samplewriter.h.
|
overridevirtual |
Begin streaming on the given sample stream.
[in] | pStream | the sample stream. |
Implements ISampleStreamer.
Reimplemented in writer_with_request_broker< BaseWriter >, and writer_with_request_broker< adtf::streaming::cSampleWriter >.
|
overridevirtual |
Communicates a type change for all following samples.
[in] | pType | The new stream type |
Implements ISampleWriter.
Reimplemented in encoding_sample_writer< WriterImplementation >, encoding_sample_writer< WriterImplementation >, encoding_sample_writer< WriterImplementation >, requestable_writer< BaseWriter >, and requestable_writer< BaseWriter >.
|
overridevirtual |
End streaming.
Implements ISampleStreamer.
Reimplemented in requestable_writer< BaseWriter >, writer_with_request_broker< BaseWriter >, writer_with_request_broker< adtf::streaming::cSampleWriter >, and requestable_writer< BaseWriter >.
|
overridevirtual |
|
overridevirtual |
Retrieves the name of the streamer.
[out] | strName | This will be updated with the name. |
Implements ISampleStreamer.
|
overridevirtual |
Returns the initial stream type of the streamer.
[out] | pStreamType | This will reference the initial stream type. |
Implements ISampleStreamer.
|
overridevirtual |
Calls all connected runners synchronously in this call.
[in] | tmActivationTime | The timestamp passed to all runners. If equals -1, the current stream time is retrieved from the reference clock. |
Implements ISampleWriter.
|
overridevirtual |
Sets the name of the streamer.
This will be used when creating pins.
[in] | strName | The name |
Implements ISampleStreamer.
|
overridevirtual |
Sets the pin that the streamer is associated with.
[in] | pStreamerPin | The pin. |
Implements ISampleStreamer.
Reports and handles an error via the sample stream.
Mind that you still need to cope with the error in the best possible manner.
[in] | oError | The error code. |
Implements ISampleWriter.
|
overridevirtual |
Sets the initial stream type of a streamer.
[in] | pStreamType | The stream type |
Implements ISampleStreamer.
Reimplemented in encoding_sample_writer< WriterImplementation >, encoding_sample_writer< WriterImplementation >, encoding_sample_writer< WriterImplementation >, requestable_writer< BaseWriter >, and requestable_writer< BaseWriter >.
|
virtual |
For compatibility purposes, call Write() instead.
Writes a sample to the connected sample stream.
[in] | pSample | The sample to write |
|
overridevirtual |
Writes a sample to the connected sample stream.
[in] | pSample | The sample to write |
Implements ISampleWriter.
|
protected |
Definition at line 387 of file samplewriter.h.