ADTF
Loading...
Searching...
No Matches
output_recorder.h
Go to the documentation of this file.
1
7#pragma once
13
14#include <string>
15#include <memory>
16#include <map>
17#include <unordered_map>
18#include <utility>
19
20namespace adtf
21{
22
23namespace filter
24{
25
26namespace testing
27{
28
29namespace giant
30{
31
36{
37 public:
44 const char* strPinName);
45
51
56
63
70
74 class cOutput
75 {
76 public:
77 typedef std::multimap<base::flash::tNanoSeconds,
78 std::vector<std::pair<ucom::ant::object_ptr<const streaming::ant::IStreamType>,
80 public:
81 std::vector<ucom::ant::object_ptr<const streaming::ant::IStreamType>> GetTypes() const;
82 std::vector<ucom::ant::object_ptr<const streaming::ant::ISample>> GetSamples() const;
83
84 const tTriggerData& GetTrigger() const;
85
86 private:
87 friend class cOutputRecorder;
88 tTriggerData m_oTrigger;
89 };
90
96 cOutput GetCurrentOutput(bool bClear = true);
97
102
109 void RequestSamples(const char* strSubStreamName,
110 const std::unordered_map<std::string, std::string>& oProperties = {});
111
117 void RequestSamplesOfAllSubStreams(const std::unordered_map<std::string, std::string>& mapProperties = {});
118
126 tResult UnrequestSamples(const char* strSubStreamName);
127
134
135 std::vector<const streaming::IStreamingRequest*> GetStreamingRequests() const;
136
137 cOutputRecorder(const cOutputRecorder&) = delete;
138 cOutputRecorder& operator=(const cOutputRecorder&) = delete;
139
140 private:
141 class cImplementation;
142 std::unique_ptr<cImplementation> m_pImplementation;
143};
144}
145
147
148}
149}
150}
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition result.h:736
cOutputRecorder(const ucom::ant::iobject_ptr< ucom::ant::IObject > &pObject, const char *strPinName)
Definition output_recorder.h:36
bool WaitForTrigger(adtf::base::flash::tNanoSeconds tmTimeout=base::flash::tNanoSeconds{-1})
void RequestSamples(const char *strSubStreamName, const std::unordered_map< std::string, std::string > &oProperties={})
cOutputRecorder & operator=(cOutputRecorder &&oOther)
ucom::ant::object_ptr< const streaming::ant::IStreamType > GetCurrentType() const
tResult UnrequestSamples(const char *strSubStreamName)
Try to unrequest samples of a given Substream.
cOutput GetCurrentOutput(bool bClear=true)
tResult UnrequestSamplesOfAllSubStreams()
Try to unrequest samples of a given Substream.
cOutputRecorder(const ucom::ant::iobject_ptr< ucom::ant::IObject > &pObject, const char *strPinName)
void RequestSamplesOfAllSubStreams(const std::unordered_map< std::string, std::string > &mapProperties={})
Base object pointer to realize binary compatible reference counting in interface methods.
Definition object_ptr_intf.h:112
Definition object_ptr.h:384
Namespace for all testing functionality of the ADTF Filter SDK provided since v3.6.
Definition output_recorder.h:30
Namespace for all testing functionality of the ADTF Filter SDK.
Definition create_default_triggers.h:17
Namespace for the ADTF Filter SDK.
Definition configurable_runner.h:18
Namespace for all functionality provided by ADTF and its SDKs.
Definition adtf_client_connector.h:14
A timestamp with nanosecond precision.
Definition chrono.h:23