VCF::FilePeer Class Reference
The FilePeer interface is used to describe basic file operations that are then implemented for the specific OS platform. More...
#include <FilePeer.h>
Inheritance diagram for VCF::FilePeer:

Public Member Functions | |
| virtual | ~FilePeer () |
| virtual void | setFile (File *file)=0 |
| close any open handles, reset all internal data, and it associates itself to a given file instance. | |
| virtual uint64 | getSize ()=0 |
| gets the size of the file in bytes | |
| virtual void | updateStat (File::StatMask statMask=File::smMaskDateAll)=0 |
| updates the informations about the file from the file system | |
| virtual void | setFileAttributes (const File::FileAttributes fileAttributes)=0 |
| set the fileAttributes of the file | |
| virtual bool | isExecutable ()=0 |
| tells if the file can be run by the OS. | |
| virtual void | setDateModified (const DateTime &dateModified)=0 |
| set the modification date of the file | |
| virtual DateTime | getDateModified ()=0 |
| get the modification date of the file | |
| virtual DateTime | getDateCreated ()=0 |
| get the creation date of the file | |
| virtual DateTime | getDateAccessed ()=0 |
| get the latest date the file has been accessed. | |
| virtual void | open (const String &fileName, uint32 openFlags=File::ofRead, File::ShareFlags shareFlags=File::shMaskAny)=0 |
| opens a file with read/write access Closes the old one if previously opened | |
| virtual void | close ()=0 |
| closes the file if open it can be called even if it was not opened | |
| virtual void | create (uint32 openFlags)=0 |
| creates a new file if the last character in the filename is a directory character, then a directory is created instead of a file. | |
| virtual void | remove ()=0 |
| deletes the file from the file system | |
| virtual void | move (const String &newFileName)=0 |
| renames/moves a file | |
| virtual void | copyTo (const String ©FileName)=0 |
| copies the file into another one | |
| virtual void | initFileSearch (Directory::Finder *finder)=0 |
| virtual File * | findNextFileInSearch (Directory::Finder *finder)=0 |
| virtual void | endFileSearch (Directory::Finder *finder)=0 |
Detailed Description
The FilePeer interface is used to describe basic file operations that are then implemented for the specific OS platform.The File class uses an internal instance of this class to perform the actual work of dealing with files.
Constructor & Destructor Documentation
|
|
|
Member Function Documentation
|
|
closes the file if open it can be called even if it was not opened
Implemented in VCF::LinuxFilePeer, VCF::OSXFilePeer, and VCF::Win32FilePeer. |
|
|
copies the file into another one
Implemented in VCF::LinuxFilePeer, VCF::OSXFilePeer, and VCF::Win32FilePeer. |
|
|
creates a new file if the last character in the filename is a directory character, then a directory is created instead of a file. The file name is omitted here as this is stored in the File instance kept by the peer. Implemented in VCF::LinuxFilePeer, VCF::OSXFilePeer, and VCF::Win32FilePeer. |
|
|
Implemented in VCF::LinuxFilePeer, VCF::OSXFilePeer, and VCF::Win32FilePeer. |
|
|
Implemented in VCF::LinuxFilePeer, VCF::OSXFilePeer, and VCF::Win32FilePeer. |
|
|
get the latest date the file has been accessed.
Implemented in VCF::LinuxFilePeer, VCF::OSXFilePeer, and VCF::Win32FilePeer. |
|
|
get the creation date of the file
Implemented in VCF::LinuxFilePeer, VCF::OSXFilePeer, and VCF::Win32FilePeer. |
|
|
get the modification date of the file
Implemented in VCF::LinuxFilePeer, VCF::OSXFilePeer, and VCF::Win32FilePeer. |
|
|
gets the size of the file in bytes
Implemented in VCF::LinuxFilePeer, VCF::OSXFilePeer, and VCF::Win32FilePeer. |
|
|
Implemented in VCF::LinuxFilePeer, VCF::OSXFilePeer, and VCF::Win32FilePeer. |
|
|
tells if the file can be run by the OS.
Implemented in VCF::LinuxFilePeer, VCF::OSXFilePeer, and VCF::Win32FilePeer. |
|
|
renames/moves a file
Implemented in VCF::LinuxFilePeer, VCF::OSXFilePeer, and VCF::Win32FilePeer. |
|
||||||||||||||||
|
opens a file with read/write access Closes the old one if previously opened
Implemented in VCF::LinuxFilePeer, VCF::OSXFilePeer, and VCF::Win32FilePeer. |
|
|
deletes the file from the file system
Implemented in VCF::LinuxFilePeer, VCF::OSXFilePeer, and VCF::Win32FilePeer. |
|
|
set the modification date of the file
Implemented in VCF::LinuxFilePeer, VCF::OSXFilePeer, and VCF::Win32FilePeer. |
|
|
close any open handles, reset all internal data, and it associates itself to a given file instance.
Implemented in VCF::LinuxFilePeer, VCF::OSXFilePeer, and VCF::Win32FilePeer. |
|
|
set the fileAttributes of the file
Implemented in VCF::LinuxFilePeer, VCF::OSXFilePeer, and VCF::Win32FilePeer. |
|
|
updates the informations about the file from the file system
Implemented in VCF::LinuxFilePeer, VCF::OSXFilePeer, and VCF::Win32FilePeer. |
The documentation for this class was generated from the following file:
- vcf/FoundationKit/FilePeer.h
