HDK
|
#include <UT_FileUtil.h>
Public Member Functions | |
UT_AutoFileLock (UT_EmptyFileLock) | |
Construct without lock. Use lock() with filename to acquire one. More... | |
UT_AutoFileLock (const char *filename) | |
Open and lock a file for exclusive reading and writing. More... | |
UT_AutoFileLock (const char *filename, bool exclusive) | |
~UT_AutoFileLock () | |
void | lock (const char *filename, bool exclusive) |
void | unlock () |
FILE * | getFile () const |
Get the file pointer for this locked file. More... | |
bool | isLocked () const |
Return whether the file is actually locked. More... | |
A class that allows you to create and lock a file for exclusive access. When instances of this class go out of scope, the locked file is automatically unlocked and closed.
Definition at line 206 of file UT_FileUtil.h.
|
inlineexplicit |
Construct without lock. Use lock() with filename to acquire one.
Definition at line 210 of file UT_FileUtil.h.
|
inline |
Open and lock a file for exclusive reading and writing.
Definition at line 215 of file UT_FileUtil.h.
|
inline |
Open and lock a file for read-only (exclusive=false), or for read-write (exclusive=true). If filename does not exist, then it is opened as read-write.
Definition at line 223 of file UT_FileUtil.h.
|
inline |
Definition at line 228 of file UT_FileUtil.h.
|
inline |
Get the file pointer for this locked file.
Definition at line 279 of file UT_FileUtil.h.
|
inline |
Return whether the file is actually locked.
Definition at line 285 of file UT_FileUtil.h.
|
inline |
Open and lock a file for read-only (exclusive=false), or for read-write (exclusive=true). If filename does not exist, then it is opened as read-write.
Definition at line 236 of file UT_FileUtil.h.
|
inline |
Definition at line 263 of file UT_FileUtil.h.