GDirImpl Class Reference

An implementation of GDirectory for the file system. More...

#include <GFile.h>

Inheritance diagram for GDirImpl:

GDirectory

List of all members.

Public Member Functions

int First (char *Path, char *Pattern)
 Starts the search. The entries '.' and '..' are never returned. The default pattern returns all files.
int Next ()
 Get the next match.
int Close ()
 Finish the search.
bool Path (char *s, int len=-1)
 Constructs the full path of the current directory entry.
GDirectoryClone ()
 Creates an copy of this type of GDirectory class.
long GetAttributes ()
 Gets the current entries attributes (platform specific).
bool IsDir ()
 Returns true if the entry is a sub-directory.
bool IsHidden ()
 Returns true if the entry is hidden. This is equivilant to a attribute flag on win32 and a leading '.' on unix.
bool IsReadOnly ()
 Returns true if the entry is read only.
char * GetName ()
 Gets the name of the current entry. (Doesn't include the path).
const uint64 GetCreationTime ()
 Gets the entries creation time. You can convert this to an easy to read for using GDateTime.
const uint64 GetLastAccessTime ()
 Gets the entries last access time. You can convert this to an easy to read for using GDateTime.
const uint64 GetLastWriteTime ()
 Gets the entries last modified time. You can convert this to an easy to read for using GDateTime.
const uint64 GetSize ()
 Returns the size of the entry.
int GetUser (bool Group)
 Gets the user id of the current entry. (Doesn't have any meaning on Win32).
int GetType ()
 Gets the type code of the current entry. See the VT_?? defines for possible values.


Detailed Description

An implementation of GDirectory for the file system.

Member Function Documentation

int GDirImpl::Close (  )  [virtual]

Finish the search.

Returns:
Non zero on success

Implements GDirectory.

Referenced by First().

int GDirImpl::First ( char *  Name,
char *  Pattern 
) [virtual]

Starts the search. The entries '.' and '..' are never returned. The default pattern returns all files.

Returns:
Non zero on success

Implements GDirectory.

References Close(), DIR_CHAR, GetName(), LGI_ALL_FILES, and Next().

int GDirImpl::Next (  )  [virtual]

Get the next match.

Returns:
Non zero on success

Implements GDirectory.

References GetName().

Referenced by First().

bool GDirImpl::Path ( char *  s,
int  BufSize = -1 
) [virtual]

Constructs the full path of the current directory entry.

Returns:
Non zero on success

Implements GDirectory.

References GetName().


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

Generated on Wed Dec 1 15:41:02 2010 for Lgi by  doxygen 1.5.7.1