Main Page | Class Hierarchy | Alphabetical List | Class List | 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

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 121 of file FileProxy.d.


Member Function Documentation

this FilePath  path  )  [inline]
 

Construct a FileProxy from the provided FilePath

Reimplemented in File.

Definition at line 131 of file FileProxy.d.

this char[]  path  )  [inline]
 

Construct a FileProxy from a text string

Reimplemented in File.

Definition at line 142 of file FileProxy.d.

References FilePath.

FilePath getPath  )  [inline]
 

Return the FilePath associated with this FileProxy

Definition at line 153 of file FileProxy.d.

char [] toString  )  [inline]
 

Return the name of the associated path

Definition at line 164 of file FileProxy.d.

References FilePath::toString().

bool isExisting  )  [inline]
 

Does this path currently exist?

Definition at line 175 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 197 of file FileProxy.d.

Referenced by FileScan::scanFiles().

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 211 of file FileProxy.d.


Member Data Documentation

FilePath path [private]
 

Definition at line 123 of file FileProxy.d.


The documentation for this class was generated from the following file:
Generated on Sat Apr 9 20:11:37 2005 for Mango by doxygen 1.3.6