xrootd
Public Member Functions | Private Types | Private Member Functions | Private Attributes
XrdAccAuthFile Class Reference

#include <XrdAccAuthFile.hh>

Inheritance diagram for XrdAccAuthFile:
Inheritance graph
[legend]
Collaboration diagram for XrdAccAuthFile:
Collaboration graph
[legend]

List of all members.

Public Member Functions

int Open (XrdSysError &eroute, const char *path=0)
char getRec (char **recname)
int getPP (char **path, char **priv)
int Close ()
int Changed (const char *dbpath)
 XrdAccAuthFile (XrdSysError *erp)
 ~XrdAccAuthFile ()

Private Types

enum  DBflags { Noflags = 0, inRec = 1, isOpen = 2, dbError = 4 }

Private Member Functions

int Bail (int retc, const char *txt1, const char *txt2=0)
char * Copy (char *dp, char *sp, int dplen)

Private Attributes

XrdSysErrorEroute
DBflags flags
XrdOucStream DBfile
char * authfn
char rectype
time_t modtime
XrdSysMutex DBcontext
char recname_buff [MAXHOSTNAMELEN+1]
char path_buff [PATH_MAX+2]

Member Enumeration Documentation

enum XrdAccAuthFile::DBflags [private]
Enumerator:
Noflags 
inRec 
isOpen 
dbError 

Constructor & Destructor Documentation

XrdAccAuthFile::XrdAccAuthFile ( XrdSysError erp)

References authfn, flags, Noflags, modtime, Eroute, and path_buff.

XrdAccAuthFile::~XrdAccAuthFile ( )

References flags, isOpen, Close(), and authfn.


Member Function Documentation

int XrdAccAuthFile::Bail ( int  retc,
const char *  txt1,
const char *  txt2 = 0 
) [private]
int XrdAccAuthFile::Changed ( const char *  dbpath) [virtual]

Implements XrdAccAuthDB.

References stat(), authfn, Eroute, XrdSysError::Emsg(), and modtime.

int XrdAccAuthFile::Close ( ) [virtual]
char * XrdAccAuthFile::Copy ( char *  dp,
char *  sp,
int  dplen 
) [private]

Referenced by getPP(), and getRec().

int XrdAccAuthFile::getPP ( char **  path,
char **  priv 
) [virtual]
char XrdAccAuthFile::getRec ( char **  recname) [virtual]
int XrdAccAuthFile::Open ( XrdSysError eroute,
const char *  path = 0 
) [virtual]

Member Data Documentation

char* XrdAccAuthFile::authfn [private]

Referenced by Close(), Open(), and Bail().

Referenced by Close(), getPP(), getRec(), and Open().

time_t XrdAccAuthFile::modtime [private]

Referenced by XrdAccAuthFile(), Changed(), and Open().

char XrdAccAuthFile::path_buff[PATH_MAX+2] [private]

Referenced by XrdAccAuthFile(), getPP(), and getRec().

char XrdAccAuthFile::recname_buff[MAXHOSTNAMELEN+1] [private]

Referenced by getRec().

char XrdAccAuthFile::rectype [private]

Referenced by getRec().


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