evio
6.0
|
Numerical values associated with evio structure types. More...
#include <StructureType.h>
Public Member Functions | |
const std::string & | getName () const |
Get the name associated with this structure type. More... | |
uint32_t | getValue () const |
Get the integer value associated with this structure type. More... | |
std::string | toString () |
Return a string which is usually the same as the name of the enumerated value, except in the cases of ALSOSEGMENT and ALSOBANK which return SEGMENT and BANK respectively. More... | |
bool | isBank () |
Convenience routine to see if "this" structure type is a bank structure. More... | |
bool | isSegment () |
Convenience routine to see if "this" structure type is a segment structure. More... | |
bool | isTagSegment () |
Convenience routine to see if "this" structure type is a tagsegment structure. More... | |
bool | operator== (const StructureType &rhs) const |
bool | operator!= (const StructureType &rhs) const |
Static Public Member Functions | |
static const StructureType & | getStructureType (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 bool | isBank (uint32_t type) |
Convenience method to see if the given integer arg represents a BANK. More... | |
static bool | isSegment (uint32_t type) |
Convenience method to see if the given integer arg represents a SEGMENT. More... | |
static bool | isTagSegment (uint32_t type) |
Convenience method to see if the given integer arg represents a TAGSEGMENT. More... | |
Static Public Attributes | |
static const StructureType | STRUCT_UNKNOWN32 = StructureType("UNKNOWN32", 0) |
Unknown data type. More... | |
static const StructureType | STRUCT_TAGSEGMENT = StructureType("TAGSEGMENT", 0xc) |
Tag segment. More... | |
static const StructureType | STRUCT_SEGMENT = StructureType("SEGMENT", 0x20, 0xd) |
Segment. More... | |
static const StructureType | STRUCT_BANK = StructureType("BANK", 0x10, 0xe) |
Bank. More... | |
Numerical values associated with evio structure types.
This class approximates the Java enum it was copied from. This class converts structure type numerical values to a more meaningful name. For example, the structure type with value 0xe corresponds to a BANK. This is mostly used for printing.
|
inlinestatic |
Get the name from the integer value.
val | the value to match. |
null
. References getStructureType().
|
inline |
Get the name associated with this structure type.
|
inlinestatic |
Get the object from the integer value.
val | the value to match. |
References STRUCT_UNKNOWN32.
Referenced by getName().
|
inline |
Get the integer value associated with this structure type.
|
inlinestatic |
Convenience method to see if the given integer arg represents a BANK.
type | the int value to match. |
true
if the structure type corresponds to a BANK. References STRUCT_BANK.
|
inline |
Convenience routine to see if "this" structure type is a bank structure.
true
if this structure type corresponds to a bank structure. References STRUCT_BANK.
|
inlinestatic |
Convenience method to see if the given integer arg represents a SEGMENT.
type | the int value to match. |
true
if the structure type corresponds to a SEGMENT. References STRUCT_SEGMENT.
|
inline |
Convenience routine to see if "this" structure type is a segment structure.
true
if this structure type corresponds to a segment structure. References STRUCT_SEGMENT.
|
inlinestatic |
Convenience method to see if the given integer arg represents a TAGSEGMENT.
type | the int value to match. |
true
if the structure type corresponds to a TAGSEGMENT. References STRUCT_TAGSEGMENT.
|
inline |
Convenience routine to see if "this" structure type is a tagsegment structure.
true
if this structure type corresponds to a tagsegment structure. References STRUCT_TAGSEGMENT.
bool evio::StructureType::operator!= | ( | const StructureType & | rhs | ) | const |
bool evio::StructureType::operator== | ( | const StructureType & | rhs | ) | const |
|
inline |
Return a string which is usually the same as the name of the enumerated value, except in the cases of ALSOSEGMENT and ALSOBANK which return SEGMENT and BANK respectively.
Referenced by evio::BaseStructure::toString().
|
static |
|
static |
Segment.
Referenced by evio::EventBuilder::addChild(), evio::EvioSegment::getStructureType(), and isSegment().
|
static |
Tag segment.
Referenced by evio::EventBuilder::addChild(), evio::EvioTagSegment::getStructureType(), and isTagSegment().
|
static |
Unknown data type.
Referenced by getStructureType(), and evio::BaseStructure::getStructureType().