CLAM-Development  1.4.0
Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
CLAM::FileSystem Class Reference

#include <FileSystem.hxx>

List of all members.

Public Member Functions

 ~FileSystem ()
void UnlockFile (std::string filename)
void LockFile (std::string filename)
bool IsFileLocked (std::string filename)

Static Public Member Functions

static FileSystemGetInstance ()

Protected Types

typedef std::map< std::string,
bool > 
FileStatusTable

Protected Member Functions

 FileSystem ()

Protected Attributes

FileStatusTable mLockedFiles
Mutex mFileLockingSemaphor

Detailed Description

Definition at line 31 of file FileSystem.hxx.


Member Typedef Documentation

typedef std::map< std::string, bool > CLAM::FileSystem::FileStatusTable
protected

Definition at line 47 of file FileSystem.hxx.


Constructor & Destructor Documentation

CLAM::FileSystem::~FileSystem ( )

Definition at line 31 of file FileSystem.cxx.

CLAM::FileSystem::FileSystem ( )
protected

Definition at line 27 of file FileSystem.cxx.


Member Function Documentation

FileSystem & CLAM::FileSystem::GetInstance ( )
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)
void CLAM::FileSystem::UnlockFile ( std::string  filename)

Member Data Documentation

Mutex CLAM::FileSystem::mFileLockingSemaphor
protected

Definition at line 50 of file FileSystem.hxx.

Referenced by IsFileLocked(), LockFile(), and UnlockFile().

FileStatusTable CLAM::FileSystem::mLockedFiles
protected

Definition at line 49 of file FileSystem.hxx.

Referenced by IsFileLocked(), LockFile(), and UnlockFile().


The documentation for this class was generated from the following files: