zeus::TFile Class Reference
#include <File.h>
List of all members.
Detailed Description
The directory class implements methods to access the system directory
Constructor & Destructor Documentation
| TFile::TFile |
( |
const IString & |
rAbsName |
) |
|
Creates an new file wrapper object
- Parameters:
-
| rAbsName | : Name of the file |
Creates a file wrapper out of a directory item
- Parameters:
-
| rItem | : Item containing the informations |
| TFile::TFile |
( |
TString |
strAbsName |
) |
|
Creates an new file wrapper object
- Parameters:
-
| strAbsName | : Name of the file |
| TFile::TFile |
( |
const IString & |
rFileRootPath, |
|
|
const IString & |
rFileName | |
|
) |
| | |
Creates a file wrapper out of a root directory and a file name (path)
- Parameters:
-
| rFileRootPath | : Root directory. Note that the path should end with '/' or '\' separator |
| rFileName | : File name (path). Leading '/' or '\' will be ignored |
| TFile::TFile |
( |
const TFile & |
rFile |
) |
|
| TFile::~TFile |
( |
|
) |
[virtual] |
Destroys the Directory wrapper object
Member Function Documentation
| TString zeus::TFile::getAbsoluteName |
( |
|
) |
const [inline] |
Returns the absolute name of the directory
| TString TFile::extractFileName |
( |
|
) |
const |
This method is used to extract the filename out of the whole path
| TString TFile::extractFileExt |
( |
|
) |
const |
This method is used to extract the file extentsion out of the whole path
| TString TFile::extractFileNameBase |
( |
|
) |
const |
This method is used to extract the file base name out of the whole path
| TString TFile::extractFilePath |
( |
|
) |
const |
This method is used to extract the path of the file
| bool TFile::deleteFile |
( |
bool |
bForce = false |
) |
|
Deletes the file
- Return values:
-
| true | : File deleted |
| false,: | could not delete file |
| bool TFile::canWrite |
( |
|
) |
const |
Checks if the file can be written
- Return values:
-
| true | : Able to write file |
| false,: | Unable to write file |
- Todo:
- This method is not unicode compatible for Unix systems
| bool TFile::canRead |
( |
|
) |
const |
Checks if the file can be read
- Return values:
-
| true | : Able to read file |
| false,: | Unable to read file |
- Todo:
- This method is not unicode compatible for Unix systems
| bool TFile::exists |
( |
|
) |
const |
Checks if the file exists
- Return values:
-
| true | : File exists |
| false | : File doesnt exist |
- Todo:
- This method is not unicode compatible for Unix systems
| bool zeus::TFile::equals |
( |
const TFile & |
rFile |
) |
const [inline] |
Checks if the two files are equal. This method does only a path check and not a content check.
- Parameters:
-
- Return values:
-
| true | : Path is equal |
| false,: | Path is not equal |
| bool TFile::equals |
( |
const IString & |
rFileName |
) |
const |
| Int64 TFile::getSize |
( |
|
) |
const |
Reads the size of the file
- Returns:
- File size in bytes
| Timeval TFile::getCreationTime |
( |
|
) |
const |
Returns the time of the file creation
- Returns:
- time
| Timeval TFile::getLastAccessTime |
( |
|
) |
const |
Returns the time of the last access
- Returns:
- time
| Timeval TFile::getModificationTime |
( |
|
) |
const |
Returns the time of the last change
- Returns:
- time
| bool TFile::copyTo |
( |
const IString & |
rTargetName |
) |
const |
Copies the file and renames it
- Parameters:
-
| rTargetName | : Name of the copied file |
- Return values:
-
| true | : File deleted |
| false,: | could not delete file |
| bool TFile::setReadOnly |
( |
bool |
bValue |
) |
|
sets or clears the readonly mode
- Parameters:
-
| bValue | : true = set to readonly; false= set to writable |
- Return values:
-
| true | : Mode successfully set |
| false,: | Setting mode failed |
- Todo:
- This method is not unicode compatible for Unix systems
| void TFile::createBackupFiles |
( |
Uint |
uiBackupNum |
) |
|
Creates the backup
- Parameters:
-
| uiBackupNum | : Max number of backups. The first backup will be called <name>~1.<ext>. |
Refreshes the status of the file object
- Return values:
-
| true | : Status read |
| false | : Could not read status |
- Todo:
- This method is not unicode compatible for Unix systems
This method splits into a drive (windows only), directory name, file name and file extension
- Todo:
- This method is not unicode compatible for Unix systems
| TString zeus::TFile::getFileVersion |
( |
|
) |
const [inline] |
Returns the version of the file. This works only for win32 platforms or platforms supporting resource data of files
| TString TFile::getFileInformation |
( |
const IString & |
rEntryName |
) |
const |
Returns a resource data of the file depending on the EntryName This works only for win32 platforms or platforms supporting resource data of files.
- Parameters:
-
| rEntryName | : Name of the resource data |
- Returns:
- Data
| TString zeus::TFile::toString |
( |
|
) |
const [inline] |
Copy operator
- Parameters:
-
| bool zeus::TFile::operator== |
( |
const TFile & |
rFile |
) |
const [inline] |
Checks if two files are equal
| bool zeus::TFile::operator== |
( |
const TString & |
rFile |
) |
const [inline] |
Checks if two files are equal
| bool zeus::TFile::operator!= |
( |
const TFile & |
rFile |
) |
const [inline] |
Checks if two files are equal
| bool zeus::TFile::operator!= |
( |
const TString & |
rFile |
) |
const [inline] |
Checks if two files are equal
| bool zeus::TFile::isFile |
( |
const IString & |
rDirectoryItem |
) |
[inline, static] |
Checks if a directory item is a file
- Parameters:
-
| rDirectoryItem | : Name of the directory item |
| bool TFile::isDirectory |
( |
const IString & |
rDirectoryItem |
) |
[static] |
Checks if a directory item is a directory
- Parameters:
-
| rDirectoryItem | : Name of the directory item |
| bool TFile::isHidden |
( |
const IString & |
rDirectoryItem |
) |
[static] |
Checks if a directory item is hidden
- Parameters:
-
| rDirectoryItem | : Name of the directory item |
| TString TFile::createAbsoluteFileNamePath |
( |
const IString & |
rFileName, |
|
|
const IString & |
rPathToComplete | |
|
) |
| | [static] |
creates a complete file name (absolute path)
Member Data Documentation
The documentation for this class was generated from the following files: