rtspserver
Class RtspFileManager
- class RtspFileManager
Maintins a list of files for access locking. Class doesn't check
existance of file or acutally lock file on disk. Class is a singelton.
This class doesn't use any mutex's so it's not multithread safe.
Method Summary |
bool | add(const Data & filename) adds a new file into manager |
bool | del(const Data & filename) delete an existing file from manager |
static void | destroy() frees the memory associated with singelton instance |
const bool | find(const Data & filename) find if a file exists in manager |
static RtspFileManager & | instance() create a singelton object |
~RtspFileManager
public ~RtspFileManager()
- destructor
add
public bool add(const Data & filename)
- adds a new file into manager
- Parameters:
- filename - name of new file to lock
- Returns: false on failure
del
public bool del(const Data & filename)
- delete an existing file from manager
- Parameters:
- filename - name of file to unlock
- Returns: false on failure
destroy
public static void destroy()
- frees the memory associated with singelton instance
find
public const bool find(const Data & filename)
- find if a file exists in manager
- Returns: true of exists
instance
public static RtspFileManager & instance()
- create a singelton object
to Class RtspFileManager- singelton object