Cheetah - SKA - PSS - Prototype Time Domain Search Pipeline
Public Member Functions | List of all members
ska::cheetah::exporters::TestProbe< T > Class Template Reference

Attach to a stream to record the data sent. More...

#include <cheetah/exporters/TestProbe.h>

Collaboration diagram for ska::cheetah::exporters::TestProbe< T >:
Collaboration graph

Public Member Functions

 TestProbe (panda::ChannelId const &id)
 
 TestProbe (TestProbe &&probe)
 
 TestProbe (TestProbe const &)=default
 
void operator() (T const &data)
 operator to be called by the DataExport stream manager
 
std::shared_ptr< const T > data ()
 return the data data received More...
 

Detailed Description

template<typename T>
class ska::cheetah::exporters::TestProbe< T >

Attach to a stream to record the data sent.

Definition at line 42 of file TestProbe.h.

Member Function Documentation

◆ data()

template<typename T >
std::shared_ptr< const T > ska::cheetah::exporters::TestProbe< T >::data ( )

return the data data received

each subsequent call will return the next data value or a null ptr

Definition at line 54 of file TestProbe.cpp.

55 {
56  std::shared_ptr<const T> r;
57  if(_data->empty()) return r;
58  r = _data->front();
59  _data->pop_front();
60  return r;
61 }

The documentation for this class was generated from the following files: