VCF::LinuxFilePeer Class Reference
#include <LinuxFilePeer.h>
Inheritance diagram for VCF::LinuxFilePeer:

Public Member Functions | |
| LinuxFilePeer (File *file) | |
| virtual | ~LinuxFilePeer () |
| String | getName () |
| virtual void | setFile (File *file) |
| close any open handles, reset all internal data, and it associates itself to a given file instance. | |
| virtual uint64 | getSize () |
| gets the size of the file in bytes | |
| virtual void | updateStat (File::StatMask statMask) |
| updates the informations about the file from the file system | |
| virtual void | setFileAttributes (const File::FileAttributes fileAttributes) |
| set the fileAttributes of the file | |
| virtual bool | isExecutable () |
| tells if the file can be run by the OS. | |
| virtual void | setDateModified (const DateTime &dateModified) |
| set the modification Date of the file | |
| virtual DateTime | getDateModified () |
| get the modification date of the file | |
| virtual DateTime | getDateCreated () |
| get the creation date of the file | |
| virtual DateTime | getDateAccessed () |
| get the latest date the file has been accessed. | |
| virtual void | open (const String &fileName, uint32 openFlags=File::ofRead, File::ShareFlags shareFlags=File::shMaskAny) |
| opens a file with read/write access Closes the old one if previously opened | |
| virtual void | close () |
| closes the file if open it can be called even if it was not opened | |
| virtual void | create (uint32 openFlags) |
| 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 () |
| deletes the file from the file system | |
| virtual void | move (const String &newFileName) |
| renames/moves a file | |
| virtual void | copyTo (const String ©FileName) |
| copies the file into another one | |
| uint32 | convertAttributesFromSystemSpecific (const struct stat &st, const String &fileName) |
| virtual void | initFileSearch (Directory::Finder *finder) |
| virtual File * | findNextFileInSearch (Directory::Finder *finder) |
| virtual void | endFileSearch (Directory::Finder *finder) |
| int | getFileHandle () |
Constructor & Destructor Documentation
|
|
|
|
|
|
Member Function Documentation
|
|
closes the file if open it can be called even if it was not opened
Implements VCF::FilePeer. |
|
||||||||||||
|
|
|
|
copies the file into another one
Implements VCF::FilePeer. |
|
|
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. Implements VCF::FilePeer. |
|
|
Implements VCF::FilePeer. |
|
|
Implements VCF::FilePeer. |
|
|
get the latest date the file has been accessed.
Implements VCF::FilePeer. |
|
|
get the creation date of the file
Implements VCF::FilePeer. |
|
|
get the modification date of the file
Implements VCF::FilePeer. |
|
|
|
|
|
|
|
|
gets the size of the file in bytes
Implements VCF::FilePeer. |
|
|
Implements VCF::FilePeer. |
|
|
tells if the file can be run by the OS.
Implements VCF::FilePeer. |
|
|
renames/moves a file
Implements VCF::FilePeer. |
|
||||||||||||||||
|
opens a file with read/write access Closes the old one if previously opened
Implements VCF::FilePeer. |
|
|
deletes the file from the file system
Implements VCF::FilePeer. |
|
|
set the modification Date of the file
Implements VCF::FilePeer. |
|
|
close any open handles, reset all internal data, and it associates itself to a given file instance.
Implements VCF::FilePeer. |
|
|
set the fileAttributes of the file
Implements VCF::FilePeer. |
|
|
updates the informations about the file from the file system
Implements VCF::FilePeer. |
The documentation for this class was generated from the following file:
- vcf/FoundationKit/LinuxFilePeer.h
