PAASS
Software suite to Acquire and Analyze Data from Pixie16
|
#include <hribf_buffers.h>
Public Member Functions | |
HEAD_buffer () | |
Default constructor. More... | |
char * | GetFacility () |
char * | GetFormat () |
char * | GetType () |
char * | GetDate () |
char * | GetRunTitle () |
unsigned int | GetRunNumber () |
bool | SetDateTime () |
Set the date and time of the ldf file. More... | |
bool | SetTitle (std::string input_) |
Set the title of the ldf file. More... | |
void | SetRunNumber (unsigned int input_) |
virtual bool | Write (std::ofstream *file_) |
virtual bool | Read (std::ifstream *file_) |
Read a HEAD 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 header information. More... | |
void | PrintDelimited (const char &delimiter_='\t') |
Print header 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 | |
char | facility [9] |
char | format [9] |
char | type [17] |
char | date [17] |
char | run_title [81] |
unsigned int | run_num |
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 191 of file hribf_buffers.h.
HEAD_buffer::HEAD_buffer | ( | ) |
Default constructor.
Definition at line 396 of file hribf_buffers.cpp.
|
inline |
Definition at line 209 of file hribf_buffers.h.
|
inline |
Definition at line 203 of file hribf_buffers.h.
|
inline |
Definition at line 205 of file hribf_buffers.h.
|
inline |
Definition at line 213 of file hribf_buffers.h.
|
inline |
Definition at line 211 of file hribf_buffers.h.
|
inline |
Definition at line 207 of file hribf_buffers.h.
void HEAD_buffer::Print | ( | void | ) |
Print header information.
Definition at line 508 of file hribf_buffers.cpp.
void HEAD_buffer::PrintDelimited | ( | const char & | delimiter_ = '\t' | ) |
Print header information in a delimited list.
Definition at line 519 of file hribf_buffers.cpp.
|
virtual |
Read a HEAD buffer from a file. Return false if buffer has the wrong header and return true otherwise.
Read a ldf HEAD buffer.
Reimplemented from BufferType.
Definition at line 475 of file hribf_buffers.cpp.
|
virtual |
Set initial values.
Reimplemented from BufferType.
Definition at line 499 of file hribf_buffers.cpp.
bool HEAD_buffer::SetDateTime | ( | ) |
Set the date and time of the ldf file.
Definition at line 401 of file hribf_buffers.cpp.
|
inline |
bool HEAD_buffer::SetTitle | ( | std::string | input_ | ) |
Set the title of the ldf file.
Definition at line 434 of file hribf_buffers.cpp.
|
virtual |
HEAD buffer (1 word buffer type, 1 word buffer size, 2 words for facility, 2 for format, 3 for type, 1 word separator, 4 word date, 20 word title [80 character], 1 word run number, 30 words of padding, and 8129 end of buffer words)
ldf style HEAD buffer (1 word buffer type, 1 word buffer size, 2 words for facility, 2 for format, 3 for type, 1 word separator, 4 word date, 20 word title [80 character], 1 word run number, 30 words of padding, and 8129 end of buffer words).
Reimplemented from BufferType.
Definition at line 446 of file hribf_buffers.cpp.
|
private |
Definition at line 196 of file hribf_buffers.h.
|
private |
Definition at line 193 of file hribf_buffers.h.
|
private |
Definition at line 194 of file hribf_buffers.h.
|
private |
Definition at line 198 of file hribf_buffers.h.
|
private |
Definition at line 197 of file hribf_buffers.h.
|
private |
Definition at line 195 of file hribf_buffers.h.