DABC (Data Acquisition Backbone Core)  2.9.9
Public Member Functions | Protected Attributes
mbs::LmdFile Class Reference

Reading/writing LMD files (new API) More...

#include <mbs/LmdFile.h>

Inheritance diagram for mbs::LmdFile:
dabc::BasicFile

Public Member Functions

bool Close ()
 
const FileHeaderhdr () const
 
 LmdFile ()
 file header More...
 
bool OpenReading (const char *fname, const char *opt=0)
 
bool OpenWriting (const char *fname, const char *opt=nullptr)
 
bool ReadBuffer (void *ptr, uint64_t *sz, bool onlyevent=false)
 Reads buffer with several MBS events. More...
 
bool WriteBuffer (const void *ptr, uint64_t sz)
 Write buffer or part of buffer User must ensure that content of buffer is corresponds to the lmd header formatting. More...
 
 ~LmdFile ()
 
- Public Member Functions inherited from dabc::BasicFile
 BasicFile ()
 
bool eof () const
 
int GetIntPar (const char *parname)
 Return integer file parameter. More...
 
bool GetStrPar (const char *parname, char *sbuf, int sbuflen)
 Return string file parameter. More...
 
bool isOpened () const
 
bool isReading () const
 
bool IsRFIO ()
 Returns true when RFIO is used. More...
 
bool isWriting () const
 
void SetIO (FileInterface *_io, bool _ioowner=false)
 
 ~BasicFile ()
 

Protected Attributes

FileHeader fFileHdr
 
- Protected Attributes inherited from dabc::BasicFile
FileInterface::Handle fd
 if true, io object owned by file More...
 
bool fReadingMode
 file descriptor More...
 
FileInterfaceio
 
bool iowoner
 interface to the file system More...
 

Additional Inherited Members

- Protected Member Functions inherited from dabc::BasicFile
void CheckIO ()
 
bool CloseBasicFile ()
 reading/writing mode More...
 

Detailed Description

Reading/writing LMD files (new API)

New LMD file, exclude index table from previous implementation

Definition at line 35 of file LmdFile.h.

Constructor & Destructor Documentation

◆ LmdFile()

mbs::LmdFile::LmdFile ( )
inline

file header

Definition at line 41 of file LmdFile.h.

◆ ~LmdFile()

mbs::LmdFile::~LmdFile ( )
inline

Definition at line 43 of file LmdFile.h.

Member Function Documentation

◆ OpenReading()

bool mbs::LmdFile::OpenReading ( const char *  fname,
const char *  opt = 0 
)
inline

Definition at line 48 of file LmdFile.h.

◆ OpenWriting()

bool mbs::LmdFile::OpenWriting ( const char *  fname,
const char *  opt = nullptr 
)
inline

Definition at line 105 of file LmdFile.h.

◆ Close()

bool mbs::LmdFile::Close ( )
inline

Definition at line 146 of file LmdFile.h.

◆ hdr()

const FileHeader& mbs::LmdFile::hdr ( ) const
inline

Definition at line 151 of file LmdFile.h.

◆ WriteBuffer()

bool mbs::LmdFile::WriteBuffer ( const void *  ptr,
uint64_t  sz 
)
inline

Write buffer or part of buffer User must ensure that content of buffer is corresponds to the lmd header formatting.

Definition at line 155 of file LmdFile.h.

◆ ReadBuffer()

bool mbs::LmdFile::ReadBuffer ( void *  ptr,
uint64_t *  sz,
bool  onlyevent = false 
)
inline

Reads buffer with several MBS events.

Definition at line 170 of file LmdFile.h.

Field Documentation

◆ fFileHdr

FileHeader mbs::LmdFile::fFileHdr
protected

Definition at line 37 of file LmdFile.h.


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