Psyllid
v1.12.4
Project 8 Data Acquisisition Software
|
Wrapper class for a monarch3::M3Stream object. More...
#include <monarch3_wrap.hh>
Public Member Functions | |
stream_wrapper (monarch3::Monarch3 &, unsigned a_stream_no, monarch_wrapper *a_monarch_wrapper) | |
stream_wrapper (stream_wrapper &&a_orig) | |
~stream_wrapper () | |
stream_wrapper & | operator= (stream_wrapper &&a_orig) |
bool | is_valid () const |
monarch3::M3Record * | get_stream_record () |
Get the pointer to the stream record. More... | |
monarch3::M3Record * | get_channel_record (unsigned a_chan_no) |
Get the pointer to a particular channel record. More... | |
bool | write_record (monarch3::RecordIdType a_rec_id, monarch3::TimeType a_rec_time, const void *a_rec_block, uint64_t a_bytes, bool a_is_new_acq) |
Write the record contents to the file. More... | |
Private Member Functions | |
stream_wrapper (const stream_wrapper &)=delete | |
stream_wrapper & | operator= (const stream_wrapper &)=delete |
Private Attributes | |
monarch_wrapper * | f_monarch_wrapper |
monarch3::M3Stream * | f_stream |
bool | f_is_valid |
double | f_record_size_mb |
Friends | |
class | monarch_wrapper |
Wrapper class for a monarch3::M3Stream object.
Provides the ability to write records in a thread-safe synchronized way.
Thread synchronization strategy:
Definition at line 314 of file monarch3_wrap.hh.
stream_wrapper | ( | monarch3::Monarch3 & | a_monarch, |
unsigned | a_stream_no, | ||
monarch_wrapper * | a_monarch_wrapper | ||
) |
Definition at line 718 of file monarch3_wrap.cc.
stream_wrapper | ( | stream_wrapper && | a_orig | ) |
Definition at line 730 of file monarch3_wrap.cc.
~stream_wrapper | ( | ) |
Definition at line 740 of file monarch3_wrap.cc.
|
privatedelete |
|
inline |
Get the pointer to a particular channel record.
Definition at line 469 of file monarch3_wrap.hh.
|
inline |
Get the pointer to the stream record.
Definition at line 464 of file monarch3_wrap.hh.
|
inline |
Definition at line 459 of file monarch3_wrap.hh.
stream_wrapper & operator= | ( | stream_wrapper && | a_orig | ) |
Definition at line 743 of file monarch3_wrap.cc.
|
privatedelete |
bool write_record | ( | monarch3::RecordIdType | a_rec_id, |
monarch3::TimeType | a_rec_time, | ||
const void * | a_rec_block, | ||
uint64_t | a_bytes, | ||
bool | a_is_new_acq | ||
) |
Write the record contents to the file.
Definition at line 754 of file monarch3_wrap.cc.
|
friend |
Definition at line 337 of file monarch3_wrap.hh.
|
private |
Definition at line 342 of file monarch3_wrap.hh.
|
private |
Definition at line 339 of file monarch3_wrap.hh.
|
private |
Definition at line 344 of file monarch3_wrap.hh.
|
private |
Definition at line 341 of file monarch3_wrap.hh.