evio
6.0
|
Numerical values associated with types of a file or record header. More...
#include <HeaderType.h>
Public Member Functions | |
std::string | getName () const |
Get the object name. More... | |
uint32_t | getValue () const |
Get the integer value associated with this header type. More... | |
bool | isEvioFileHeader () const |
Is this an evio file header? More... | |
bool | isHipoFileHeader () const |
Is this a HIPO file header? More... | |
bool | isFileHeader () const |
Is this a file header? More... | |
bool | isTrailer () const |
Is this a trailer? More... | |
bool | operator== (const HeaderType &rhs) const |
bool | operator!= (const HeaderType &rhs) const |
Static Public Member Functions | |
static const HeaderType & | getHeaderType (uint32_t val) |
Get the object from the integer value. More... | |
static std::string | getName (uint32_t val) |
Get the name from the integer value. More... | |
Static Public Attributes | |
static const HeaderType | EVIO_RECORD = HeaderType(0, "EVIO_RECORD") |
Header for a general evio record. More... | |
static const HeaderType | EVIO_FILE = HeaderType(1, "EVIO_FILE") |
Header for an evio file. More... | |
static const HeaderType | EVIO_FILE_EXTENDED = HeaderType(2, "EVIO_FILE_EXTENDED") |
Header for an extended evio file. More... | |
static const HeaderType | EVIO_TRAILER = HeaderType(3, "EVIO_TRAILER") |
Header for an evio trailer record. More... | |
static const HeaderType | HIPO_RECORD = HeaderType(4, "HIPO_RECORD") |
Header for a general hipo record. More... | |
static const HeaderType | HIPO_FILE = HeaderType(5, "HIPO_FILE") |
Header for an hipo file. More... | |
static const HeaderType | HIPO_FILE_EXTENDED = HeaderType(6, "HIPO_FILE_EXTENDED") |
Header for an extended hipo file. More... | |
static const HeaderType | HIPO_TRAILER = HeaderType(7, "HIPO_TRAILER") |
Header for an hipo trailer record. More... | |
static const HeaderType | UNKNOWN = HeaderType(15, "UNKNOWN") |
Unknown header. More... | |
Numerical values associated with types of a file or record header.
The value associated with each member is stored in the header's bit-info word in the top 4 bits. Thus the lowest value is 0 and the highest (UNKNOWN) is 15. This class approximates the Java enum it was copied from.
|
inlinestatic |
|
inline |
Get the object name.
|
inlinestatic |
Get the name from the integer value.
val | the value to match. |
null
. References getHeaderType().
|
inline |
Get the integer value associated with this header type.
Referenced by evio::FileHeader::setBitInfo(), and evio::RecordHeader::setHeaderType().
|
inline |
Is this an evio file header?
true
if is an evio file header, else false
References EVIO_FILE, and EVIO_FILE_EXTENDED.
Referenced by isFileHeader(), and evio::RecordOutput::RecordOutput().
|
inline |
Is this a file header?
true
if is a file header, else false
References isEvioFileHeader(), and isHipoFileHeader().
|
inline |
Is this a HIPO file header?
true
if is an HIPO file header, else false
References HIPO_FILE, and HIPO_FILE_EXTENDED.
Referenced by isFileHeader(), and evio::RecordOutput::RecordOutput().
|
inline |
Is this a trailer?
true
if is a trailer, else false
References EVIO_TRAILER, and HIPO_TRAILER.
bool evio::HeaderType::operator!= | ( | const HeaderType & | rhs | ) | const |
bool evio::HeaderType::operator== | ( | const HeaderType & | rhs | ) | const |
|
static |
Header for an evio file.
Referenced by evio::FileHeader::FileHeader(), and isEvioFileHeader().
|
static |
|
static |
Header for a general evio record.
Referenced by evio::EventWriter::EventWriter(), evio::RecordOutput::RecordOutput(), and evio::Reader::scanBuffer().
|
static |
Header for an evio trailer record.
Referenced by isTrailer(), and evio::RecordOutput::RecordOutput().
|
static |
Header for an hipo file.
Referenced by evio::FileHeader::FileHeader(), isHipoFileHeader(), evio::Writer::Writer(), and evio::WriterMT::WriterMT().
|
static |
|
static |
Header for a general hipo record.
Referenced by evio::RecordOutput::RecordOutput().
|
static |
Header for an hipo trailer record.
Referenced by isTrailer(), and evio::RecordOutput::RecordOutput().
|
static |
Unknown header.
Referenced by getHeaderType().