library: libRFIO #include "TRFIOFile.h" |
TRFIOFile
class description - header file - source file - inheritance tree (.pdf)
private:
TRFIOFile()
virtual Int_t SysClose(Int_t fd)
virtual Int_t SysOpen(const char* pathname, Int_t flags, UInt_t mode)
virtual Int_t SysRead(Int_t fd, void* buf, Int_t len)
virtual Long64_t SysSeek(Int_t fd, Long64_t offset, Int_t whence)
virtual Int_t SysStat(Int_t fd, Long_t* id, Long64_t* size, Long_t* flags, Long_t* modtime)
virtual Int_t SysSync(Int_t)
virtual Int_t SysWrite(Int_t fd, const void* buf, Int_t len)
public:
TRFIOFile(const char* url, Option_t* option = "", const char* ftitle = "", Int_t compress = 1)
~TRFIOFile()
static TClass* Class()
virtual Int_t GetErrno() const
virtual TClass* IsA() const
virtual void ResetErrno() const
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
TRFIOFile
A TRFIOFile is like a normal TFile except that it reads and writes
its data via a rfiod server (for more on the rfiod daemon see
http://wwwinfo.cern.ch/pdp/serv/shift.html). TRFIOFile file names
are in standard URL format with protocol "rfio". The following are
valid TRFIOFile URL's:
rfio:/afs/cern.ch/user/r/rdm/galice.root
where galice.root is a symlink of the type /shift/.../...
rfio:na49db1:/data1/raw.root
If it is used castor 2.1 the file name can be given also in the
following ways:
rfio://host:port/?path=FILEPATH
rfio://host/?path=FILEPATH
rfio:///?path=FILEPATH
rfio://stager_host:stager_port/?path=/castor/cern.ch/user/r/
rdm/bla.root&svcClass=MYSVCLASS&castorVersion=MYCASTORVERSION
rfio://stager_host/?path=/castor/cern.ch/user/r/
rdm/bla.root&svcClass=MYSVCLASS&castorVersion=MYCASTORVERSION
rfio:///?path=/castor/cern.ch/user/r/
rdm/bla.root&svcClass=MYSVCLASS&castorVersion=MYCASTORVERSION
path is mandatory as parameter but all the other ones are optional.
TRFIOFile(const char *url, Option_t *option, const char *ftitle, Int_t compress)
Create a RFIO file object. A RFIO file is the same as a TFile
except that it is being accessed via a rfiod server. The url
argument must be of the form: rfio:/path/file.root (where file.root
is a symlink of type /shift/aaa/bbb/ccc) or rfio:server:/path/file.root.
If the file specified in the URL does not exist, is not accessable
or can not be created the kZombie bit will be set in the TRFIOFile
object. Use IsZombie() to see if the file is accessable.
For a description of the option and other arguments see the TFile ctor.
The preferred interface to this constructor is via TFile::Open().
Int_t SysOpen(const char *pathname, Int_t flags, UInt_t mode)
Interface to system open. All arguments like in POSIX open.
Long64_t SysSeek(Int_t fd, Long64_t offset, Int_t whence)
Interface to system lseek. All arguments like in POSIX lseek
except that the offset and return value are Long_t to be able to
handle 64 bit file systems.
Int_t GetErrno()
Method returning rfio_errno. For RFIO files must use this
function since we need to check rfio_errno then serrno and finally errno.
void ResetErrno()
Method resetting the rfio_errno, serrno and errno.
Author: Fons Rademakers 20/01/99 + Giulia Taurelli 29/06/2006
Last update: root/rfio:$Name: $:$Id: TRFIOFile.cxx,v 1.35 2006/07/10 13:01:13 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - Top of the page
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.