ADTF  3.18.2
runner_fallback.h
Go to the documentation of this file.
1 
7 #pragma once
8 #include "graph_object.h"
9 #include <memory>
10 #include <functional>
11 
12 namespace adtf
13 {
14 namespace filter
15 {
16 namespace riddler
17 {
18 
25 {
26 public:
31 
36 
45  const char* strRunnerName,
46  const flash::cGraphObject::cTriggerHint& oTriggerHint,
47  std::function<void()> fnCallback);
48 
50  cRunnerFallback(const cRunnerFallback&) = delete;
51  cRunnerFallback& operator=(cRunnerFallback&&);
52  cRunnerFallback& operator=(const cRunnerFallback&) = delete;
53 
60  tResult Activate(tTimeStamp tmPeriod = 0);
61 
65  void Deactivate();
66 
67 private:
68  class cImplementation;
69  std::unique_ptr<cImplementation> m_pImplementation;
70 };
71 
72 }
73 
75 
76 }
77 }
Base class for hints that give information on which Active Runner should be connected to a newly crea...
Definition: graph_object.h:192
This class is used to provide a fallback kernel thread/timer for a runner of a streaming service.
void Deactivate()
Prevents future calls to the callback, after the function returns.
tResult Activate(tTimeStamp tmPeriod=0)
This activates the calling of the callback, either by a connected Active Runner or by creating a kern...
cRunnerFallback(streaming::ant::INamedGraphObject *pGraphObject, const char *strRunnerName, const flash::cGraphObject::cTriggerHint &oTriggerHint, std::function< void()> fnCallback)
This will create a runner with the given name at the graph object.
cRunnerFallback()
Constructs an empty fallback.
Interface for a NamedGraphObject which can be added to the FilterGraph.
Copyright © Audi Electronics Venture GmbH.
Namespace for entire ADTF SDK.