17 #ifndef DABC_BinaryFile
18 #include "dabc/BinaryFile.h"
22 #include "hadaq/definess.h"
39 bool OpenWrite(
const char* fname, uint32_t rid=0);
59 bool ReadBuffer(
void* ptr, uint32_t* bufsize,
bool onlyevent =
false);
Base class for file writing/reading in DABC.
Definition: BinaryFile.h:84
Reading of HLD files.
Definition: HldFile.h:29
bool ReadBuffer(void *ptr, uint32_t *bufsize, bool onlyevent=false)
Read one or several elements to provided user buffer When called, bufsize should has available buffer...
Definition: HldFile.cxx:140
bool WriteBuffer(void *buf, uint32_t bufsize)
Write user buffer to file without reformatting User must be aware about correct formatting of data.
Definition: HldFile.cxx:127
void Close()
Close file.
Definition: HldFile.cxx:110
uint32_t GetRunId() const
Returns runid, assigned with the file.
Definition: HldFile.h:49
bool eof() const
When file open for reading, method returns true when file end was achieved.
Definition: HldFile.h:52
bool OpenWrite(const char *fname, uint32_t rid=0)
Open file with specified name for writing.
Definition: HldFile.cxx:33
uint32_t fRunNumber
! run number
Definition: HldFile.h:31
bool fEOF
! flag indicate that end-of-file was reached
Definition: HldFile.h:32
bool OpenRead(const char *fname)
Opened file for reading.
Definition: HldFile.cxx:65