stream  0.10.0
stream analysis framework
Public Member Functions | Protected Attributes
dabc::BinaryFile Class Reference

Generic file storage for DABC buffers. More...

#include <dabc/BinaryFile.h>

Inheritance diagram for dabc::BinaryFile:
dabc::BasicFile

Public Member Functions

bool OpenReading (const char *fname)
 
bool OpenWriting (const char *fname)
 
bool Close ()
 
const BinaryFileHeaderhdr () 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)
 
- Public Member Functions inherited from dabc::BasicFile
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
 
- Protected Attributes inherited from dabc::BasicFile
FileInterfaceio
 ! 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

- Protected Member Functions inherited from dabc::BasicFile
bool CloseBasicFile ()
 
void CheckIO ()
 

Detailed Description

Generic file storage for DABC buffers.


The documentation for this class was generated from the following file: