68 void Flush()
override;
117 const char *
GetDirEntry(
void *dirp =
nullptr)
override;
120 int Unlink(
const char *path)
override;
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h offset
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t UChar_t len
Option_t Option_t TPoint TPoint const char mode
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
A TNetFile is like a normal TFile except that it reads and writes its data via a rootd server (for mo...
void Init(Bool_t create) override
Initialize a TNetFile object.
Int_t GetErrorCode() const
Bool_t ReadBuffer(char *buf, Int_t len) override
Read specified byte range from remote file via rootd daemon.
Bool_t WriteBuffer(const char *buf, Int_t len) override
Write specified byte range to remote file via rootd daemon.
Bool_t Matches(const char *url) override
Return kTRUE if 'url' matches the coordinates of this file.
virtual void Create(const char *url, Option_t *option, Int_t netopt)
Create a NetFile object.
Int_t SysStat(Int_t fd, Long_t *id, Long64_t *size, Long_t *flags, Long_t *modtime) override
Return file stat information.
Int_t SysClose(Int_t fd) override
Close currently open file.
TNetFile(const TNetFile &)
virtual void ConnectServer(Int_t *stat, EMessageTypes *kind, Int_t netopt, Int_t tcpwindowsize, Bool_t forceOpen, Bool_t forceRead)
Connect to remote rootd server.
void Print(Option_t *option) const override
Print some info about the net file.
Bool_t IsOpen() const override
Retruns kTRUE if file is open, kFALSE otherwise.
const TUrl * GetEndpointUrl() const override
Int_t Recv(Int_t &status, EMessageTypes &kind)
Return status from rootd server and message kind.
Int_t ReOpen(Option_t *mode) override
Reopen a file with a different access mode, like from READ to UPDATE or from NEW, CREATE,...
Bool_t ReadBuffers(char *buf, Long64_t *pos, Int_t *len, Int_t nbuf) override
Read a list of buffers given in pos[] and len[] and return it in a single buffer.
void Flush() override
Flush file to disk.
void PrintError(const char *where, Int_t err)
Print error string depending on error code.
void Seek(Long64_t offset, ERelativeTo pos=kBeg) override
Set position from where to start reading.
void Close(Option_t *option="") override
Close remote file.
Int_t SysOpen(const char *pathname, Int_t flags, UInt_t mode) override
Open a remote file. Requires fOption to be set correctly.
virtual ~TNetFile()
TNetFile dtor. Send close message and close socket.
TNetFile & operator=(const TNetFile &)
void Create(const char *url, TSocket *sock=nullptr)
Create a TNetSystem object.
Int_t MakeDirectory(const char *name) override
Make a directory via rootd.
TNetSystem(const TNetSystem &)=delete
void InitRemoteEntity(const char *url)
Parse and save coordinates of the remote entity (user, host, port, ...)
int Unlink(const char *path) override
Remove a path.
virtual ~TNetSystem()
Destructor.
void * GetDirPtr() const override
Bool_t ConsistentWith(const char *path, void *dirptr) override
Check consistency of this helper with the one required by 'path' or 'dirptr'.
Int_t GetPathInfo(const char *path, FileStat_t &buf) override
Get info about a file.
TNetSystem & operator=(const TNetSystem &)=delete
const char * GetDirEntry(void *dirp=nullptr) override
Get directory entry via rootd. Returns 0 in case no more entries.
void FreeDirectory(void *dirp=nullptr) override
Free directory via rootd.
Bool_t AccessPathName(const char *path, EAccessMode mode) override
Returns FALSE if one can access a file using the specified access mode.
void * OpenDirectory(const char *name) override
Open a directory and return an opaque pointer to a dir structure.
Abstract base class defining a generic interface to the underlying Operating System.
This class represents a WWW compatible URL.
@ kUseCompiledDefault
Use the compile-time default setting.