11 #ifndef EVIO_6_0_STRUCTUREYPE_H
12 #define EVIO_6_0_STRUCTUREYPE_H
58 static std::string names[33];
66 StructureType(std::string name, uint32_t val, uint32_t val2=0) : name(std::move(name)), value(val), value2(val2) {}
77 return intToType[val];
85 static std::string
getName(uint32_t val) {
86 if (val > 0x20)
return "UNKNOWN32";
117 const std::string &
getName()
const {
return name;}
161 #endif //EVIO_6_0_STRUCTUREYPE_H
static const StructureType & getStructureType(uint32_t val)
Get the object from the integer value.
Definition: StructureType.h:75
bool isTagSegment()
Convenience routine to see if "this" structure type is a tagsegment structure.
Definition: StructureType.h:150
static const StructureType STRUCT_TAGSEGMENT
Tag segment.
Definition: StructureType.h:39
static const StructureType STRUCT_BANK
Bank.
Definition: StructureType.h:41
bool operator!=(const StructureType &rhs) const
Definition: StructureType.cpp:21
bool isSegment()
Convenience routine to see if "this" structure type is a segment structure.
Definition: StructureType.h:144
static bool isTagSegment(uint32_t type)
Convenience method to see if the given integer arg represents a TAGSEGMENT.
Definition: StructureType.h:109
static const StructureType STRUCT_UNKNOWN32
Unknown data type.
Definition: StructureType.h:38
static bool isBank(uint32_t type)
Convenience method to see if the given integer arg represents a BANK.
Definition: StructureType.h:95
static const StructureType STRUCT_SEGMENT
Segment.
Definition: StructureType.h:40
const std::string & getName() const
Get the name associated with this structure type.
Definition: StructureType.h:117
bool operator==(const StructureType &rhs) const
Definition: StructureType.cpp:17
uint32_t getValue() const
Get the integer value associated with this structure type.
Definition: StructureType.h:123
static std::string getName(uint32_t val)
Get the name from the integer value.
Definition: StructureType.h:85
bool isBank()
Convenience routine to see if "this" structure type is a bank structure.
Definition: StructureType.h:138
Numerical values associated with evio structure types.
Definition: StructureType.h:34
std::string toString()
Return a string which is usually the same as the name of the enumerated value, except in the cases of...
Definition: StructureType.h:132
static bool isSegment(uint32_t type)
Convenience method to see if the given integer arg represents a SEGMENT.
Definition: StructureType.h:102