GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ADF::FileBlock Class Reference

Frames are extracted/added directly, one by one from/to a file. More...

#include <FrameBlock.h>

Inheritance diagram for ADF::FileBlock:

Public Member Functions

virtual Bool_t AddFrame (const BufferIO &, UInt_t i=0u)
 Add a Frame to the block. More...
 
virtual Bool_t AddFrame (const Frame &, UInt_t i=0u)
 
virtual void BackToSnapshot ()
 back to the last position More...
 
 FileBlock (UInt_t size=aMByte, ConfAgent::EMode mode=ConfAgent::kRead)
 
virtual BufferIOGetBufferIO (UInt_t=0u)
 To get the address of the underlying buffer. More...
 
virtual BufferIOGetFrame (UInt_t=0u)
 Return a buffer that is linked with the part of the buffer that corresponds to the next frame. More...
 
virtual Long64_t GetMaxSize (UInt_t=0u) const
 max size of the block More...
 
ConfAgent::EMode GetModeIO () const
 Return the operating mode. More...
 
virtual Long64_t GetOffset (UInt_t=0u) const
 Current position. More...
 
virtual Long64_t GetSize (UInt_t=0u) const
 size of the current block More...
 
Bool_t IsEoB () const
 
Bool_t IsMode (ConfAgent::EMode mode) const
 
virtual Bool_t IsOwner (void *owner=0x0) const
 
virtual Bool_t NextFrame (Key *)
 Read next frame from file. More...
 
virtual UInt_t NumberOfChannels () const
 
virtual Bool_t Reserve (UInt_t, Bool_t=false, UInt_t=0u)
 check if enough place to write something (writing mode) More...
 
virtual void Rewind (ConfAgent::EMode=ConfAgent::kRead)
 Rewind to be ready to be used again. More...
 
virtual Bool_t SetBlock (Char_t *=0x0, UInt_t=0u, char= 'r', char= 'l', UInt_t=0u)
 Attach a external block to this. More...
 
void SetEoB (Bool_t b)
 
virtual void SetFile (FILE *file, Long64_t max_size=kMaxUInt_t)
 
virtual void SetModeIO (ConfAgent::EMode mode)
 
virtual void * SetOwner (void *owner=0x0)
 Name of the block ... used to distinguish several blocks in a topology. More...
 
virtual void Snapshot ()
 keep the position More...
 
virtual ~FileBlock ()
 

Protected Member Functions

virtual Bool_t Expand (UInt_t)
 This kind of Block is not expandable. More...
 
void Reset ()
 

Protected Attributes

BufferIO fBuffer
 The buffer to look for Frames. More...
 
BufferIO fFrame
 to wrap the current Frame More...
 
UInt_t fLastSnapshot
 

Detailed Description

Frames are extracted/added directly, one by one from/to a file.

Definition at line 367 of file FrameBlock.h.


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