19 #ifndef DABC_BinaryFile
41 bool OpenWrite(
const char* fname, uint32_t rid=0,
const char* opt = 0);
45 bool OpenRead(
const char* fname,
const char* opt = 0);
61 bool ReadBuffer(
void* ptr, uint32_t* bufsize,
bool onlyevent =
false);
Base class for file writing/reading in DABC.
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...
bool WriteBuffer(void *buf, uint32_t bufsize)
Write user buffer to file without reformatting User must be aware about correct formatting of data.
bool OpenRead(const char *fname, const char *opt=0)
Opened file for reading.
uint32_t GetRunId() const
Returns runid, assigned with the file.
bool eof() const
When file open for reading, method returns true when file end was achieved.
HldFile()
flag indicate that end-of-file was reached
bool OpenWrite(const char *fname, uint32_t rid=0, const char *opt=0)
Open file with specified name for writing.
Support for HADAQ - HADES DAQ