PAASS
Software suite to Acquire and Analyze Data from Pixie16
|
#include <hribf_buffers.h>
Public Member Functions | |
DIR_buffer () | |
Default constructor. More... | |
unsigned int | GetTotalBufferSize () |
unsigned int | GetRunNumber () |
void | SetRunNumber (unsigned int input_) |
virtual bool | Write (std::ofstream *file_) |
virtual bool | Read (std::ifstream *file_) |
Read a DIR buffer from a file. Return false if buffer has the wrong header and return true otherwise. More... | |
virtual void | Reset () |
Set initial values. More... | |
void | Print () |
Print dir buffer information. More... | |
void | PrintDelimited (const char &delimiter_='\t') |
Print dir buffer information in a delimited list. More... | |
![]() | |
unsigned int | GetBufferType () |
unsigned int | GetBufferSize () |
unsigned int | GetBufferEndFlag () |
bool | DebugMode () |
void | SetDebugMode (bool debug_=true) |
bool | ReadHeader (std::ifstream *file_) |
Return true if the first word of the current buffer is equal to this buffer type. More... | |
Private Attributes | |
unsigned int | total_buff_size |
unsigned int | run_num |
unsigned int | unknown [3] |
Additional Inherited Members | |
![]() | |
BufferType (unsigned int bufftype_, unsigned int buffsize_, unsigned int buffend_=0xFFFFFFFF) | |
Generic BufferType constructor. More... | |
![]() | |
unsigned int | bufftype |
unsigned int | buffsize |
unsigned int | buffend |
unsigned int | zero |
bool | debug_mode |
Definition at line 156 of file hribf_buffers.h.
DIR_buffer::DIR_buffer | ( | ) |
Default constructor.
Definition at line 322 of file hribf_buffers.cpp.
|
inline |
Definition at line 167 of file hribf_buffers.h.
|
inline |
Definition at line 165 of file hribf_buffers.h.
void DIR_buffer::Print | ( | void | ) |
Print dir buffer information.
Definition at line 383 of file hribf_buffers.cpp.
void DIR_buffer::PrintDelimited | ( | const char & | delimiter_ = '\t' | ) |
Print dir buffer information in a delimited list.
Definition at line 390 of file hribf_buffers.cpp.
|
virtual |
Read a DIR buffer from a file. Return false if buffer has the wrong header and return true otherwise.
Read a ldf DIR buffer.
Reimplemented from BufferType.
Definition at line 352 of file hribf_buffers.cpp.
|
virtual |
Set initial values.
Reimplemented from BufferType.
Definition at line 374 of file hribf_buffers.cpp.
|
inline |
|
virtual |
DIR buffer (1 word buffer type, 1 word buffer size, 1 word for total buffer length, 1 word for total number of buffers, 2 unknown words, 1 word for run number, 1 unknown word, and 8186 zeros).
Reimplemented from BufferType.
Definition at line 330 of file hribf_buffers.cpp.
|
private |
Definition at line 159 of file hribf_buffers.h.
|
private |
Definition at line 158 of file hribf_buffers.h.
|
private |
Definition at line 160 of file hribf_buffers.h.