 |
OpendTect
6.6
|
Go to the documentation of this file.
50 bool open(
bool forread,
bool ignorelock=
false);
56 { doClose( keeplock,
false ); }
58 {
return doClose( keeplock,
true ); }
60 const char*
fileName()
const {
return filenm_.buf(); }
bool usebakwhenmissing_
default=true
Definition: safefileio.h:63
const char * errMsg() const
Definition: safefileio.h:51
void closeFail(bool keeplock=false)
Definition: safefileio.h:55
Protects file IO when you can't afford to have partly written things after write errors or have a fil...
Definition: safefileio.h:44
BufferString errmsg_
Definition: safefileio.h:81
#define mExpClass(module)
Definition: commondefs.h:177
double lockwaitincr_
default=0.5 (seconds)
Definition: safefileio.h:66
OD class for stream read common access to the std::cin.
Definition: od_istream.h:24
const bool locked_
Definition: safefileio.h:76
od_stream * strm_
Definition: safefileio.h:82
const BufferString lockfnm_
Definition: safefileio.h:78
bool allowlockremove_
Definition: safefileio.h:67
bool open(bool forread, bool ignorelock=false)
const char * str() const
Definition: odstring.h:47
const BufferString filenm_
Definition: safefileio.h:77
SafeFileIO(const char *, bool locked=false)
const BufferString bakfnm_
Definition: safefileio.h:79
OD base class for stream read/write.
Definition: od_stream.h:56
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
BufferString errmsg_
Definition: horizontracker.h:118
const char * fileName() const
Definition: safefileio.h:60
bool closeSuccess(bool keeplock=false)
Definition: safefileio.h:57
const BufferString newfnm_
Definition: safefileio.h:80
OD class for stream write common access to the user log file, or std::cout in other than od_main.
Definition: od_ostream.h:26
int lockretries_
default=10
Definition: safefileio.h:65
bool removebakonsuccess_
default=false
Definition: safefileio.h:64
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021