Sub-block used in CORSIKA files. More...
#include <CorsikaBlock.h>
Public Member Functions | |
const char * | GetID () const |
set from c-string (for testing) More... | |
bool | Is (const char *const theID) const |
Compare ID's. More... | |
void | SetID (const char *const theID) |
set from c-string (for testing) More... | |
Static Public Attributes | |
static const size_t | kLength = 4 |
Length of sub-block identifier. More... | |
Private Attributes | |
char | fID [kLength] |
Sub-block used in CORSIKA files.
Definition at line 112 of file CorsikaBlock.h.
|
inline |
bool BlockID::Is | ( | const char *const | theID | ) | const |
Compare ID's.
Definition at line 33 of file CorsikaBlock.cc.
Referenced by io::Corsika::BasicBlock< ParticleDataUnthinned, CherenkovDataUnthinned, kParticlesInBlock, 0 >::IsEventHeader(), io::Corsika::BasicBlock< ParticleDataUnthinned, CherenkovDataUnthinned, kParticlesInBlock, 0 >::IsEventTrailer(), io::Corsika::BasicBlock< ParticleDataUnthinned, CherenkovDataUnthinned, kParticlesInBlock, 0 >::IsRunHeader(), io::Corsika::BasicBlock< ParticleDataUnthinned, CherenkovDataUnthinned, kParticlesInBlock, 0 >::IsRunTrailer(), and TestCorsikaBlock::TestID().
void BlockID::SetID | ( | const char *const | theID | ) |
set from c-string (for testing)
Definition at line 18 of file CorsikaBlock.cc.
References FATAL, fID, and kLength.
Referenced by TestCorsikaBlock::setUp(), and TestCorsikaBlock::TestIDThrow().
|
private |
Definition at line 127 of file CorsikaBlock.h.
|
static |
Length of sub-block identifier.
Definition at line 115 of file CorsikaBlock.h.