xrootd
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
XrdAccAuthFile Class Reference

#include <XrdAccAuthFile.hh>

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

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 ()
 
- Public Member Functions inherited from XrdAccAuthDB
 XrdAccAuthDB ()
 
virtual ~XrdAccAuthDB ()
 

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

Enumerator
Noflags 
inRec 
isOpen 
dbError 

Constructor & Destructor Documentation

XrdAccAuthFile::XrdAccAuthFile ( XrdSysError erp)

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

XrdAccAuthFile::~XrdAccAuthFile ( )

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

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 authfn, XrdSysError::Emsg(), Eroute, modtime, and stat().

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
XrdSysMutex XrdAccAuthFile::DBcontext
private

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

XrdOucStream XrdAccAuthFile::DBfile
private

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

XrdSysError* XrdAccAuthFile::Eroute
private
DBflags XrdAccAuthFile::flags
private
time_t XrdAccAuthFile::modtime
private

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

char XrdAccAuthFile::path_buff[PATH_MAX+2]
private

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

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: