![]() |
MAK Data Logger API Documentation for DIS
|
Various File system commands. More...
Collaboration diagram for MAKLogger::DtLgrFileSystem:Static Public Member Functions | |
| static DtString | tempFileName () |
| Get an unique temporary filename in the current working directory. More... | |
| static void | setTempDirectory (const DtString &directory) |
| Set the temp file directory. More... | |
| static bool | fileExists (const DtString &filename) |
| Check to see if a given file exists. More... | |
| static void | removeFile (const DtString &filename) |
| Delete a file. More... | |
| static void | duplicateFile (const DtString ©Location, const DtString &oldLocation) |
| Duplicate a file. More... | |
| static DtString | backupFileName (const DtString &filename) |
| Get the name of the a backup file name given the input filename. More... | |
| static void | moveFile (const DtString &newLocation, const DtString &oldLocation) |
| Destructively replace the old file with the new file. More... | |
| static void | backupAndReplaceFile (const DtString &originalFile, const DtString &newFile) |
| Backs up the old file and replaces it with the new file Operation is equivalent to: if(exists originalFile) rename originalFile to originalFile.bak rename newFile to originalFile. More... | |
| static void | backupAndDuplicateFile (const DtString &originalFile, const DtString &newFile) |
| Backs up the old file and replaces it with a copy of the new file Operation is equivalent to: if(exists originalFile) rename originalFile to oldfile.bak copy newFile to originalFile. More... | |
| static const DtString & | backupExtension () |
| Get the backup extension. More... | |
| static void | setBackupExtension (const DtString &ext) |
| Set the backup extension. By default it is ".bak". More... | |
| static void | setDefaultDir (DtFilename filename) |
| Set the default file storage directory. More... | |
| static const DtFilename & | defaultDir () |
| Get the default file storage directory. More... | |
| static DtString & | constructFileName (const DtFilename &filename, const DtFilename &filePath, long id, DtFilename &constructedName) |
| Construct a file name and path using given file name (should be just the base name), ID and path Return a reference to the constructed filename. More... | |
| static DtString & | absolutePath (const DtString &path, DtString &newAbsolutePath) |
| Given a file path to an existing file, make it an absolute path in the provided result. More... | |
Static Protected Attributes | |
| static DtString | theBackupExtension |
| String added to backup files. More... | |
| static DtString | theTempPath |
| static DtFilename | theDefaultDir |
Private Member Functions | |
| DtLgrFileSystem () | |
| Not Implemented. More... | |
| DtLgrFileSystem (const DtLgrFileSystem &) | |
| Not Implemented. More... | |
| DtLgrFileSystem & | operator= (const DtLgrFileSystem &) |
| Not Implemented. More... | |
| ~DtLgrFileSystem () | |
| Not Implemented. More... | |
Various File system commands.
|
private |
Not Implemented.
|
private |
Not Implemented.
|
private |
Not Implemented.
|
static |
Given a file path to an existing file, make it an absolute path in the provided result.
Result is an empty string if file does not exist. Return a reference to the absolute path
|
static |
Backs up the old file and replaces it with a copy of the new file Operation is equivalent to: if(exists originalFile) rename originalFile to oldfile.bak copy newFile to originalFile.
|
static |
Backs up the old file and replaces it with the new file Operation is equivalent to: if(exists originalFile) rename originalFile to originalFile.bak rename newFile to originalFile.
|
static |
Get the backup extension.
|
static |
Get the name of the a backup file name given the input filename.
This does not make any claims of either files existence and is only used for determining the valid strings.
|
static |
Construct a file name and path using given file name (should be just the base name), ID and path Return a reference to the constructed filename.
|
static |
Get the default file storage directory.
|
static |
Duplicate a file.
The file at oldLocation is copied to a new file at the copyLocation.
|
static |
Check to see if a given file exists.
|
static |
Destructively replace the old file with the new file.
Operation is equivalent to: if(exists originalFile) delete originalFile rename newFile to originalFile.
|
private |
Not Implemented.
|
static |
Delete a file.
The file is assume to exist and the user has the proper permissions.
|
static |
Set the backup extension. By default it is ".bak".
|
static |
Set the default file storage directory.
|
static |
Set the temp file directory.
|
static |
Get an unique temporary filename in the current working directory.
|
staticprotected |
String added to backup files.
Default = ".bak" Typically assigned before file extension "test.lgr" -> "test.bak.lgr"
|
staticprotected |
|
staticprotected |