xrootd
Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes
XrdPosixFile Class Reference
Inheritance diagram for XrdPosixFile:
Inheritance graph
[legend]
Collaboration diagram for XrdPosixFile:
Collaboration graph
[legend]

List of all members.

Public Member Functions

int Active ()
void isOpen ()
long long Offset ()
long long addOffset (long long offs, int updtSz=0)
long long FSize ()
const char * Path ()
int Read (char *Buff, long long Offs, int Len)
int Sync ()
int Trunc (long long Offset)
int Write (char *Buff, long long Offs, int Len)
long long setOffset (long long offs)
void Lock ()
void UnLock ()
void OpenComplete (XrdClientAbs *clientP, void *cbArg, bool res)
 XrdPosixFile (int fd, const char *path, int oMode, XrdPosixCallBack *cbP=0, int Opts=realFD)
 ~XrdPosixFile ()

Public Attributes

XrdOucCacheIO * XCio
XrdClient * XClient
XrdClientStatInfo stat
XrdPosixCallBack * theCB
XrdPosixFile * Next
char * fPath
int FD
int cbResult

Static Public Attributes

static XrdOucCache * CacheR = 0
static XrdOucCache * CacheW = 0
static char * sfSFX = 0
static int sfSLN = 0
static const int realFD = 1
static const int isSync = 2

Private Attributes

XrdSysMutex myMutex
long long currOffset
int cOpt
char doClose
char cbDone
char fdClose

Constructor & Destructor Documentation

XrdPosixFile::XrdPosixFile ( int  fd,
const char *  path,
int  oMode,
XrdPosixCallBack *  cbP = 0,
int  Opts = realFD 
)

Member Function Documentation

int XrdPosixFile::Active ( ) [inline]

References doClose.

Referenced by XrdPosixXrootd::findFP().

long long XrdPosixFile::addOffset ( long long  offs,
int  updtSz = 0 
) [inline]
long long XrdPosixFile::FSize ( ) [inline, virtual]

Implements XrdOucCacheIO.

References XrdClientStatInfo::size, and stat.

void XrdPosixFile::Lock ( ) [inline]

References XrdSysMutex::Lock(), and myMutex.

Referenced by XrdPosixXrootd::findFP().

long long XrdPosixFile::Offset ( ) [inline]
void XrdPosixFile::OpenComplete ( XrdClientAbs *  clientP,
void *  cbArg,
bool  res 
) [inline, virtual]

Implements XrdClientCallback.

References cbDone, and XrdPosixXrootd::OpenCB().

const char * XrdPosixFile::Path ( ) [virtual]
int XrdPosixFile::Read ( char *  Buff,
long long  Offs,
int  Len 
) [inline, virtual]

Implements XrdOucCacheIO.

References XrdClient::Read(), and XClient.

long long XrdPosixFile::setOffset ( long long  offs) [inline]

References currOffset.

Referenced by XrdPosixXrootd::Lseek().

int XrdPosixFile::Sync ( ) [inline, virtual]

Implements XrdOucCacheIO.

References XrdClient::Sync(), and XClient.

int XrdPosixFile::Trunc ( long long  Offset) [inline, virtual]

Implements XrdOucCacheIO.

References XrdClient::Truncate(), and XClient.

void XrdPosixFile::UnLock ( ) [inline]
int XrdPosixFile::Write ( char *  Buff,
long long  Offs,
int  Len 
) [inline, virtual]

Implements XrdOucCacheIO.

References XrdClient::Write(), and XClient.


Member Data Documentation

Referenced by isOpen().

Referenced by isOpen().

char XrdPosixFile::cbDone [private]

Referenced by OpenComplete().

Referenced by XrdPosixXrootd::OpenCB().

int XrdPosixFile::cOpt [private]

Referenced by isOpen(), and XrdPosixFile().

long long XrdPosixFile::currOffset [private]

Referenced by addOffset(), Offset(), and setOffset().

char XrdPosixFile::doClose [private]

Referenced by Active(), isOpen(), and ~XrdPosixFile().

char XrdPosixFile::fdClose [private]

Referenced by ~XrdPosixFile().

Referenced by Path(), and ~XrdPosixFile().

const int XrdPosixFile::isSync = 2 [static]

Referenced by Lock(), and UnLock().

Referenced by XrdPosixXrootd::OpenCB().

const int XrdPosixFile::realFD = 1 [static]

Referenced by XrdPosixXrootd::Open().

char * XrdPosixFile::sfSFX = 0 [static]
int XrdPosixFile::sfSLN = 0 [static]

Referenced by XrdPosixXrootd::OpenCB().


The documentation for this class was generated from the following file: