xrootd
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
XrdSsiDir Class Reference

#include <XrdSsiDir.hh>

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

Public Member Functions

int open (const char *dirName, const XrdSecEntity *client, const char *opaque=0)
 
const char * nextEntry ()
 
int close ()
 
void copyError (XrdOucErrInfo &einfo)
 
const char * FName ()
 
int autoStat (struct stat *buf)
 
 XrdSsiDir (const char *user, int MonID)
 
virtual ~XrdSsiDir ()
 
- Public Member Functions inherited from XrdSfsDirectory
 XrdSfsDirectory (const char *user=0, int MonID=0)
 
 XrdSfsDirectory (XrdSfsDirectory &wrapD)
 
 XrdSfsDirectory (XrdOucErrInfo &eInfo)
 
virtual ~XrdSfsDirectory ()
 Destructor.
 

Private Attributes

XrdSfsDirectorydirP
 
const char * tident
 
XrdOucErrInfo myEInfo
 

Additional Inherited Members

- Public Attributes inherited from XrdSfsDirectory
XrdOucErrInfoerror
 

Constructor & Destructor Documentation

◆ XrdSsiDir()

XrdSsiDir::XrdSsiDir ( const char *  user,
int  MonID 
)
inline

◆ ~XrdSsiDir()

virtual XrdSsiDir::~XrdSsiDir ( )
inlinevirtual

References dirP.

Member Function Documentation

◆ autoStat()

int XrdSsiDir::autoStat ( struct stat buf)
virtual

Set the stat() buffer where stat information is to be placed corresponding to the directory entry returned by nextEntry().

Returns
If supported, SFS_OK should be returned. If not supported, then SFS_ERROR should be returned with error.code set to ENOTSUP.
Note
: When autoStat() is in effect, directory entries that have been deleted from the target directory are quietly skipped.

Reimplemented from XrdSfsDirectory.

◆ close()

int XrdSsiDir::close ( )
virtual

Close the directory.

Returns
One of SFS_OK or SFS_ERROR

Implements XrdSfsDirectory.

◆ copyError()

void XrdSsiDir::copyError ( XrdOucErrInfo einfo)
inline

◆ FName()

const char * XrdSsiDir::FName ( )
virtual

Get the directory path.

Returns
Null terminated string of the path used in open().

Implements XrdSfsDirectory.

◆ nextEntry()

const char * XrdSsiDir::nextEntry ( )
virtual

Get the next directory entry.

Returns
A null terminated string with the directory name. Normally, "." ".." are not returned. If a null pointer is returned then if this is due to an error, error.code should contain errno. Otherwise, error.code should contain zero to indicate that no more entries exist (i.e. end of list). See autoStat() for additional caveats.

Implements XrdSfsDirectory.

◆ open()

int XrdSsiDir::open ( const char *  path,
const XrdSecEntity client,
const char *  opaque = 0 
)
virtual

Open a directory.

Parameters
path- Pointer to the path of the directory to be opened.
client- Client's identify (see common description).
opaque- path's CGI information (see common description).
Returns
One of SFS_OK, SFS_ERROR, SFS_REDIRECT, ir SFS_STALL

Implements XrdSfsDirectory.

Member Data Documentation

◆ dirP

XrdSfsDirectory* XrdSsiDir::dirP
private

Referenced by ~XrdSsiDir().

◆ myEInfo

XrdOucErrInfo XrdSsiDir::myEInfo
private

◆ tident

const char* XrdSsiDir::tident
private

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