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

#include <hribf_buffers.h>

Inheritance diagram for HEAD_buffer:
Collaboration diagram for HEAD_buffer:

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

char facility [9]
 
char format [9]
 
char type [17]
 
char date [17]
 
char run_title [81]
 
unsigned int run_num
 

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 191 of file hribf_buffers.h.

Constructor & Destructor Documentation

§ HEAD_buffer()

HEAD_buffer::HEAD_buffer ( )

Default constructor.

Definition at line 396 of file hribf_buffers.cpp.

Here is the call graph for this function:

Member Function Documentation

§ GetDate()

char* HEAD_buffer::GetDate ( )
inline

Definition at line 209 of file hribf_buffers.h.

§ GetFacility()

char* HEAD_buffer::GetFacility ( )
inline

Definition at line 203 of file hribf_buffers.h.

§ GetFormat()

char* HEAD_buffer::GetFormat ( )
inline

Definition at line 205 of file hribf_buffers.h.

§ GetRunNumber()

unsigned int HEAD_buffer::GetRunNumber ( )
inline

Definition at line 213 of file hribf_buffers.h.

§ GetRunTitle()

char* HEAD_buffer::GetRunTitle ( )
inline

Definition at line 211 of file hribf_buffers.h.

§ GetType()

char* HEAD_buffer::GetType ( )
inline

Definition at line 207 of file hribf_buffers.h.

§ Print()

void HEAD_buffer::Print ( void  )

Print header information.

Definition at line 508 of file hribf_buffers.cpp.

Here is the caller graph for this function:

§ PrintDelimited()

void HEAD_buffer::PrintDelimited ( const char &  delimiter_ = '\t')

Print header information in a delimited list.

Definition at line 519 of file hribf_buffers.cpp.

Here is the caller graph for this function:

§ Read()

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

Here is the caller graph for this function:

§ Reset()

void HEAD_buffer::Reset ( void  )
virtual

Set initial values.

Reimplemented from BufferType.

Definition at line 499 of file hribf_buffers.cpp.

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

§ SetDateTime()

bool HEAD_buffer::SetDateTime ( )

Set the date and time of the ldf file.

Definition at line 401 of file hribf_buffers.cpp.

§ SetRunNumber()

void HEAD_buffer::SetRunNumber ( unsigned int  input_)
inline

Definition at line 219 of file hribf_buffers.h.

Here is the call graph for this function:

§ SetTitle()

bool HEAD_buffer::SetTitle ( std::string  input_)

Set the title of the ldf file.

Definition at line 434 of file hribf_buffers.cpp.

§ Write()

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

Field Documentation

§ date

char HEAD_buffer::date[17]
private

Definition at line 196 of file hribf_buffers.h.

§ facility

char HEAD_buffer::facility[9]
private

Definition at line 193 of file hribf_buffers.h.

§ format

char HEAD_buffer::format[9]
private

Definition at line 194 of file hribf_buffers.h.

§ run_num

unsigned int HEAD_buffer::run_num
private

Definition at line 198 of file hribf_buffers.h.

§ run_title

char HEAD_buffer::run_title[81]
private

Definition at line 197 of file hribf_buffers.h.

§ type

char HEAD_buffer::type[17]
private

Definition at line 195 of file hribf_buffers.h.


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