#include <ISStream.h>
Public Member Functions | |
cISFileStream () | |
int | Close () OVERRIDE |
bool | Eof () |
int | Flush () OVERRIDE |
long long | GetBytesAvailableToRead () OVERRIDE |
bool | Open (const std::string &path, const char *mode) |
int | Read (void *buffer, int count) OVERRIDE |
int | Write (const void *buffer, int count) OVERRIDE |
Public Member Functions inherited from cISStream | |
cISStream () | |
virtual | ~cISStream () |
Private Member Functions | |
cISFileStream (const cISFileStream ©) | |
Private Attributes | |
FILE * | m_file |
Definition at line 77 of file ISStream.h.
cISFileStream::cISFileStream | ( | ) |
Constructor
Definition at line 25 of file ISStream.cpp.
|
private |
|
virtual |
Close the file
Reimplemented from cISStream.
Definition at line 64 of file ISStream.cpp.
bool cISFileStream::Eof | ( | ) |
Gets whether the file has hit end of file during read
Definition at line 102 of file ISStream.cpp.
|
virtual |
Flush the file, causing any pending writes to be written to disk
Reimplemented from cISStream.
Definition at line 55 of file ISStream.cpp.
|
virtual |
Gets the number of bytes available to read
Reimplemented from cISStream.
Definition at line 75 of file ISStream.cpp.
bool cISFileStream::Open | ( | const std::string & | path, |
const char * | mode | ||
) |
Open a file. If the file is writeable and does not exist, it is created. If the file was already opened, it is closed first.
path | the file path |
mode | the file open mode (i.e. r or rw, etc.) |
Definition at line 30 of file ISStream.cpp.
|
virtual |
Read n bytes from the file
buffer | the buffer to read into |
count | the max count of bytes to read |
Reimplemented from cISStream.
Definition at line 37 of file ISStream.cpp.
|
virtual |
Write n bytes from the file to buffer
buffer | the buffer to write into |
count | the max count of bytes to write |
Reimplemented from cISStream.
Definition at line 46 of file ISStream.cpp.
|
private |
Definition at line 134 of file ISStream.h.