#ifndef ROOT_TFileCacheRead
#define ROOT_TFileCacheRead
#ifndef ROOT_TObject
#include "TObject.h"
#endif
class TFile;
class TFileCacheRead : public TObject {
protected:
Int_t fBufferSizeMin;
Int_t fBufferSize;
Int_t fBufferLen;
Int_t fBytesToPrefetch;
Int_t fFirstIndexToPrefetch;
Bool_t fAsyncReading;
Int_t fNseek;
Int_t fNtot;
Int_t fNb;
Int_t fSeekSize;
Long64_t *fSeek;
Long64_t *fSeekIndex;
Long64_t *fSeekSort;
Long64_t *fPos;
Int_t *fSeekLen;
Int_t *fSeekSortLen;
Int_t *fSeekPos;
Int_t *fLen;
TFile *fFile;
char *fBuffer;
Bool_t fIsSorted;
Bool_t fIsTransferred;
private:
TFileCacheRead(const TFileCacheRead &);
TFileCacheRead& operator=(const TFileCacheRead &);
public:
TFileCacheRead();
TFileCacheRead(TFile *file, Int_t buffersize);
virtual ~TFileCacheRead();
virtual Int_t GetBufferSize() const { return fBufferSize; };
virtual Bool_t IsAsyncReading() const { return fAsyncReading; };
virtual void Prefetch(Long64_t pos, Int_t len);
virtual void Print(Option_t *option="") const;
virtual Int_t ReadBuffer(char *buf, Long64_t pos, Int_t len);
virtual void SetFile(TFile *file);
virtual void Sort();
ClassDef(TFileCacheRead,1)
};
#endif
Last change: Wed Jun 25 08:38:59 2008
Last generated: 2008-06-25 08:38
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.