CLAM-Development
1.4.0
|
#include <FileSystem.hxx>
Public Member Functions | |
~FileSystem () | |
void | UnlockFile (std::string filename) |
void | LockFile (std::string filename) |
bool | IsFileLocked (std::string filename) |
Static Public Member Functions | |
static FileSystem & | GetInstance () |
Protected Types | |
typedef std::map< std::string, bool > | FileStatusTable |
Protected Member Functions | |
FileSystem () |
Protected Attributes | |
FileStatusTable | mLockedFiles |
Mutex | mFileLockingSemaphor |
Definition at line 31 of file FileSystem.hxx.
|
protected |
Definition at line 47 of file FileSystem.hxx.
CLAM::FileSystem::~FileSystem | ( | ) |
Definition at line 31 of file FileSystem.cxx.
|
protected |
Definition at line 27 of file FileSystem.cxx.
|
static |
bool CLAM::FileSystem::IsFileLocked | ( | std::string | filename | ) |
Definition at line 57 of file FileSystem.cxx.
References mFileLockingSemaphor, and mLockedFiles.
void CLAM::FileSystem::LockFile | ( | std::string | filename | ) |
Definition at line 50 of file FileSystem.cxx.
References mFileLockingSemaphor, and mLockedFiles.
Referenced by CLAM::MonoAudioFileWriter::ConcreteConfigure(), and CLAM::MultiChannelAudioFileWriter::ConcreteConfigure().
void CLAM::FileSystem::UnlockFile | ( | std::string | filename | ) |
Definition at line 43 of file FileSystem.cxx.
References mFileLockingSemaphor, and mLockedFiles.
Referenced by CLAM::MonoAudioFileWriter::ConcreteConfigure(), CLAM::MultiChannelAudioFileWriter::ConcreteConfigure(), CLAM::MonoAudioFileWriter::~MonoAudioFileWriter(), and CLAM::MultiChannelAudioFileWriter::~MultiChannelAudioFileWriter().
|
protected |
Definition at line 50 of file FileSystem.hxx.
Referenced by IsFileLocked(), LockFile(), and UnlockFile().
|
protected |
Definition at line 49 of file FileSystem.hxx.
Referenced by IsFileLocked(), LockFile(), and UnlockFile().