![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Stream/StreamGroup.h>
Template class for dummy substreams. More...
Template class for dummy substreams.
The Substream is tightly bound to the streamGroup stream: it syncs the stream state and does not run a doWork job on its own. The class serves as a wrapper to appear like a normal stream to the outside. Internally, it is owned and fully controlled by the proxy stream that is responsible for the stream data emission.
Public Member Functions | |
Substream (StreamGroupBase *streamGroup, std::string name, std::string uuid="") | |
![]() | |
SubstreamBase (StreamGroupBase *streamGroup) | |
StreamGroupBase * | streamGroup () const |
Returns the streamGroup stream group. | |
Synchronization of stream state with the streamGroup stream. | |
bool | openImpl () override final |
bool | closeImpl () override final |
bool | startImpl () override final |
bool | stopImpl () override final |
bool | pauseImpl () override final |
bool | resumeImpl () override final |
bool | supportsPausing () const override final |
std::optional< Stream::WorkContinuation > | doWork () override final |
Empty doWork job since it is performed in the streamGroup stream. | |
std::string | uuid () override |
BaseStream * | stream () override final |
Convenience method to return this pointer of the stream type the substream derived from. | |
Additional Inherited Members | |
![]() | |
StreamGroupBase * | m_streamGroup = nullptr |
|
inlinefinaloverridevirtual |
Convenience method to return this
pointer of the stream type the substream derived from.
Implements SubstreamBase.