11 #ifndef EVIO_6_0_EVIOSEGMENT_H
12 #define EVIO_6_0_EVIOSEGMENT_H
54 static std::shared_ptr<EvioSegment>
getInstance(std::shared_ptr<SegmentHeader>
const & head) {
55 std::shared_ptr<EvioSegment> pNode(
new EvioSegment(head));
66 std::shared_ptr<SegmentHeader> head(
new SegmentHeader(tag, typ));
67 std::shared_ptr<EvioSegment> pNode(
new EvioSegment(head));
87 #endif //EVIO_6_0_EVIOSEGMENT_H
static std::shared_ptr< EvioSegment > getInstance(std::shared_ptr< SegmentHeader > const &head)
Method to return a shared pointer to a constructed object of this class.
Definition: EvioSegment.h:54
This is the base class for all evio structures: Banks, Segments, and TagSegments. ...
Definition: BaseStructure.h:347
This holds a CODA Segment structure.
Definition: EvioSegment.h:36
static std::shared_ptr< EvioSegment > getInstance(uint16_t tag, DataType const &typ)
Method to return a shared pointer to a constructed object of this class.
Definition: EvioSegment.h:65
static const StructureType STRUCT_SEGMENT
Segment.
Definition: StructureType.h:40
Numerical values associated with evio data types.
Definition: DataType.h:32
Numerical values associated with evio structure types.
Definition: StructureType.h:34
StructureType getStructureType() const override
This implements the virtual method from BaseStructure.
Definition: EvioSegment.h:78
BaseStructure()
Constructor.
Definition: BaseStructure.cpp:28