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)
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

XrdOucCacheIOXCio
XrdClientXClient
XrdClientStatInfo stat
XrdPosixCallBacktheCB
XrdPosixFileNext
int FD
int cbResult

Static Public Attributes

static XrdOucCacheCacheR = 0
static XrdOucCacheCacheW = 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
const char * iPath
short doClose
short cbDone
short fdClose

Constructor & Destructor Documentation

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

Member Function Documentation

int XrdPosixFile::Active ( ) [inline]

References doClose.

Referenced by XrdPosixXrootd::findFP().

long long XrdPosixFile::addOffset ( long long  offs,
int  updtSz = 0 
) [inline]
void XrdPosixFile::isOpen ( ) [inline]

References doClose.

Referenced by XrdPosixXrootd::Open(), and XrdPosixXrootd::OpenCB().

void XrdPosixFile::Lock ( ) [inline]

References myMutex, and XrdSysMutex::Lock().

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 ( ) [inline, virtual]
int XrdPosixFile::Read ( char *  Buff,
long long  Offs,
int  Len 
) [inline, virtual]

Implements XrdOucCacheIO.

References XClient, and XrdClient::Read().

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

References currOffset.

Referenced by XrdPosixXrootd::Lseek().

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

Implements XrdOucCacheIO.

References XClient, and XrdClient::Sync().

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

Implements XrdOucCacheIO.

References XClient, and XrdClient::Truncate().

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

Implements XrdOucCacheIO.

References XClient, and XrdClient::Write().


Member Data Documentation

Referenced by XrdPosixFile().

short XrdPosixFile::cbDone [private]

Referenced by OpenComplete().

Referenced by XrdPosixXrootd::OpenCB().

long long XrdPosixFile::currOffset [private]

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

short XrdPosixFile::doClose [private]

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

short XrdPosixFile::fdClose [private]

Referenced by ~XrdPosixFile().

const char* XrdPosixFile::iPath [private]

Referenced by Path(), and XrdPosixFile().

const int XrdPosixFile::isSync = 2 [static]

Referenced by XrdPosixFile().

Referenced by Lock(), and UnLock().

Referenced by XrdPosixXrootd::OpenCB().

const int XrdPosixFile::realFD = 1 [static]

Referenced by XrdPosixXrootd::Open().

char * XrdPosixFile::sfSFX = 0 [static]

Referenced by XrdPosixFile().

int XrdPosixFile::sfSLN = 0 [static]

Referenced by XrdPosixFile().

Referenced by XrdPosixXrootd::OpenCB().


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