|
ADTF
|
#include <streaming_source.h>
Inherits adtf::ucom::ant::level_machine< Subclass, LevelType, START_LEVEL >.
Inherited by adtf::filter::cSampleStreamingSink [protected], adtf::filter::cSampleStreamingSource [protected], adtf::streaming::ant::cSampleStreamingSink, and adtf::streaming::ant::cSampleStreamingSource.
Protected Member Functions | |
| streaming_level_machine (const streaming_level_machine &)=delete | |
| streaming_level_machine (streaming_level_machine &&)=delete | |
| streaming_level_machine & | operator= (const streaming_level_machine &)=delete |
| streaming_level_machine & | operator= (streaming_level_machine &&)=delete |
| tResult | SetLevel (IStreamingService::tStreamingState eStreamingState) |
| virtual tResult | Construct () |
| virtual tResult | Destruct () |
| virtual tResult | Init () |
| virtual tResult | Shutdown () |
| virtual tResult | StartStreaming () |
| virtual tResult | StopStreaming () |
Protected Member Functions inherited from adtf::ucom::ant::level_machine< Subclass, LevelType, START_LEVEL > | |
| virtual | ~level_machine ()=default |
| DTOR. | |
| LevelType | GetLevel () const |
Additional Inherited Members | |
Public Member Functions inherited from adtf::ucom::ant::level_machine< Subclass, LevelType, START_LEVEL > | |
| template<typename ... InnerHandlers> | |
| tResult | ChangeLevel (LevelType eLevel) |
Protected Types inherited from adtf::ucom::ant::level_machine< Subclass, LevelType, START_LEVEL > | |
| enum | tDirection : uint8_t { Inc = 0 , Dec = 1 } |
| Direction of entering a new Level. More... | |
| typedef tResult(Subclass::* | tChangeMethod) () |
Defintion of function type called within the handler implementation. | |
The Streaming Service Level Machine implementation.
|
inlineprotectedvirtual |
Construct transition while changing from tStreamingState::State_Shutdown to tStreamState::State_Constructed.
Use this transition callback to initialize your service by reading properties (of the streaming service itself, not the pins), creation of static pins, opening devices to create valid streamtypes for the pins.
After Construct is called, all pins are requested and connected.
| ERR_NOERROR | Successfully constructed |
| any | Error The Streaming Graph will stop constructing. |
|
inlineprotectedvirtual |
Destruct transition while changing from tStreamingState::State_Constructed to tStreamState::State_Shutdown.
Reimplemented in adtf::streaming::ant::cSampleStreamingSink, and adtf::streaming::ant::cSampleStreamingSource.
|
inlineprotectedvirtual |
Init transition while changing from tStreamingState::State_Constructed to tStreamState::State_Initialized.
Use this transition callback to initialize your service when it depends on the connections. Before Init is called, all pins are requested, connected and their properties are set.
| ERR_NOERROR | Successfully constructed |
| any | Error The Streaming Graph will stop initializing. |
Reimplemented in adtf::filter::cSampleStreamingSink, and adtf::filter::cSampleStreamingSource.
|
inlineprotectedvirtual |
Shutdown transition while changing from tStreamState::State_Initialized to tStreamingState::State_Constructed.
|
inlineprotectedvirtual |
StatrStreaming transition while changing from tStreamState::State_Initialized to tStreamingState::State_Streaming.
Use this transition callback to initalize and start threads and timers.
Reimplemented in adtf::filter::cSampleStreamingSink, adtf::filter::cSampleStreamingSource, adtf::streaming::ant::cSampleStreamingSink, and adtf::streaming::ant::cSampleStreamingSource.
|
inlineprotectedvirtual |
StopStreaming transition while changing from tStreamingState::State_Streaming to tStreamState::State_Initialized.
Use this transition callback to stop and destroy threads and timers.
Keep in mind, that streaming and triggers might still occur during and after this function is called. Streaming will only have stopped completely before any other following state change. If your streaming service has any blocking operations during the handling of triggers, make sure that you cancel them in this function.
| ERR_NOERROR | Successfully constructed |
| any | Error The Streaming Graph will stop starting. |
Reimplemented in adtf::filter::cSampleStreamingSink, adtf::filter::cSampleStreamingSource, adtf::streaming::ant::cSampleStreamingSink, and adtf::streaming::ant::cSampleStreamingSource.