![]() |
ImFusion C++ SDK 4.4.0
|
#include <ImFusion/Stream/StreamGroup.h>
Template class for creating dummy substreams fully controlled by the proxy stream. More...
Template class for creating dummy substreams fully controlled by the proxy stream.
Substream provides a lightweight implementation that makes a stream type appear as a child of Key characteristics:
Use Substream when:
Use SubstreamWrapper instead when:
Available specializations: ImageSubstream, TrackingSubstream
| BaseStream | The stream type to derive from (must derive from Stream, e.g., ImageStream, TrackingStream). |
Public Member Functions | |
| Substream (StreamGroupBase *streamGroup, std::string name) | |
| Public Member Functions inherited from ImFusion::SubstreamBase | |
| SubstreamBase (StreamGroupBase *streamGroup) | |
| Constructs a substream associated with the owning stream group. | |
| StreamGroupBase * | streamGroup () const |
| Returns the stream group this substream belongs to. | |
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. | |
| BaseStream * | stream () override final |
| Convenience method to return this pointer of the stream type the substream derived from. | |
Additional Inherited Members | |
| Protected Attributes inherited from ImFusion::SubstreamBase | |
| StreamGroupBase * | m_streamGroup = nullptr |
|
inlinefinaloverridevirtual |
Convenience method to return this pointer of the stream type the substream derived from.
Implements ImFusion::SubstreamBase.