ADTF
3.18.2
|
Test Helper class that records triggers, types and samples created by a graph object. More...
Classes | |
class | cOutput |
Helper class that stores the output of a specific instant. More... | |
Public Member Functions | |
cOutputRecorder (const ucom::ant::iobject_ptr< ucom::ant::IObject > &pObject, const char *strPinName) | |
Connects to the given output pin of a graph object. More... | |
cOutputRecorder (cOutputRecorder &&oOther) | |
Move constructor. More... | |
~cOutputRecorder () | |
Destructor. | |
cOutputRecorder & | operator= (cOutputRecorder &&oOther) |
Move assignment operator. More... | |
bool | WaitForTrigger (adtf::base::flash::tNanoSeconds tmTimeout=base::flash::tNanoSeconds{-1}) |
This blocks the calling context until either a trigger occured or the given timeout expired. More... | |
cOutput | GetCurrentOutput (bool bClear=true) |
Returns the current output data. More... | |
ucom::ant::object_ptr< const streaming::ant::IStreamType > | GetCurrentType () const |
Returns the current stream type. | |
void | RequestSamples (const char *strSubStreamName, const std::unordered_map< std::string, std::string > &oProperties={}) |
Try to request samples of a given Substream. More... | |
tResult | UnrequestSamples (const char *strSubStreamName) |
Try to unrequest samples of a given Substream. More... | |
cOutputRecorder (const cOutputRecorder &)=delete | |
cOutputRecorder & | operator= (const cOutputRecorder &)=delete |
Private Attributes | |
std::unique_ptr< cImplementation > | m_pImplementation |
Test Helper class that records triggers, types and samples created by a graph object.
Definition at line 33 of file output_recorder.h.
cOutputRecorder | ( | const ucom::ant::iobject_ptr< ucom::ant::IObject > & | pObject, |
const char * | strPinName | ||
) |
Connects to the given output pin of a graph object.
[in] | pObject | The graph object. |
[in] | strPinName | The name of the output Pin. |
cOutputRecorder | ( | cOutputRecorder && | oOther | ) |
Move constructor.
[in] | oOther | The instance that should be moved. |
cOutput GetCurrentOutput | ( | bool | bClear = true | ) |
Returns the current output data.
[in] | bClear | If true, the internal output storage will be cleared. |
cOutputRecorder& operator= | ( | cOutputRecorder && | oOther | ) |
Move assignment operator.
[in] | oOther | The instance that should be moved. |
void RequestSamples | ( | const char * | strSubStreamName, |
const std::unordered_map< std::string, std::string > & | oProperties = {} |
||
) |
Try to request samples of a given Substream.
[in] | strSubStreamName | The name of the Substream. |
[in] | oProperties | A set of request Properties (name/value pairs). |
tResult UnrequestSamples | ( | const char * | strSubStreamName | ) |
Try to unrequest samples of a given Substream.
[in] | strSubStreamName | The name of the Substream. |
bool WaitForTrigger | ( | adtf::base::flash::tNanoSeconds | tmTimeout = base::flash::tNanoSeconds{-1} | ) |
This blocks the calling context until either a trigger occured or the given timeout expired.
[in] | tmTimeout | The timeout, -1 => wait indefinitely. |