xrootd
Public Member Functions | Protected Attributes | Private Attributes | List of all members
XrdOfsDirectory Class Reference

#include <XrdOfs.hh>

Inheritance diagram for XrdOfsDirectory:
Inheritance graph
[legend]
Collaboration diagram for XrdOfsDirectory:
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)
 
 XrdOfsDirectory (const char *user, int MonID)
 
virtual ~XrdOfsDirectory ()
 
- Public Member Functions inherited from XrdSfsDirectory
 XrdSfsDirectory (const char *user=0, int MonID=0)
 
virtual ~XrdSfsDirectory ()
 Destructor. More...
 

Protected Attributes

const char * tident
 
char * fname
 

Private Attributes

XrdOssDFdp
 
int atEOF
 
char dname [MAXNAMLEN]
 

Additional Inherited Members

- Public Attributes inherited from XrdSfsDirectory
XrdOucErrInfo error
 

Constructor & Destructor Documentation

◆ XrdOfsDirectory()

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

References atEOF, dp, fname, and tident.

◆ ~XrdOfsDirectory()

virtual XrdOfsDirectory::~XrdOfsDirectory ( )
inlinevirtual

References close(), and dp.

Member Function Documentation

◆ autoStat()

int XrdOfsDirectory::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.

Reimplemented from XrdSfsDirectory.

◆ close()

int XrdOfsDirectory::close ( )
virtual

Close the file.

Returns
One of SFS_OK or SFS_ERROR

Implements XrdSfsDirectory.

Referenced by ~XrdOfsDirectory().

◆ copyError()

void XrdOfsDirectory::copyError ( XrdOucErrInfo einfo)
inline

◆ FName()

const char* XrdOfsDirectory::FName ( )
inlinevirtual

Get the directory path.

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

Implements XrdSfsDirectory.

References fname.

◆ nextEntry()

const char* XrdOfsDirectory::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).

Implements XrdSfsDirectory.

◆ open()

int XrdOfsDirectory::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

◆ atEOF

int XrdOfsDirectory::atEOF
private

Referenced by XrdOfsDirectory().

◆ dname

char XrdOfsDirectory::dname[MAXNAMLEN]
private

◆ dp

XrdOssDF* XrdOfsDirectory::dp
private

◆ fname

char* XrdOfsDirectory::fname
protected

Referenced by FName(), and XrdOfsDirectory().

◆ tident

const char* XrdOfsDirectory::tident
protected

Referenced by XrdOfsDirectory().


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