XrdSutPFile Class Reference

#include <XrdSutPFile.hh>

Collaboration diagram for XrdSutPFile:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 XrdSutPFile (const char *n, kXR_int32 openmode=kPFEcreate, kXR_int32 createmode=0600, bool hashtab=1)
 XrdSutPFile (const XrdSutPFile &f)
virtual ~XrdSutPFile ()
bool Init (const char *n, kXR_int32 openmode=kPFEcreate, kXR_int32 createmode=0600, bool hashtab=1)
kXR_int32 Open (kXR_int32 opt, bool *wasopen=0, const char *nam=0, kXR_int32 createmode=0600)
kXR_int32 Close (kXR_int32 d=-1)
const char * Name () const
bool IsValid () const
kXR_int32 LastError () const
const char * LastErrStr () const
kXR_int32 RemoveEntry (const char *name)
kXR_int32 RemoveEntry (kXR_int32 ofs)
kXR_int32 RemoveEntries (const char *name, char opt)
kXR_int32 Trim (const char *fbak=0)
kXR_int32 UpdateHeader (XrdSutPFHeader hd)
kXR_int32 WriteEntry (XrdSutPFEntry ent)
kXR_int32 UpdateCount (const char *nm, int *cnt=0, int step=1, bool reset=0)
kXR_int32 ResetCount (const char *nm)
kXR_int32 ReadCount (const char *nm, int &cnt)
kXR_int32 RetrieveHeader (XrdSutPFHeader &hd)
kXR_int32 ReadEntry (const char *name, XrdSutPFEntry &ent, int opt=0)
kXR_int32 ReadEntry (kXR_int32 ofs, XrdSutPFEntry &ent)
kXR_int32 SearchEntries (const char *name, char opt, kXR_int32 *ofs=0, kXR_int32 nofs=1)
kXR_int32 SearchSpecialEntries (kXR_int32 *ofs=0, kXR_int32 nofs=1)
kXR_int32 Browse (void *out=0)

Private Member Functions

kXR_int32 WriteHeader (XrdSutPFHeader hd)
kXR_int32 ReadHeader (XrdSutPFHeader &hd)
kXR_int32 WriteInd (kXR_int32 ofs, XrdSutPFEntInd ind)
kXR_int32 ReadInd (kXR_int32 ofs, XrdSutPFEntInd &ind)
kXR_int32 WriteEnt (kXR_int32 ofs, XrdSutPFEntry ent)
kXR_int32 ReadEnt (kXR_int32 ofs, XrdSutPFEntry &ent)
kXR_int32 Reset (kXR_int32 ofs, kXR_int32 size)
kXR_int32 UpdateHashTable (bool force=0)
kXR_int32 Err (kXR_int32 code, const char *loc, const char *em1=0, const char *em2=0)

Private Attributes

char * name
bool valid
kXR_int32 fFd
XrdOucHash< kXR_int32 > * fHashTable
kXR_int32 fHTutime
kXR_int32 fError
XrdOucString fErrStr

Friends

class XrdSutPFCache

Constructor & Destructor Documentation

XrdSutPFile::XrdSutPFile ( const char *  n,
kXR_int32  openmode = kPFEcreate,
kXR_int32  createmode = 0600,
bool  hashtab = 1 
)
XrdSutPFile::XrdSutPFile ( const XrdSutPFile f  ) 
virtual XrdSutPFile::~XrdSutPFile (  )  [virtual]

Member Function Documentation

kXR_int32 XrdSutPFile::Browse ( void *  out = 0  ) 
kXR_int32 XrdSutPFile::Close ( kXR_int32  d = -1  ) 
kXR_int32 XrdSutPFile::Err ( kXR_int32  code,
const char *  loc,
const char *  em1 = 0,
const char *  em2 = 0 
) [private]
bool XrdSutPFile::Init ( const char *  n,
kXR_int32  openmode = kPFEcreate,
kXR_int32  createmode = 0600,
bool  hashtab = 1 
)
bool XrdSutPFile::IsValid (  )  const [inline]

References valid.

kXR_int32 XrdSutPFile::LastError (  )  const [inline]

References fError.

const char* XrdSutPFile::LastErrStr (  )  const [inline]

References XrdOucString::c_str(), and fErrStr.

const char* XrdSutPFile::Name (  )  const [inline]

References name.

kXR_int32 XrdSutPFile::Open ( kXR_int32  opt,
bool *  wasopen = 0,
const char *  nam = 0,
kXR_int32  createmode = 0600 
)
kXR_int32 XrdSutPFile::ReadCount ( const char *  nm,
int &  cnt 
) [inline]

References UpdateCount().

kXR_int32 XrdSutPFile::ReadEnt ( kXR_int32  ofs,
XrdSutPFEntry ent 
) [private]
kXR_int32 XrdSutPFile::ReadEntry ( kXR_int32  ofs,
XrdSutPFEntry ent 
)
kXR_int32 XrdSutPFile::ReadEntry ( const char *  name,
XrdSutPFEntry ent,
int  opt = 0 
)
kXR_int32 XrdSutPFile::ReadHeader ( XrdSutPFHeader hd  )  [private]
kXR_int32 XrdSutPFile::ReadInd ( kXR_int32  ofs,
XrdSutPFEntInd ind 
) [private]
kXR_int32 XrdSutPFile::RemoveEntries ( const char *  name,
char  opt 
)
kXR_int32 XrdSutPFile::RemoveEntry ( kXR_int32  ofs  ) 
kXR_int32 XrdSutPFile::RemoveEntry ( const char *  name  ) 
kXR_int32 XrdSutPFile::Reset ( kXR_int32  ofs,
kXR_int32  size 
) [private]
kXR_int32 XrdSutPFile::ResetCount ( const char *  nm  )  [inline]

References UpdateCount().

kXR_int32 XrdSutPFile::RetrieveHeader ( XrdSutPFHeader hd  ) 
kXR_int32 XrdSutPFile::SearchEntries ( const char *  name,
char  opt,
kXR_int32 ofs = 0,
kXR_int32  nofs = 1 
)
kXR_int32 XrdSutPFile::SearchSpecialEntries ( kXR_int32 ofs = 0,
kXR_int32  nofs = 1 
)
kXR_int32 XrdSutPFile::Trim ( const char *  fbak = 0  ) 
kXR_int32 XrdSutPFile::UpdateCount ( const char *  nm,
int *  cnt = 0,
int  step = 1,
bool  reset = 0 
)

Referenced by ReadCount(), and ResetCount().

kXR_int32 XrdSutPFile::UpdateHashTable ( bool  force = 0  )  [private]
kXR_int32 XrdSutPFile::UpdateHeader ( XrdSutPFHeader  hd  ) 
kXR_int32 XrdSutPFile::WriteEnt ( kXR_int32  ofs,
XrdSutPFEntry  ent 
) [private]
kXR_int32 XrdSutPFile::WriteEntry ( XrdSutPFEntry  ent  ) 
kXR_int32 XrdSutPFile::WriteHeader ( XrdSutPFHeader  hd  )  [private]
kXR_int32 XrdSutPFile::WriteInd ( kXR_int32  ofs,
XrdSutPFEntInd  ind 
) [private]

Friends And Related Function Documentation

friend class XrdSutPFCache [friend]

Member Data Documentation

Referenced by LastError().

Referenced by LastErrStr().

char* XrdSutPFile::name [private]

Referenced by Name().

bool XrdSutPFile::valid [private]

Referenced by IsValid().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 16 Oct 2020 for xrootd by  doxygen 1.6.1