List of all members | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
io::SenecaFileParser Class Reference

#include <SenecaFileParser.h>

Public Member Functions

void CloseSenecaFile ()
 
Status FileStatus ()
 
unsigned int GetCurrentEvent ()
 
SenecaEventHeaderRecordGetCurrentEventHeader ()
 
unsigned int GetCurrentPosition ()
 
SenecaHeaderRecordGetFileHeader ()
 
Status GetNextEvent ()
 
unsigned int GetNumberEvents ()
 
SenecaParticleRecordGetParticleRecord ()
 
unsigned int GetPosition ()
 
Status GotoEvent (unsigned int theEventNumber)
 
Status GotoPosition (unsigned int thePosition)
 
Status OpenSenecaFile (const std::string &FileName, Mode mode=eRead)
 
Status ProcessFile ()
 
Status ReadParticle ()
 
 SenecaFileParser (const std::string &FileName, const Mode mode=eRead)
 
 SenecaFileParser ()
 
 ~SenecaFileParser ()
 

Public Attributes

bool EventHeaderValid
 
bool FileHeaderValid
 
bool ParticleRecordValid
 

Private Member Functions

Status DecodeEventHeader (unsigned char *Record)
 
Status DecodeFileHeader (unsigned char *Record)
 
Status DecodeParticleRecord (unsigned char *Record)
 
float SenecaDecodeFloat (unsigned char *Buffer)
 
int SenecaDecodeInt (unsigned char *Buffer)
 

Private Attributes

unsigned int CurrentEvent
 
unsigned long CurrentPosition
 
SenecaEventHeaderRecord EventHeader
 
unsigned long EventPositions [1024]
 
SenecaHeaderRecord FileHeader
 
bool FileOpen
 
unsigned int FileSize
 
unsigned int NextEvent
 
unsigned int NumberEvents
 
SenecaParticleRecord ParticleRecord
 
std::ifstream SenecaFile
 
string SenecaFileName
 

Detailed Description

Author
Jeff Allen
Date
8 Sep 2006

Definition at line 72 of file SenecaFileParser.h.

Constructor & Destructor Documentation

SenecaFileParser::SenecaFileParser ( const std::string &  FileName,
const Mode  mode = eRead 
)
SenecaFileParser::SenecaFileParser ( )
SenecaFileParser::~SenecaFileParser ( )

Definition at line 34 of file SenecaFileParser.cc.

Member Function Documentation

void SenecaFileParser::CloseSenecaFile ( )
io::Status io::SenecaFileParser::DecodeEventHeader ( unsigned char *  Record)
private

Definition at line 314 of file SenecaFileParser.cc.

References io::eFail, and io::eSuccess.

io::Status io::SenecaFileParser::DecodeFileHeader ( unsigned char *  Record)
private
io::Status io::SenecaFileParser::DecodeParticleRecord ( unsigned char *  Record)
private

Definition at line 386 of file SenecaFileParser.cc.

References io::eFail, and io::eSuccess.

io::Status io::SenecaFileParser::FileStatus ( )
unsigned int io::SenecaFileParser::GetCurrentEvent ( )

Definition at line 481 of file SenecaFileParser.cc.

io::SenecaEventHeaderRecord * io::SenecaFileParser::GetCurrentEventHeader ( )

Definition at line 174 of file SenecaFileParser.cc.

unsigned int SenecaFileParser::GetCurrentPosition ( )

Definition at line 115 of file SenecaFileParser.cc.

References FileOpen, and SenecaFile.

SenecaHeaderRecord * SenecaFileParser::GetFileHeader ( )

Definition at line 162 of file SenecaFileParser.cc.

References FileHeader, FileHeaderValid, and FileOpen.

io::Status io::SenecaFileParser::GetNextEvent ( )

Definition at line 263 of file SenecaFileParser.cc.

unsigned int io::SenecaFileParser::GetNumberEvents ( )

Definition at line 471 of file SenecaFileParser.cc.

io::SenecaParticleRecord * io::SenecaFileParser::GetParticleRecord ( )
unsigned int io::SenecaFileParser::GetPosition ( )
io::Status io::SenecaFileParser::GotoEvent ( unsigned int  theEventNumber)

Definition at line 220 of file SenecaFileParser.cc.

References io::eEOF, io::eFail, and io::eSuccess.

io::Status io::SenecaFileParser::GotoPosition ( unsigned int  thePosition)

Definition at line 198 of file SenecaFileParser.cc.

References io::eEOF, io::eFail, and io::eSuccess.

Referenced by io::SenecaShowerFileParticleIterator::Rewind().

Status SenecaFileParser::OpenSenecaFile ( const std::string &  FileName,
Mode  mode = eRead 
)
Status SenecaFileParser::ProcessFile ( )
io::Status io::SenecaFileParser::ReadParticle ( )

Definition at line 268 of file SenecaFileParser.cc.

References io::eFail, and io::eSuccess.

Referenced by io::SenecaShowerFileParticleIterator::GetOneParticle().

float io::SenecaFileParser::SenecaDecodeFloat ( unsigned char *  Buffer)
private

Definition at line 413 of file SenecaFileParser.cc.

int io::SenecaFileParser::SenecaDecodeInt ( unsigned char *  Buffer)
private

Definition at line 447 of file SenecaFileParser.cc.

Referenced by ProcessFile().

Member Data Documentation

unsigned int io::SenecaFileParser::CurrentEvent
private

Definition at line 120 of file SenecaFileParser.h.

Referenced by OpenSenecaFile().

unsigned long io::SenecaFileParser::CurrentPosition
private

Definition at line 123 of file SenecaFileParser.h.

Referenced by OpenSenecaFile(), and ProcessFile().

SenecaEventHeaderRecord io::SenecaFileParser::EventHeader
private

Definition at line 113 of file SenecaFileParser.h.

bool io::SenecaFileParser::EventHeaderValid

Definition at line 96 of file SenecaFileParser.h.

Referenced by CloseSenecaFile(), OpenSenecaFile(), and SenecaFileParser().

unsigned long io::SenecaFileParser::EventPositions[1024]
private

Definition at line 111 of file SenecaFileParser.h.

Referenced by OpenSenecaFile(), and ProcessFile().

SenecaHeaderRecord io::SenecaFileParser::FileHeader
private

Definition at line 114 of file SenecaFileParser.h.

Referenced by GetFileHeader().

bool io::SenecaFileParser::FileHeaderValid
bool io::SenecaFileParser::FileOpen
private
unsigned int io::SenecaFileParser::FileSize
private

Definition at line 122 of file SenecaFileParser.h.

Referenced by OpenSenecaFile(), and ProcessFile().

unsigned int io::SenecaFileParser::NextEvent
private

Definition at line 120 of file SenecaFileParser.h.

Referenced by OpenSenecaFile().

unsigned int io::SenecaFileParser::NumberEvents
private

Definition at line 119 of file SenecaFileParser.h.

Referenced by ProcessFile().

SenecaParticleRecord io::SenecaFileParser::ParticleRecord
private

Definition at line 115 of file SenecaFileParser.h.

bool io::SenecaFileParser::ParticleRecordValid

Definition at line 97 of file SenecaFileParser.h.

Referenced by CloseSenecaFile(), OpenSenecaFile(), and SenecaFileParser().

std::ifstream io::SenecaFileParser::SenecaFile
private
string io::SenecaFileParser::SenecaFileName
private

Definition at line 108 of file SenecaFileParser.h.

Referenced by CloseSenecaFile(), OpenSenecaFile(), and SenecaFileParser().


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

, generated on Tue Sep 26 2023.