MAK Data Logger API Documentation for HLA
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
libsrc
lgrUtil
lgrFileSystem.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
******************************************************************************/
5
8
9
#ifndef lgrFileSystem_H_
10
#define lgrFileSystem_H_
11
12
#include "
lgrUtil.h
"
13
#include <vlutil/vlFilename.h>
14
15
class
DtString
;
16
17
namespace
MAKLogger
18
{
19
22
class
DT_DLL_LGRUTIL
DtLgrFileSystem
23
{
24
public
:
25
28
static
DtString
tempFileName();
29
31
static
void
setTempDirectory(
const
DtString
& directory);
32
34
static
bool
fileExists(
const
DtString
& filename);
35
38
static
void
removeFile(
const
DtString
& filename);
39
42
static
void
duplicateFile(
const
DtString
& copyLocation,
43
const
DtString
& oldLocation);
44
48
static
DtString
backupFileName(
const
DtString
& filename);
49
55
static
void
moveFile(
const
DtString
& newLocation,
56
const
DtString
& oldLocation);
57
63
static
void
backupAndReplaceFile(
const
DtString
& originalFile,
64
const
DtString
& newFile);
65
71
static
void
backupAndDuplicateFile(
const
DtString
& originalFile,
72
const
DtString
& newFile);
73
75
static
const
DtString
& backupExtension();
76
78
static
void
setBackupExtension(
const
DtString
& ext);
79
81
static
void
setDefaultDir(DtFilename filename);
82
84
static
const
DtFilename& defaultDir();
85
88
static
void
constructFileName(
const
DtFilename& filename,
89
const
DtFilename& filePath,
long
id
, DtFilename& constructedName);
90
91
protected
:
92
95
static
DtString
theBackupExtension
;
96
97
static
DtString
theTempPath
;
98
99
static
DtFilename
theDefaultDir
;
100
101
private
:
103
104
DtLgrFileSystem
();
105
DtLgrFileSystem
(
const
DtLgrFileSystem
&);
106
DtLgrFileSystem
& operator=(
const
DtLgrFileSystem
&);
107
~
DtLgrFileSystem
();
109
};
110
111
}
112
113
#endif
Document ID: Generated on Mon Jan 19 08:20:14 EST 2015 from SVN revision 149581
Copyright © 2005-2012 VT MÄK. All Rights Reserved (
www.mak.com
)