24 #ifndef SKA_CHEETAH_PSRDADA_TEST_UTILS_TESTDADADB_H 25 #define SKA_CHEETAH_PSRDADA_TEST_UTILS_TESTDADADB_H 34 namespace test_utils {
58 TestDadaDB(uint64_t nbufs = DADA_DEFAULT_BLOCK_NUM,
59 uint64_t bufsz = DADA_DEFAULT_BLOCK_SIZE,
60 uint64_t nhdrs = IPCBUF_XFERS,
61 uint64_t hdrsz = DADA_DEFAULT_HEADER_SIZE);
117 ipcbuf_t _data_block;
119 bool _data_blocks_created;
120 bool _header_blocks_created;
130 #endif // SKA_CHEETAH_PSRDADA_TEST_UTILS_TESTDADADB_H uint64_t num_data_buffers() const
Return the number of data buffers.
void destroy()
Destroy the allocated shared memory blocks.
A mock class for implementing the interface of a DADA DB (Header/Data Unit)
uint64_t num_header_buffers() const
Return the number of header buffers.
uint64_t header_buffer_size() const
Return the size of each header buffer.
Some limits and constants for FLDO.
TestDadaDB(uint64_t nbufs=DADA_DEFAULT_BLOCK_NUM, uint64_t bufsz=DADA_DEFAULT_BLOCK_SIZE, uint64_t nhdrs=IPCBUF_XFERS, uint64_t hdrsz=DADA_DEFAULT_HEADER_SIZE)
Constructa new TestDadaDB instance.
void create()
Create the data and header blocks in shared memory.
uint64_t data_buffer_size() const
Return the size of each data buffer.
key_t key() const
Return the hexidecimal shared memory key.