ADTF
|
Writer that registers a request broker (cRequestBroker) at the connected sample stream. More...
Public Member Functions | |
requestable_writer () | |
Default constructor. | |
void | SetCallbacks (std::function< void(uint32_t, const base::IProperties *)> fnEnable, std::function< void(uint32_t)> fnDisable) |
Sets the callbacks for activating and deactivating substreams. More... | |
tResult | SetType (const ucom::ant::iobject_ptr< const ant::IStreamType > &pType) override |
Sets the initial stream type of a streamer. More... | |
tResult | ChangeType (const ucom::ant::iobject_ptr< const ant::IStreamType > &pType) override |
Communicates a type change for all following samples. More... | |
tResult | ChangeType (const ucom::ant::iobject_ptr< const ant::IStreamType > &pType, bool bDisableCurrentRequests, bool bCallDisableCallback) |
Writes a new Stream Type to the Sample Stream. More... | |
tResult | ChangeType (const ucom::ant::iobject_ptr< const ant::IStreamType > &pType, bool bDisableCurrentRequests, bool bCallDisableCallback, bool bSync) |
tResult | EndStreaming () override |
End streaming. More... | |
Public Member Functions inherited from writer_with_request_broker< adtf::streaming::cSampleWriter > | |
void | SetBroker (const ucom::ant::iobject_ptr< IStreamingRequests > &pBroker) |
Use this to set the broker instance after the writer has been created. More... | |
tResult | BeginStreaming (streaming::ant::ISampleStream &oSampleStream) override |
Begin streaming on the given sample stream. More... | |
tResult | EndStreaming () override |
End streaming. More... | |
Public Member Functions inherited from cSampleWriter | |
void | SetName (const char *strName) override |
Sets the name of the streamer. More... | |
tResult | GetName (base::ant::IString &&strName) override |
Retrieves the name of the streamer. More... | |
tResult | SetType (const ucom::ant::iobject_ptr< const ant::IStreamType > &pStreamType) override |
Sets the initial stream type of a streamer. More... | |
tResult | GetType (ucom::ant::iobject_ptr< const ant::IStreamType > &pStreamType) const override |
Returns the initial stream type of the streamer. More... | |
tResult | SetStreamerPin (const ucom::ant::iobject_ptr< IStreamerPin > &pStreamerPin) override |
Sets the pin that the streamer is associated with. More... | |
tResult | Write (const ucom::ant::iobject_ptr< const ant::ISample > &pSample) override |
Writes a sample to the connected sample stream. More... | |
virtual tResult | Transmit (const ucom::ant::iobject_ptr< const ant::ISample > &pSample) |
For compatibility purposes, call Write() instead. More... | |
tResult | ChangeType (const ucom::ant::iobject_ptr< const ant::IStreamType > &pType) override |
Communicates a type change for all following samples. More... | |
tResult | Flush () override |
Flushes the writer. More... | |
tResult | SetStreamError (tResult oError) override |
Reports and handles an error via the sample stream. More... | |
tResult | ManualTrigger (base::flash::tNanoSeconds tmActivationTime=base::flash::tNanoSeconds {-1}) override |
Calls all connected runners synchronously in this call. More... | |
Private Attributes | |
ucom::ant::object_ptr< cRequestBroker > | m_pBroker |
Additional Inherited Members | |
Protected Attributes inherited from cSampleWriter | |
std::unique_ptr< cImplementation > | m_pImplementation |
Writer that registers a request broker (cRequestBroker) at the connected sample stream.
Definition at line 125 of file requestable_writer.h.
|
inlineoverridevirtual |
Communicates a type change for all following samples.
[in] | pType | The new stream type |
Implements ISampleWriter.
Definition at line 157 of file requestable_writer.h.
Referenced by requestable_writer< BaseWriter >::ChangeType().
|
inline |
Writes a new Stream Type to the Sample Stream.
[in] | pType | The new Stream Type. |
[in] | bDisableCurrentRequests | If true, current requests will be disabled. |
[in] | bCallDisableCallback | If bDisableCurrentRequests was true, whether or not to call the disable callback for all ongoing requests. |
Definition at line 171 of file requestable_writer.h.
References requestable_writer< BaseWriter >::ChangeType(), RETURN_IF_FAILED, and RETURN_NOERROR.
|
inlineoverridevirtual |
End streaming.
Implements ISampleStreamer.
Definition at line 202 of file requestable_writer.h.
References writer_with_request_broker< BaseWriter >::EndStreaming(), and RETURN_NOERROR.
|
inline |
Sets the callbacks for activating and deactivating substreams.
[in,out] | fnEnable | Called when the first consumer request samples of a substream. |
[in,out] | fnDisable | Called when the last consumer cancels its request for samples of a substream. |
Definition at line 145 of file requestable_writer.h.
|
inlineoverridevirtual |
Sets the initial stream type of a streamer.
[in] | pStreamType | The stream type |
Implements ISampleStreamer.
Definition at line 151 of file requestable_writer.h.