Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

DirEntry Class Reference

#include <StatDirEntry.H>

Inheritance diagram for DirEntry:

DirObj MPKFileObj List of all members.

Public Types

enum  Kind { Directory, File }

Public Member Functions

 DirEntry (Kind kind) throw ()
virtual int Search (int verbose, Stat::Collection &stats) throw (StatError::UnevenLevels, StatError::BadMPKFile, StatError::EndOfFile, FS::Failure, FS::DoesNotExist)

Static Public Member Functions

static DirEntryOpen (const Text &path, struct stat *statBuff=NULL) throw (StatError::EndOfFile, FS::Failure, FS::DoesNotExist)
static void FSStat (const Text &path, struct stat *buffer) throw (FS::Failure, FS::DoesNotExist)

Public Attributes

Kind kind

Member Enumeration Documentation

enum DirEntry::Kind
 

Enumeration values:
Directory 
File 

Definition at line 39 of file StatDirEntry.H.


Constructor & Destructor Documentation

DirEntry::DirEntry Kind  kind  )  throw () [inline]
 

Definition at line 43 of file StatDirEntry.H.


Member Function Documentation

void DirEntry::FSStat const Text path,
struct stat *  buffer
throw (FS::Failure, FS::DoesNotExist) [static]
 

Definition at line 42 of file StatDirEntry.C.

Referenced by DirIter::Next().

DirEntry * DirEntry::Open const Text path,
struct stat *  statBuff = NULL
throw (StatError::EndOfFile, FS::Failure, FS::DoesNotExist) [static]
 

Definition at line 51 of file StatDirEntry.C.

References NEW_CONSTR.

Referenced by DirIter::Next(), and Process().

int DirEntry::Search int  verbose,
Stat::Collection stats
throw (StatError::UnevenLevels, StatError::BadMPKFile, StatError::EndOfFile, FS::Failure, FS::DoesNotExist) [virtual]
 

Reimplemented in DirObj, and MPKFileObj.

Definition at line 34 of file StatDirEntry.C.

Referenced by Process(), and DirObj::Search().


Member Data Documentation

Kind DirEntry::kind
 

Definition at line 40 of file StatDirEntry.H.


The documentation for this class was generated from the following files:
Generated on Mon May 8 00:49:09 2006 for Vesta by  doxygen 1.4.2