#include <FileSystem.hxx>
Definition at line 31 of file 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 |
typedef std::map< std::string, bool > CLAM::FileSystem::FileStatusTable [protected] |
Definition at line 47 of file FileSystem.hxx.
CLAM::FileSystem::~FileSystem | ( | ) |
Definition at line 31 of file FileSystem.cxx.
CLAM::FileSystem::FileSystem | ( | ) | [protected] |
Definition at line 27 of file FileSystem.cxx.
FileSystem & CLAM::FileSystem::GetInstance | ( | ) | [static] |
void CLAM::FileSystem::UnlockFile | ( | std::string | filename | ) |
Definition at line 43 of file FileSystem.cxx.
References mFileLockingSemaphor, and mLockedFiles.
Referenced by CLAM::MultiChannelAudioFileWriter::ConcreteConfigure(), CLAM::MonoAudioFileWriter::ConcreteConfigure(), CLAM::MonoAudioFileWriter::~MonoAudioFileWriter(), and CLAM::MultiChannelAudioFileWriter::~MultiChannelAudioFileWriter().
void CLAM::FileSystem::LockFile | ( | std::string | filename | ) |
Definition at line 50 of file FileSystem.cxx.
References mFileLockingSemaphor, and mLockedFiles.
Referenced by CLAM::MultiChannelAudioFileWriter::ConcreteConfigure(), and CLAM::MonoAudioFileWriter::ConcreteConfigure().
bool CLAM::FileSystem::IsFileLocked | ( | std::string | filename | ) |
FileStatusTable CLAM::FileSystem::mLockedFiles [protected] |
Definition at line 49 of file FileSystem.hxx.
Referenced by IsFileLocked(), LockFile(), and UnlockFile().
Mutex CLAM::FileSystem::mFileLockingSemaphor [protected] |
Definition at line 50 of file FileSystem.hxx.
Referenced by IsFileLocked(), LockFile(), and UnlockFile().