List of all members | Public Member Functions | Static Public Attributes | Private Attributes
io::Corsika::BlockID Class Reference

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]
 

Detailed Description

Sub-block used in CORSIKA files.

Definition at line 112 of file CorsikaBlock.h.

Member Function Documentation

const char* io::Corsika::BlockID::GetID ( ) const
inline

set from c-string (for testing)

Definition at line 121 of file CorsikaBlock.h.

References fID.

bool BlockID::Is ( const char *const  theID) const
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().

Member Data Documentation

char io::Corsika::BlockID::fID[kLength]
private

Definition at line 127 of file CorsikaBlock.h.

Referenced by GetID(), Is(), and SetID().

const size_t io::Corsika::BlockID::kLength = 4
static

Length of sub-block identifier.

Definition at line 115 of file CorsikaBlock.h.

Referenced by Is(), and SetID().


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

, generated on Tue Sep 26 2023.