Cheetah - SKA - PSS - Prototype Time Domain Search Pipeline
|
A general base class for DADA readers and writers. More...
#include <cheetah/psrdada/DadaClientBase.h>
Public Member Functions | |
DadaClientBase (key_t key, std::string const &logger_name) | |
Create a new basic DADA client instance. More... | |
DadaClientBase (DadaClientBase const &)=delete | |
std::size_t | data_buffer_size () const |
Get the sizes of each data block in the ring buffer. | |
std::size_t | header_buffer_size () const |
Get the sizes of each header block in the ring buffer. | |
std::size_t | data_buffer_count () const |
Get the number of data blocks in the ring buffer. | |
std::size_t | header_buffer_count () const |
Get the number of header blocks in the ring buffer. | |
void | connect () |
Connect to ring buffer. | |
void | disconnect () |
Disconnect from ring buffer. | |
void | reconnect () |
Reconnect to the ring buffer. | |
std::string const & | id () const |
Return a string identifier based on the buffer key and log name. | |
Protected Attributes | |
key_t | _key |
dada_hdu_t * | _hdu |
bool | _connected |
detail::MultiLog | _log |
std::string | _id |
A general base class for DADA readers and writers.
Definition at line 50 of file DadaClientBase.h.
ska::cheetah::psrdada::DadaClientBase::DadaClientBase | ( | key_t | key, |
std::string const & | logger_name | ||
) |
Create a new basic DADA client instance.
[in] | key | The hexidecimal shared memory key |
logger_name | A name to give the internal multilog instance |
Definition at line 63 of file DadaClientBase.cpp.