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

A single EOF buffer signals the end of a run (pacman .ldf format). A double EOF signals the end of the .ldf file. More...

#include <hribf_buffers.h>

Inheritance diagram for EOF_buffer:
Collaboration diagram for EOF_buffer:

Public Member Functions

 EOF_buffer ()
 
virtual bool Write (std::ofstream *file_)
 0x20464F45 "EOF " More...
 
virtual bool Read (std::ifstream *file_)
 Read an EOF buffer from a file. Return false if buffer has the wrong header and return true otherwise. More...
 
virtual void Reset ()
 Set initial values. 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...
 

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

A single EOF buffer signals the end of a run (pacman .ldf format). A double EOF signals the end of the .ldf file.

Definition at line 302 of file hribf_buffers.h.

Constructor & Destructor Documentation

§ EOF_buffer()

EOF_buffer::EOF_buffer ( )

Definition at line 899 of file hribf_buffers.cpp.

Member Function Documentation

§ Read()

bool EOF_buffer::Read ( std::ifstream *  file_)
virtual

Read an EOF buffer from a file. Return false if buffer has the wrong header and return true otherwise.

Read an end-of-file buffer.

Reimplemented from BufferType.

Definition at line 920 of file hribf_buffers.cpp.

§ Reset()

virtual void EOF_buffer::Reset ( void  )
inlinevirtual

Set initial values.

Reimplemented from BufferType.

Definition at line 313 of file hribf_buffers.h.

§ Write()

bool EOF_buffer::Write ( std::ofstream *  file_)
virtual

0x20464F45 "EOF "

Write an end-of-file buffer (1 word buffer type, 1 word buffer size, and 8192 end of file words).

EOF buffer (1 word buffer type, 1 word buffer size, and 8192 end of buffer words)

Reimplemented from BufferType.

Definition at line 902 of file hribf_buffers.cpp.


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