Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

FileProxy Class Reference

Inheritance diagram for FileProxy:

IWritable File List of all members.

Public Member Functions

 this (FilePath path)
 this (char[] path)
FilePath getPath ()
char[] toString ()
bool isExisting ()
FilePath[] toList ()
void write (IWriter emit)

Private Attributes

FilePath path

Classes

class  VersionPosix
class  VersionWin32

Detailed Description

Models a generic file. Use this to manipulate files and directories in conjunction with FilePath, FileSystem and FileConduit. Doxygen has a hard time with D version() statements, so part of this class is documented in FileProxy::VersionWin32 instead.

Compile with -version=Win32SansUnicode to enable Win95 & Win32s file support.

Definition at line 120 of file FileProxy.d.


Member Function Documentation

this FilePath  path  )  [inline]
 

Construct a FileProxy from the provided FilePath

Reimplemented in File.

Definition at line 130 of file FileProxy.d.

References path.

this char[]  path  )  [inline]
 

Construct a FileProxy from a text string

Reimplemented in File.

Definition at line 141 of file FileProxy.d.

References FilePath, and path.

FilePath getPath  )  [inline]
 

Return the FilePath associated with this FileProxy

Definition at line 152 of file FileProxy.d.

References path.

Referenced by testFileSize(), and testScanFiles().

char [] toString  )  [inline]
 

Return the name of the associated path

Definition at line 163 of file FileProxy.d.

References path, and FilePath::toString().

bool isExisting  )  [inline]
 

Does this path currently exist?

Definition at line 174 of file FileProxy.d.

FilePath [] toList  )  [inline]
 

List the files contained within the associated path:

                FileProxy proxy = new FileProxy (".");

                foreach (FilePath path; proxy.toList())
                         Stdout.put(path).cr();

Definition at line 196 of file FileProxy.d.

Referenced by FileScan::scanFiles(), testFileList(), and testScanFiles().

void write IWriter  emit  )  [inline]
 

Write this FileProxy to the given IWriter. We just emit the filepath, since that's what we represent.

Reimplemented from IWritable.

Definition at line 209 of file FileProxy.d.

References path.


Member Data Documentation

FilePath path [private]
 

Definition at line 122 of file FileProxy.d.

Referenced by FileProxy::VersionPosix::createDirectory(), FileProxy::VersionWin32::createDirectory(), FileProxy::VersionPosix::createFile(), FileProxy::VersionWin32::createFile(), FileProxy::VersionPosix::getInfo(), FileProxy::VersionWin32::getInfo(), getPath(), FileProxy::VersionPosix::remove(), FileProxy::VersionWin32::remove(), this(), FileProxy::VersionPosix::toList(), FileProxy::VersionWin32::toList(), toString(), and write().


The documentation for this class was generated from the following file:
Generated on Mon Nov 14 10:59:52 2005 for Mango by  doxygen 1.4.0