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

Public Member Functions | |
| Win32FilePeer (File *file) | |
| virtual | ~Win32FilePeer () |
| virtual 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 () |
| returns the size of the file in bytes | |
| 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 | updateStat (File::StatMask statMask=File::smMaskAll) |
| 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 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 the file if the last character in the filename_ is a 'DirectorySeparator' 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 | |
| virtual void | initFileSearch (Directory::Finder *finder) |
| initialize the search and allocates meemory if necessary | |
| virtual File * | findNextFileInSearch (Directory::Finder *finder) |
| the core of the search 'engine' | |
| virtual void | endFileSearch (Directory::Finder *finder) |
| finalize the search closing any handles if necessary | |
| virtual void | continueSearch (Directory::Finder *finder, File *file) |
| sets the finder to continue the search in the next subdirectory yet to search and switch displayMode if necessary | |
| virtual void | goDirDown (Directory::Finder *finder, File *file) |
| sets the finder for a search one level down in the directory tree | |
| virtual void | goDirUp (Directory::Finder *finder, File *file) |
| sets the finder for the first level up in the directory tree in which the search has not been completed yet | |
| HANDLE | getFileHandle () |
Static Public Member Functions | |
| static DateTime | convertFileTimeToDateTime (const FILETIME &ft) |
| static DateTime | convertUtcFileTimeToLocalDateTime (const FILETIME &ftUtc) |
| static String | getAlternateFileName (const String &fileName) |
| Windows specific function: gets the alternate filename of a file This is the the old dos name composed of 8+3 characters. | |
| static File * | updateFindDataInfos (File *file, Win32FindData *findData, File::StatMask statMask=File::smMaskAll) |
| copies the data contained in our Win32FindData structure into File Be careful! This function, beside the other informations, it copies the baseName only, not the is full path. | |
| static uint32 | convertAttributesFromSystemSpecific (const uint32 &dwAttributes) |
| converts the file attributes from the OS specific format into the vcf format. | |
| static uint32 | convertAttributesToSystemSpecific (File::FileAttributes dwAttributes) |
| converts the file attributes from the vcf format into the OS specific format. | |
Protected Member Functions | |
| void | initDataSearch () |
Static Protected Member Functions | |
| static void | copyFromAttributeData (File *file, WIN32_FILE_ATTRIBUTE_DATA &fileAttribData, File::StatMask statMask=File::smMaskAll) |
Protected Attributes | |
| Win32FindData * | findData_ |
| HANDLE | searchHandle_ |
| HANDLE | fileHandle_ |
| File * | file_ |
Classes | |
| class | Win32FindData |
| class | Win32FindDataA |
| class | Win32FindDataW |
Constructor & Destructor Documentation
|
|
|
|
|
|
Member Function Documentation
|
|
closes the file if open it can be called even if it was not opened
Implements VCF::FilePeer. |
|
||||||||||||
|
sets the finder to continue the search in the next subdirectory yet to search and switch displayMode if necessary
|
|
|
converts the file attributes from the OS specific format into the vcf format.
|
|
|
converts the file attributes from the vcf format into the OS specific format.
|
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
copies the file into another one
Implements VCF::FilePeer. |
|
|
creates the file if the last character in the filename_ is a 'DirectorySeparator' character, then a directory is created instead of a file.
Implements VCF::FilePeer. |
|
|
finalize the search closing any handles if necessary
Implements VCF::FilePeer. |
|
|
the core of the search 'engine'
Implements VCF::FilePeer. |
|
|
Windows specific function: gets the alternate filename of a file This is the the old dos name composed of 8+3 characters.
|
|
|
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. |
|
|
|
|
|
|
|
|
returns the size of the file in bytes
Implements VCF::FilePeer. |
|
||||||||||||
|
sets the finder for a search one level down in the directory tree
|
|
||||||||||||
|
sets the finder for the first level up in the directory tree in which the search has not been completed yet
|
|
|
|
|
|
initialize the search and allocates meemory if necessary
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. |
|
||||||||||||||||
|
copies the data contained in our Win32FindData structure into File Be careful! This function, beside the other informations, it copies the baseName only, not the is full path.
|
|
|
updates the informations about the file from the file system
Implements VCF::FilePeer. |
Member Data Documentation
|
|
|
|
|
|
|
|
|
|
|
|
The documentation for this class was generated from the following file:
- vcf/FoundationKit/Win32FilePeer.h
