nrEngine::EmptyFileStream Class Reference
[Engine's filesystem]

Empty file stream to represent empty files. More...

Inheritance diagram for nrEngine::EmptyFileStream:

nrEngine::FileStream nrEngine::IStream nrEngine::IResource

Public Member Functions

 EmptyFileStream ()
 Initialize the empty file.
 ~EmptyFileStream ()
 Deinitilize the empty file object.
size_t read (void *buf, size_t size, size_t nmemb)
 Read data from the empty file returns nothing.
size_t readDelim (void *buf, size_t count, const std::string &delim="\n")
 Read until we fund a delimeter.
size_t tell () const
 What is the position of the empty file reading cursor.
bool eof () const
 Are we on the end of file. For empty files it is always true.
bytegetData (size_t &count) const
 Returns no data from the empty file.
bool seek (int32 offset, int32 whence=IStream::CURRENT)
 Seek or not to seek? That is the question!
void close ()
 Close the empty file.

Detailed Description

Empty file stream to represent empty files.

This is file stream which loads an empty file. You will need this to get ResourceManagment working corectly. Any access to a resource instantiated from this class have no effect.

Definition at line 136 of file FileStream.h.


The documentation for this class was generated from the following files:
Generated on Wed Sep 12 23:19:43 2007 for nrEngine by  doxygen 1.5.1