ADTF
|
Helper template can be used to implement ISampleStreamer. More...
Public Types | |
typedef PINTYPE | pin_type |
Public Member Functions | |
sample_streamer ()=default | |
CTOR. | |
sample_streamer (const char *strName, const ucom::ant::iobject_ptr< const IStreamType > &pStreamType) | |
CTOR initializer. More... | |
virtual | ~sample_streamer () |
DTOR. | |
void | SetName (const char *strName) |
Sets the name of the streamer. More... | |
void | ResetPin (ucom::ant::object_ptr< PINTYPE > &pPin) |
Resets the pin reference This is only internaly used. More... | |
void | ResetPin () |
Resets the pin reference to nullptr. More... | |
tResult | GetName (base::ant::IString &&strName) const |
Gets the name of the streamer. More... | |
tResult | SetType (const ucom::ant::iobject_ptr< const IStreamType > &pStreamType) |
Sets the StreamType of the streamer. More... | |
tResult | GetType (ucom::ant::iobject_ptr< const IStreamType > &pStreamType) const override |
tResult | EndStreaming () override |
Protected Member Functions | |
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 Attributes | |
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< PINTYPE > | m_poPin |
pin reference reading/writing from | |
Helper template can be used to implement ISampleStreamer.
This template works only for cInPin and cOutPin or implementations using similar functionality to cPin::RegisterStreamer and cPin::UnregisterStreamer.
PINTYPE | Pin referenced to. |
Definition at line 40 of file samplereader.h.
|
inline |
CTOR initializer.
[in] | strName | Name of the Streamer |
[in] | pStreamType | Accepted streamtype of the streamer |
Definition at line 67 of file samplereader.h.
|
inline |
Gets the name of the streamer.
[out] | strName | IString Reference to return the name |
Definition at line 129 of file samplereader.h.
References sample_streamer< INTERFACE, PINTYPE >::m_strName.
|
inline |
Resets the pin reference to nullptr.
This is only internaly used.
Definition at line 116 of file samplereader.h.
References sample_streamer< INTERFACE, PINTYPE >::m_poPin.
Referenced by sample_streamer< INTERFACE, PINTYPE >::~sample_streamer(), and sample_streamer< INTERFACE, PINTYPE >::ResetPin().
|
inline |
Resets the pin reference This is only internaly used.
[in] | pPin | pin referencing to |
Definition at line 95 of file samplereader.h.
References sample_streamer< INTERFACE, PINTYPE >::m_poPin, and sample_streamer< INTERFACE, PINTYPE >::ResetPin().
|
inline |
Sets the name of the streamer.
[in] | strName | name to be set |
Definition at line 84 of file samplereader.h.
References sample_streamer< INTERFACE, PINTYPE >::m_strName.
|
inline |
Sets the StreamType of the streamer.
It will create a deep copy.
[in] | pStreamType | StreamType to set. |
Definition at line 140 of file samplereader.h.