stream
0.10.0
stream analysis framework
|
Generic file storage for DABC buffers. More...
#include <dabc/BinaryFile.h>
Public Member Functions | |
bool | OpenReading (const char *fname) |
bool | OpenWriting (const char *fname) |
bool | Close () |
const BinaryFileHeader & | hdr () const |
bool | WriteBufHeader (uint64_t size, uint64_t typ=0) |
bool | WriteBufPayload (const void *ptr, uint64_t sz) |
bool | WriteBuffer (const void *ptr, uint64_t sz, uint64_t typ=0) |
bool | ReadBufHeader (uint64_t *size, uint64_t *typ=0) |
bool | ReadBufPayload (void *ptr, uint64_t sz) |
bool | ReadBuffer (void *ptr, uint64_t *sz, uint64_t *typ=0) |
![]() | |
void | SetIO (FileInterface *_io, bool _ioowner=false) |
bool | isOpened () const |
bool | isReading () const |
bool | isWriting () const |
bool | eof () const |
int | GetIntPar (const char *parname) |
Return integer file parameter. | |
bool | GetStrPar (const char *parname, char *sbuf, int sbuflen) |
Return string file parameter. | |
bool | IsRFIO () |
Returns true when RFIO is used. | |
Protected Attributes | |
BinaryFileHeader | fFileHdr |
! file header | |
BinaryFileBufHeader | fBufHdr |
! buffer header | |
![]() | |
FileInterface * | io |
! interface to the file system | |
bool | iowoner |
! if true, io object owned by file | |
FileInterface::Handle | fd |
! file descriptor | |
bool | fReadingMode |
! reading/writing mode | |
Additional Inherited Members | |
![]() | |
bool | CloseBasicFile () |
void | CheckIO () |
Generic file storage for DABC buffers.