# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLMISC::CAsyncFileManager Class Reference

CAsyncFileManager is a class that manage file loading in a seperate thread. More...

#include <async_file_manager.h>

Inheritance diagram for NLMISC::CAsyncFileManager:

NLMISC::CTaskManager NLMISC::IRunnable List of all members.

Public Methods

void loadFile (const std::string &fileName, uint8 **pPtr)
void loadFiles (const std::vector< std::string > &vFileNames, const std::vector< uint8 ** > &vPtrs)
void signal (bool *pSgn)
void cancelSignal (bool *pSgn)
void addLoadTask (IRunnable *ploadTask)
 Add a load task in the CAsyncFileManager task list. More...

bool cancelLoadTask (const ICancelCallback &cancelCallBack)
 Call this method to cancel a programmed load. More...


Static Public Methods

CAsyncFileManager & getInstance ()
void terminate ()

Private Methods

 CAsyncFileManager ()

Static Private Attributes

CAsyncFileManager * _Singleton = NULL

Detailed Description

CAsyncFileManager is a class that manage file loading in a seperate thread.

Author:
Matthieu Besson , Nevrax France
Date:
2002

Definition at line 41 of file async_file_manager.h.


Constructor & Destructor Documentation

NLMISC::CAsyncFileManager::CAsyncFileManager   [private]
 

Definition at line 40 of file async_file_manager.cpp.

Referenced by getInstance.


Member Function Documentation

void NLMISC::CAsyncFileManager::addLoadTask IRunnable   ploadTask
 

Add a load task in the CAsyncFileManager task list.

Definition at line 67 of file async_file_manager.cpp.

References NLMISC::CTaskManager::addTask.

bool NLMISC::CAsyncFileManager::cancelLoadTask const ICancelCallback   cancelCallBack
 

Call this method to cancel a programmed load.

Returns:
False if the task either already ended or running.

Definition at line 72 of file async_file_manager.cpp.

References NLMISC::CTaskManager::_TaskQueue, and NLMISC::CTaskManager::waitCurrentTaskToComplete.

void NLMISC::CAsyncFileManager::cancelSignal bool *    pSgn
 

Definition at line 170 of file async_file_manager.cpp.

References NLMISC::CTaskManager::_TaskQueue.

CAsyncFileManager & NLMISC::CAsyncFileManager::getInstance   [static]
 

Definition at line 46 of file async_file_manager.cpp.

References _Singleton, and CAsyncFileManager.

Referenced by terminate.

void NLMISC::CAsyncFileManager::loadFile const std::string &    fileName,
uint8 **    pPtr
 

Definition at line 149 of file async_file_manager.cpp.

References NLMISC::CTaskManager::addTask.

void NLMISC::CAsyncFileManager::loadFiles const std::vector< std::string > &    vFileNames,
const std::vector< uint8 ** > &    vPtrs
 

Definition at line 156 of file async_file_manager.cpp.

References NLMISC::CTaskManager::addTask.

void NLMISC::CAsyncFileManager::signal bool *    pSgn
 

Definition at line 163 of file async_file_manager.cpp.

References NLMISC::CTaskManager::addTask.

void NLMISC::CAsyncFileManager::terminate   [static]
 

Definition at line 57 of file async_file_manager.cpp.

References _Singleton, and getInstance.


Member Data Documentation

CAsyncFileManager * NLMISC::CAsyncFileManager::_Singleton = NULL [static, private]
 

Definition at line 36 of file async_file_manager.cpp.

Referenced by getInstance, and terminate.


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