# 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::CBigFile Class Reference

#include <big_file.h>

List of all members.

Public Methods

bool add (const std::string &sBigFileName, uint32 nOptions)
void remove (const std::string &sBigFileName)
bool isBigFileAdded (const std::string &sBigFileName)
void list (const std::string &sBigFileName, std::vector< std::string > &vAllFiles)
void removeAll ()
FILE * getFile (const std::string &sFileName, uint32 &rFileSize, uint32 &rBigFileOffset, bool &rCacheFileOnOpen, bool &rAlwaysOpened)

Static Public Methods

CBigFile & getInstance ()

Private Methods

 CBigFile ()

Private Attributes

CThreadFileArray _ThreadFileArray
std::map< std::string, BNP_BNPs

Static Private Attributes

CBigFile * _Singleton = NULL

Friends

class CThreadFileArray


Constructor & Destructor Documentation

NLMISC::CBigFile::CBigFile   [private]
 

Definition at line 70 of file big_file.cpp.

Referenced by getInstance.


Member Function Documentation

bool NLMISC::CBigFile::add const std::string &    sBigFileName,
uint32    nOptions
 

Definition at line 85 of file big_file.cpp.

References _BNPs, _ThreadFileArray, NLMISC::CBigFile::CThreadFileArray::allocate, NLMISC::BF_ALWAYS_OPENED, NLMISC::BF_CACHE_FILE_ON_OPEN, NLMISC::CBigFile::CThreadFileArray::get, and NLMISC::strlwr.

FILE * NLMISC::CBigFile::getFile const std::string &    sFileName,
uint32   rFileSize,
uint32   rBigFileOffset,
bool &    rCacheFileOnOpen,
bool &    rAlwaysOpened
 

Definition at line 210 of file big_file.cpp.

References _BNPs, _ThreadFileArray, NLMISC::CBigFile::CThreadFileArray::get, nlwarning, and NLMISC::strlwr.

CBigFile & NLMISC::CBigFile::getInstance   [static]
 

Definition at line 75 of file big_file.cpp.

References _Singleton, and CBigFile.

bool NLMISC::CBigFile::isBigFileAdded const std::string &    sBigFileName
 

Definition at line 177 of file big_file.cpp.

References _BNPs.

void NLMISC::CBigFile::list const std::string &    sBigFileName,
std::vector< std::string > &    vAllFiles
 

Definition at line 185 of file big_file.cpp.

References _BNPs, and NLMISC::strlwr.

void NLMISC::CBigFile::remove const std::string &    sBigFileName
 

Definition at line 153 of file big_file.cpp.

References _BNPs, _ThreadFileArray, and NLMISC::CBigFile::CThreadFileArray::get.

Referenced by removeAll.

void NLMISC::CBigFile::removeAll  
 

Definition at line 201 of file big_file.cpp.

References _BNPs, and remove.


Friends And Related Function Documentation

friend class CThreadFileArray [friend]
 

Definition at line 76 of file big_file.h.


Member Data Documentation

std::map<std::string, BNP> NLMISC::CBigFile::_BNPs [private]
 

Definition at line 134 of file big_file.h.

Referenced by add, getFile, isBigFileAdded, list, remove, and removeAll.

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

Definition at line 35 of file big_file.cpp.

Referenced by getInstance.

CThreadFileArray NLMISC::CBigFile::_ThreadFileArray [private]
 

Definition at line 132 of file big_file.h.

Referenced by add, getFile, and remove.


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