PAASS
Software suite to Acquire and Analyze Data from Pixie16
DIR_buffer Class Reference

#include <hribf_buffers.h>

Inheritance diagram for DIR_buffer:
Collaboration diagram for DIR_buffer:

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...
 
- Public Member Functions inherited from BufferType
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

- Protected Member Functions inherited from BufferType
 BufferType (unsigned int bufftype_, unsigned int buffsize_, unsigned int buffend_=0xFFFFFFFF)
 Generic BufferType constructor. More...
 
- Protected Attributes inherited from BufferType
unsigned int bufftype
 
unsigned int buffsize
 
unsigned int buffend
 
unsigned int zero
 
bool debug_mode
 

Detailed Description

Definition at line 156 of file hribf_buffers.h.

Constructor & Destructor Documentation

§ DIR_buffer()

DIR_buffer::DIR_buffer ( )

Default constructor.

Definition at line 322 of file hribf_buffers.cpp.

Here is the call graph for this function:

Member Function Documentation

§ GetRunNumber()

unsigned int DIR_buffer::GetRunNumber ( )
inline

Definition at line 167 of file hribf_buffers.h.

§ GetTotalBufferSize()

unsigned int DIR_buffer::GetTotalBufferSize ( )
inline

Definition at line 165 of file hribf_buffers.h.

§ Print()

void DIR_buffer::Print ( void  )

Print dir buffer information.

Definition at line 383 of file hribf_buffers.cpp.

Here is the caller graph for this function:

§ PrintDelimited()

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.

Here is the caller graph for this function:

§ Read()

bool DIR_buffer::Read ( std::ifstream *  file_)
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.

Here is the caller graph for this function:

§ Reset()

void DIR_buffer::Reset ( void  )
virtual

Set initial values.

Reimplemented from BufferType.

Definition at line 374 of file hribf_buffers.cpp.

Here is the caller graph for this function:

§ SetRunNumber()

void DIR_buffer::SetRunNumber ( unsigned int  input_)
inline

Definition at line 169 of file hribf_buffers.h.

Here is the call graph for this function:

§ Write()

bool DIR_buffer::Write ( std::ofstream *  file_)
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.

Field Documentation

§ run_num

unsigned int DIR_buffer::run_num
private

Definition at line 159 of file hribf_buffers.h.

§ total_buff_size

unsigned int DIR_buffer::total_buff_size
private

Definition at line 158 of file hribf_buffers.h.

§ unknown

unsigned int DIR_buffer::unknown[3]
private

Definition at line 160 of file hribf_buffers.h.


The documentation for this class was generated from the following files: