|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLMISC::CIFile Class ReferenceInput File.
More...
#include <file.h>
Inheritance diagram for NLMISC::CIFile:
List of all members.
Detailed Description
Input File.
-
Author:
-
Lionel Berenguier , Nevrax France
-
Date:
-
2000
Definition at line 73 of file file.h.
Constructor & Destructor Documentation
NLMISC::CIFile::CIFile |
( |
|
) |
|
|
NLMISC::CIFile::CIFile |
( |
const std::string & |
path, |
|
|
bool |
text = false |
|
) |
|
|
NLMISC::CIFile::~CIFile |
( |
|
) |
|
|
Member Function Documentation
void NLMISC::CIFile::allowBNPCacheFileOnOpen |
( |
bool |
newState |
) |
|
|
void NLMISC::CIFile::close |
( |
|
) |
|
|
bool NLMISC::CIFile::eof |
( |
|
) |
|
|
void NLMISC::CIFile::flush |
( |
|
) |
|
|
|
flush the file.
Definition at line 245 of file file.cpp.
References _F. |
uint32 NLMISC::CIFile::getFileSize |
( |
|
) |
[inline] |
|
void NLMISC::CIFile::getline |
( |
char * |
buffer, |
|
|
uint32 |
bufferSize |
|
) |
|
|
std::string NLMISC::CIFile::getStreamName |
( |
|
) |
const [virtual] |
|
|
Get a name for this stream.
maybe a fileName if FileStream. Default is to return "".
Reimplemented from NLMISC::IStream.
Definition at line 388 of file file.cpp.
References _FileName. |
void NLMISC::CIFile::loadIntoCache |
( |
|
) |
[private] |
|
bool NLMISC::CIFile::open |
( |
const std::string & |
path, |
|
|
bool |
text = false |
|
) |
|
|
|
Open a file for reading. false if failed. close() if a file was opened.
Definition at line 115 of file file.cpp.
References _AlwaysOpened, _BigFileOffset, _Cache, _CacheFileOnOpen, _F, _FileName, _FileSize, _IsInBigFile, _ReadPos, close, and loadIntoCache.
Referenced by NL3D::CAnimationSetUser::addAnimation, NLPACS::CRetrieverBank::addRetriever, NL3D::CAnimationSetUser::addSkeletonWeight, NL3D::CTextureFile::buildBitmapFromFile, CIFile, NL3D::UAnimation::createAnimation, NL3D::CSceneUser::createAnimationSet, loadForm, and NL3D::CAnimationSet::loadFromFiles. |
void NLMISC::CIFile::serialBit |
( |
bool & |
bit |
) |
throw (EReadError) [protected, virtual] |
|
|
Method to be specified by the Deriver.
-
Warning:
-
Do not call these methods from outside, unless you really know what you are doing. Using them instead of serial() can lead to communication problems between different platforms !
Implements NLMISC::IStream.
Definition at line 306 of file file.cpp.
References NLMISC::nlSleep.
Referenced by getline. |
void NLMISC::CIFile::setAsyncLoading |
( |
bool |
newState |
) |
|
|
void NLMISC::CIFile::setCacheFileOnOpen |
( |
bool |
newState |
) |
|
|
Member Data Documentation
bool NLMISC::CIFile::_AllowBNPCacheFileOnOpen [private]
|
|
bool NLMISC::CIFile::_AlwaysOpened [private]
|
|
uint32 NLMISC::CIFile::_BigFileOffset [private]
|
|
uint8* NLMISC::CIFile::_Cache [private]
|
|
bool NLMISC::CIFile::_CacheFileOnOpen [private]
|
|
FILE* NLMISC::CIFile::_F [private]
|
|
std::string NLMISC::CIFile::_FileName [private]
|
|
uint32 NLMISC::CIFile::_FileSize [private]
|
|
bool NLMISC::CIFile::_IsAsyncLoading [private]
|
|
bool NLMISC::CIFile::_IsInBigFile [private]
|
|
uint32 NLMISC::CIFile::_NbBytesLoaded = 0 [static, private]
|
|
uint32 NLMISC::CIFile::_NbBytesSerialized = 0 [static, private]
|
|
sint32 NLMISC::CIFile::_ReadPos [private]
|
|
The documentation for this class was generated from the following files:
|
|