|
ADTF
|
#include <samplewriter.h>
Inherits adtf::streaming::ant::sample_streamer< ISampleWriter, cOutPin >.
Inherited by adtf::streaming::ant::sample_writer< DATA_TYPE >, and adtf::streaming::testing::ant::cSampleWriterTester.
Public Member Functions | |
| cSampleWriter () | |
| CTOR. | |
| virtual | ~cSampleWriter () |
| DTOR. | |
| cSampleWriter (const char *strName, const ucom::ant::iobject_ptr< const IStreamType > &pStreamType) | |
| tResult | BeginStreaming (ISampleStream &oSampleStream) override |
| tResult | EndStreaming () override |
| virtual tResult | Transmit (const ucom::ant::iobject_ptr< const ISample > &pSample) |
| virtual tResult | ChangeType (const ucom::ant::iobject_ptr< const IStreamType > &pType) |
| virtual tResult | Flush () |
| virtual tResult | SetStreamError (tResult oErr) |
| tResult | ManualTrigger () |
Public Member Functions inherited from adtf::streaming::ant::sample_streamer< ISampleWriter, cOutPin > | |
| sample_streamer ()=default | |
| CTOR. | |
| sample_streamer (const char *strName, const ucom::ant::iobject_ptr< const IStreamType > &pStreamType) | |
| virtual | ~sample_streamer () |
| DTOR. | |
| void | SetName (const char *strName) |
| void | ResetPin (ucom::ant::object_ptr< cOutPin > &pPin) |
| void | ResetPin () |
| tResult | GetName (base::ant::IString &&strName) const |
| tResult | SetType (const ucom::ant::iobject_ptr< const IStreamType > &pStreamType) |
| tResult | GetType (ucom::ant::iobject_ptr< const IStreamType > &pStreamType) const override |
| tResult | EndStreaming () override |
| sample_streamer ()=default | |
| CTOR. | |
| sample_streamer (const char *strName, const ucom::ant::iobject_ptr< const IStreamType > &pStreamType) | |
| virtual | ~sample_streamer () |
| DTOR. | |
| void | SetName (const char *strName) |
| void | ResetPin (ucom::ant::object_ptr< cOutPin > &pPin) |
| void | ResetPin () |
| tResult | GetName (base::ant::IString &&strName) const |
| tResult | SetType (const ucom::ant::iobject_ptr< const IStreamType > &pStreamType) |
| tResult | GetType (ucom::ant::iobject_ptr< const IStreamType > &pStreamType) const override |
| tResult | EndStreaming () override |
Protected Types | |
| typedef sample_streamer< ISampleWriter, cOutPin > | base_type |
| base type | |
Protected Attributes | |
| ucom::object_ptr< ISampleOutStream > | m_pOutStream |
| The SampleOutStream which is opened while BeginStreaming. | |
| ucom::object_ptr< adtf::services::IReferenceClock > | _clock |
Protected Attributes inherited from adtf::streaming::ant::sample_streamer< ISampleWriter, cOutPin > | |
| adtf_util::cString | m_strName |
| name of the streamer (used i.e. to create the pins name) | |
| ucom::object_ptr< const IStreamType > | m_pStreamType |
| stream type of the streamer | |
| ucom::object_ptr< cOutPin > | m_poPin |
| pin reference reading/writing from | |
| adtf_util::cString | m_strName |
| name of the streamer (used i.e. to create the pins name) | |
| ucom::object_ptr< const IStreamType > | m_pStreamType |
| stream type of the streamer | |
| ucom::object_ptr< cOutPin > | m_poPin |
| pin reference reading/writing from | |
Additional Inherited Members | |
Public Types inherited from adtf::streaming::ant::sample_streamer< ISampleWriter, cOutPin > | |
| typedef cOutPin | pin_type |
Protected Member Functions inherited from adtf::streaming::ant::sample_streamer< ISampleWriter, cOutPin > | |
| sample_streamer (const sample_streamer &)=delete | |
| deleted copy CTOR | |
| sample_streamer (sample_streamer &&)=delete | |
| deleted move CTOR | |
| sample_streamer & | operator= (const sample_streamer &)=delete |
| deleted copy operator | |
| sample_streamer & | operator= (sample_streamer &&)=delete |
| deleted move operator | |
| sample_streamer (const sample_streamer &)=delete | |
| deleted copy CTOR | |
| sample_streamer (sample_streamer &&)=delete | |
| deleted move CTOR | |
| sample_streamer & | operator= (const sample_streamer &)=delete |
| deleted copy operator | |
| sample_streamer & | operator= (sample_streamer &&)=delete |
| deleted move operator | |
Protected Member Functions inherited from adtf::streaming::ant::ISampleWriter | |
| ~ISampleWriter ()=default | |
| not destructable | |
Protected Member Functions inherited from adtf::streaming::ant::ISampleStreamer | |
| ~ISampleStreamer ()=default | |
| not destructable | |
This base implementation of a sample writer is able to write to one sample stream which is connected to ONE cOutPin.
The cOutPin it is registered to will call ISampleWriter::BeginStreaming while connecting.
|
inline |
CTOR with name and type
| [in] | strName | Name to set |
| [in] | pStreamType | Stream to set on the writer (deep copy is created) |
|
inlineoverridevirtual |
BeginStreaming will open the given Sample Stream for Writing while a connection is establishing.
| pStream | [in] Sample Stream to open |
Implements adtf::streaming::ant::ISampleWriter.
|
inlinevirtual |
Changes and writes a stream type reference to the opened ISampleOutStream.
| [in] | pType | stream type reference to change and write |
|
inlineoverridevirtual |
Sample Stream disconnected. Streaming ends.
Implements adtf::streaming::ant::ISampleStreamer.
|
inlinevirtual |
Flushes a the opened ISampleOutStream.
|
inline |
This is to Run a trigger call manually. A Trigger to the trigger pipe on the Pin will be forwarded.
| ERR_NOT_INITIALIZED | The Pin is not set. use create_pin to make sure the pin is set |
Writes an error to the opened ISampleOutStream.
| [in] | oErr | errror to write to the stream |
|
inlinevirtual |
Transmits and writes a sample reference to the opened ISampleOutStream.
| [in] | pSample | sample reference to transmit |