GSI Object Oriented Online Offline (Go4)
GO4-6.3.0
|
#include <TGo4HDF5DataHandle.h>
Public Member Functions | |
TGo4HDF5BasicDataHandle (const char *name, size_t datasize) | |
virtual | ~TGo4HDF5BasicDataHandle () |
void | BuildReadDataset (H5::H5File *file, TGo4HDF5Source *parent) override |
void | BuildWriteDataset (H5::H5File *file) override |
void | Read (hsize_t sequencenum, H5::H5File *file) override |
void | Write (hsize_t sequencenum, H5::H5File *file) override |
![]() | |
TGo4HDF5DataHandle (const char *name, size_t datasize) | |
virtual | ~TGo4HDF5DataHandle () |
H5::CompType * | GetType () const |
const char * | GetTypeName () const |
void * | Data () const |
void | InsertTypeMember (const H5std_string &name, size_t offset, const H5::DataType &new_member) |
void | SetParentOffset (size_t off) |
virtual void | SetObjectPointer (void *memptr) |
void | SetTopEvent (TGo4EventElement *eve) |
void | SetTopEventClass (const char *classname) |
void | SetMemberName (const char *name) |
void | SetMemberClass (const char *clname) |
TGo4HDF5DataHandle * | AddSubMember (const char *name, size_t datasize, const char *collectiontype=nullptr) |
TGo4HDF5DataHandle * | GetSubMember (UInt_t ix) |
TGo4HDF5DataHandle * | FindSubMember (const char *name) |
void | SetActive (Bool_t on) |
void | SetAllSubMembersActive (Bool_t on) |
Protected Member Functions | |
void | AllocReadBuffer (size_t size) |
Protected Attributes | |
Char_t * | fxReadBuffer {nullptr} |
![]() | |
TString | fxTypeName |
H5::CompType * | fxType {nullptr} |
H5::DataSet | fxDataSet |
H5::DataSpace * | fxDataSpace {nullptr} |
H5::DataSpace | fxFileSpace |
ULong_t | fiEntries {0} |
void * | fxData {nullptr} |
size_t | fiParentOffset {0} |
size_t | fiDataSize {0} |
size_t | fiReadOffset {0} |
std::vector< TGo4HDF5DataHandle * > | fxSubcomponents |
TString | fxMemberHandle |
TString | fxMemberClass |
TGo4EventElement * | fxEvent {nullptr} |
TString | fxEventClass |
TGo4HDF5Source * | fxParentSource {nullptr} |
Bool_t | fbDataSetExists {kFALSE} |
Bool_t | fbDataSetActive {kFALSE} |
Additional Inherited Members | |
![]() | |
static TGo4HDF5DataHandleFactory | fxFactory |
Handle object to access basic event type datasets in hdf5 formatted file with go4 event data
Definition at line 197 of file TGo4HDF5DataHandle.h.
TGo4HDF5BasicDataHandle::TGo4HDF5BasicDataHandle | ( | const char * | name, |
size_t | datasize | ||
) |
|
virtual |
Definition at line 229 of file TGo4HDF5DataHandle.cxx.
References TGo4HDF5DataHandle::fxTypeName, and go4hdfdbg.
|
protected |
(Re-)allocate read buffer depending on the object size read from file
Definition at line 236 of file TGo4HDF5DataHandle.cxx.
References TGo4HDF5DataHandle::fiDataSize, fxReadBuffer, and go4hdfdbg.
Referenced by BuildReadDataset().
|
overridevirtual |
create datasets and buffers for reading this structure from hdf5 file. parent pointer is given for error handling case
Reimplemented from TGo4HDF5DataHandle.
Reimplemented in TGo4HDF5SubVectorDataHandle, TGo4HDF5VectorDataHandle, and TGo4HDF5CompositeDataHandle.
Definition at line 246 of file TGo4HDF5DataHandle.cxx.
References AllocReadBuffer(), TGo4HDF5DataHandle::BuildReadDataset(), TGo4Log::Error(), TGo4HDF5DataHandle::fbDataSetExists, TGo4HDF5DataHandle::fiDataSize, TGo4HDF5DataHandle::fiEntries, TGo4HDF5DataHandle::fxDataSet, TGo4HDF5DataHandle::fxDataSpace, TGo4HDF5DataHandle::fxFileSpace, TGo4HDF5DataHandle::fxParentSource, TGo4HDF5DataHandle::fxType, TGo4HDF5DataHandle::fxTypeName, go4hdfdatahandlethrow, go4hdfdbg, go4init::msg, and TGo4EventSource::SetErrMess().
Referenced by TGo4HDF5CompositeDataHandle::BuildReadDataset(), and TGo4HDF5VectorDataHandle::BuildReadDataset().
|
overridevirtual |
create datasets for writing memory structure of type into file.
Reimplemented from TGo4HDF5DataHandle.
Reimplemented in TGo4HDF5SubVectorDataHandle, TGo4HDF5VectorDataHandle, and TGo4HDF5CompositeDataHandle.
Definition at line 402 of file TGo4HDF5DataHandle.cxx.
References TGo4HDF5DataHandle::BuildWriteDataset(), TGo4HDF5DataHandle::fbDataSetActive, TGo4HDF5DataHandle::fbDataSetExists, TGo4HDF5DataHandle::fxData, TGo4HDF5DataHandle::fxDataSet, TGo4HDF5DataHandle::fxDataSpace, TGo4HDF5DataHandle::fxType, TGo4HDF5DataHandle::fxTypeName, and go4hdfdbg.
Referenced by TGo4HDF5CompositeDataHandle::BuildWriteDataset().
|
overridevirtual |
Read event of sequence number from file
Reimplemented from TGo4HDF5DataHandle.
Reimplemented in TGo4HDF5SubVectorDataHandle, TGo4HDF5VectorDataHandle, and TGo4HDF5CompositeDataHandle.
Definition at line 423 of file TGo4HDF5DataHandle.cxx.
References TGo4HDF5DataHandle::fbDataSetActive, TGo4HDF5DataHandle::fiDataSize, TGo4HDF5DataHandle::fiReadOffset, TGo4HDF5DataHandle::fxData, TGo4HDF5DataHandle::fxDataSet, TGo4HDF5DataHandle::fxDataSpace, TGo4HDF5DataHandle::fxFileSpace, fxReadBuffer, TGo4HDF5DataHandle::fxType, and TGo4HDF5DataHandle::Read().
Referenced by TGo4HDF5CompositeDataHandle::Read().
|
overridevirtual |
Write event of sequence number from file
Reimplemented from TGo4HDF5DataHandle.
Reimplemented in TGo4HDF5SubVectorDataHandle, TGo4HDF5VectorDataHandle, and TGo4HDF5CompositeDataHandle.
Definition at line 449 of file TGo4HDF5DataHandle.cxx.
References TGo4HDF5DataHandle::fbDataSetActive, TGo4HDF5DataHandle::fxData, TGo4HDF5DataHandle::fxDataSet, TGo4HDF5DataHandle::fxDataSpace, TGo4HDF5DataHandle::fxFileSpace, TGo4HDF5DataHandle::fxType, TGo4HDF5DataHandle::fxTypeName, go4hdfdbg, and TGo4HDF5DataHandle::Write().
Referenced by TGo4HDF5CompositeDataHandle::Write().
|
protected |
secondary read bounce buffer for hdf5
Definition at line 228 of file TGo4HDF5DataHandle.h.
Referenced by AllocReadBuffer(), and Read().