10 #ifndef ROOT_TNetXNGFile
11 #define ROOT_TNetXNGFile
27 #include <XrdCl/XrdClFileSystem.hh>
39 enum Flags {
None = 0};
58 fFile(0), fUrl(0), fMode(
XrdCl::OpenFlags::
None), fInitCondVar(0),
59 fReadvIorMax(0), fReadvIovMax(0) {}
84 XrdCl::OpenFlags::Flags &mode,
Bool_t assumeRead);
92 #endif // ROOT_TNetXNGFile
virtual Long64_t GetSize() const
Get the file size.
virtual Bool_t WriteBuffer(const char *buffer, Int_t length)
Write a data chunk.
virtual void Init(Bool_t create)
Initialize the file.
EAsyncOpenStatus
Asynchronous open request status.
virtual void SetEnv()
Map ROOT and xrootd environment variables.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
virtual Bool_t IsUseable() const
Check the file is open and isn't a zombie.
virtual void Close(const Option_t *option="")
Close the file.
#define ClassDef(name, id)
Double_t length(const TVector2 &v)
virtual ~TNetXNGFile()
Destructor.
virtual Int_t ReOpen(Option_t *modestr)
Reopen the file with the new access mode.
virtual void Seek(Long64_t offset, ERelativeTo position=kBeg)
Set the position within the file.
Int_t ParseOpenMode(Option_t *in, TString &modestr, XrdCl::OpenFlags::Flags &mode, Bool_t assumeRead)
Parse a file open mode given as a string into a canonically formatted output mode string and an integ...
virtual Bool_t ReadBuffer(char *buffer, Int_t length)
Read a data chunk of the given size.
XrdCl::OpenFlags::Flags fMode
TNetXNGFile & operator=(const TNetXNGFile &other)
virtual Bool_t IsOpen() const
Check if the file is open.
virtual Bool_t ReadBuffers(char *buffer, Long64_t *position, Int_t *length, Int_t nbuffs)
Read scattered data chunks in one operation.
virtual TString GetNewUrl()
virtual Bool_t GetVectorReadLimits()
Find the server-specific readv config params.
XrdSysCondVar * fInitCondVar
virtual void Flush()
Synchronize a file's in-memory and on-disk states.
virtual void SetAsyncOpenStatus(EAsyncOpenStatus status)
Set the status of an asynchronous file open.