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

#include <hribf_buffers.h>

Inheritance diagram for BufferType:

Public Member Functions

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...
 

Protected Member Functions

 BufferType (unsigned int bufftype_, unsigned int buffsize_, unsigned int buffend_=0xFFFFFFFF)
 Generic BufferType constructor. More...
 
virtual bool Write (std::ofstream *file_)
 Returns only false if not overloaded. More...
 
virtual bool Read (std::ifstream *file_)
 Returns only false if not overloaded. More...
 
virtual void Reset ()
 Does nothing if not overloaded. More...
 

Protected Attributes

unsigned int bufftype
 
unsigned int buffsize
 
unsigned int buffend
 
unsigned int zero
 
bool debug_mode
 

Detailed Description

Definition at line 35 of file hribf_buffers.h.

Constructor & Destructor Documentation

§ BufferType()

BufferType::BufferType ( unsigned int  bufftype_,
unsigned int  buffsize_,
unsigned int  buffend_ = 0xFFFFFFFF 
)
protected

Generic BufferType constructor.

Definition at line 68 of file hribf_buffers.cpp.

Here is the call graph for this function:

Member Function Documentation

§ DebugMode()

bool BufferType::DebugMode ( )
inline

Definition at line 61 of file hribf_buffers.h.

§ GetBufferEndFlag()

unsigned int BufferType::GetBufferEndFlag ( )
inline

Definition at line 59 of file hribf_buffers.h.

§ GetBufferSize()

unsigned int BufferType::GetBufferSize ( )
inline

Definition at line 57 of file hribf_buffers.h.

§ GetBufferType()

unsigned int BufferType::GetBufferType ( )
inline

Definition at line 55 of file hribf_buffers.h.

§ Read()

bool BufferType::Read ( std::ifstream *  file_)
protectedvirtual

Returns only false if not overloaded.

Returns only false if not overwritten.

Reimplemented in EOF_buffer, HEAD_buffer, DIR_buffer, and PLD_header.

Definition at line 83 of file hribf_buffers.cpp.

Here is the caller graph for this function:

§ ReadHeader()

bool BufferType::ReadHeader ( std::ifstream *  file_)

Return true if the first word of the current buffer is equal to this buffer type.

Definition at line 88 of file hribf_buffers.cpp.

Here is the caller graph for this function:

§ Reset()

virtual void BufferType::Reset ( void  )
inlineprotectedvirtual

Does nothing if not overloaded.

Reimplemented in EOF_buffer, DATA_buffer, HEAD_buffer, DIR_buffer, PLD_data, and PLD_header.

Definition at line 52 of file hribf_buffers.h.

Here is the caller graph for this function:

§ SetDebugMode()

void BufferType::SetDebugMode ( bool  debug_ = true)
inline

Definition at line 63 of file hribf_buffers.h.

Here is the call graph for this function:
Here is the caller graph for this function:

§ Write()

bool BufferType::Write ( std::ofstream *  file_)
protectedvirtual

Returns only false if not overloaded.

Returns only false if not overwritten.

Reimplemented in EOF_buffer, HEAD_buffer, DIR_buffer, and PLD_header.

Definition at line 78 of file hribf_buffers.cpp.

Here is the caller graph for this function:

Field Documentation

§ buffend

unsigned int BufferType::buffend
protected

Definition at line 39 of file hribf_buffers.h.

§ buffsize

unsigned int BufferType::buffsize
protected

Definition at line 38 of file hribf_buffers.h.

§ bufftype

unsigned int BufferType::bufftype
protected

Definition at line 37 of file hribf_buffers.h.

§ debug_mode

bool BufferType::debug_mode
protected

Definition at line 41 of file hribf_buffers.h.

§ zero

unsigned int BufferType::zero
protected

Definition at line 40 of file hribf_buffers.h.


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