12 #ifndef ROOT_TDavixFile
13 #define ROOT_TDavixFile
62 class TDavixFileInternal;
66 class TDavixFile :
public TFile {
68 TDavixFileInternal* d_ptr;
70 void Init(Bool_t init);
71 Long64_t DavixReadBuffer(Davix_fd *fd,
char *buf, Int_t len);
72 Long64_t DavixPReadBuffer(Davix_fd *fd,
char *buf, Long64_t pos, Int_t len);
73 Long64_t DavixReadBuffers(Davix_fd *fd,
char *buf, Long64_t *pos, Int_t *len, Int_t nbuf);
74 Long64_t DavixWriteBuffer(Davix_fd *fd,
const char *buf, Int_t len);
75 Int_t DavixStat(
struct stat *st)
const;
78 Double_t eventStart();
79 void eventStop(Double_t t, Long64_t len,
bool read =
true);
96 TDavixFile(
const char* url, Option_t *option=
"",
const char *ftitle=
"", Int_t compress = ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault);
101 virtual Long64_t GetSize()
const;
102 virtual void Seek(Long64_t offset, ERelativeTo pos = kBeg);
103 virtual Bool_t ReadBuffer(
char *buf, Int_t len);
104 virtual Bool_t ReadBuffer(
char *buf, Long64_t pos, Int_t len);
105 virtual Bool_t ReadBuffers(
char *buf, Long64_t *pos, Int_t *len, Int_t nbuf);
106 virtual Bool_t ReadBufferAsync(Long64_t offs, Int_t len);
107 virtual Bool_t WriteBuffer(
const char *buffer, Int_t bufferLength);
108 virtual TString GetNewUrl();
112 void setCACheck(Bool_t check);
117 void enableGridMode();
119 ClassDef(TDavixFile, 0)