#include <file.h>
Public Member Functions | |
FileStream () | |
virtual | ~FileStream () |
void | IncRef () |
Increment the number of references to this object. | |
void | DecRef () |
Decrement the reference count. | |
position_type | GetPosition () const |
int | Seek (offset_type lOff, int nFrom) |
void | SetLength (size_type nNewLen) |
size_type | GetLength () const |
size_type | read (byte_type *buffer, size_type length) |
size_type | write (const byte_type *buffer, size_type length) |
char * | ReadString (char *pBuf, size_type nMax) |
int | GetChar () |
int | PutChar (int c) |
void | printf (const char *,...) |
completely matches the usual printf behaviour | |
void | Abort () |
void | Flush () |
void | Close () |
bool | Open (const char *filename, const char *mode) |
Data Fields | |
int | refCount |
Protected Attributes | |
FILE * | m_hFile |
bool | m_bCloseOnDelete |
Definition at line 126 of file file.h.
FileStream::FileStream | ( | ) |
virtual FileStream::~FileStream | ( | ) | [virtual] |
void FileStream::Abort | ( | ) | [virtual] |
Implements IDataStream.
void FileStream::Close | ( | ) | [virtual] |
Implements IDataStream.
void FileStream::DecRef | ( | ) | [inline, virtual] |
Decrement the reference count.
Implements IDataStream.
Definition at line 135 of file file.h.
References refCount.
void FileStream::Flush | ( | ) | [virtual] |
Implements IDataStream.
int FileStream::GetChar | ( | ) | [virtual] |
Implements IDataStream.
size_type FileStream::GetLength | ( | ) | const [virtual] |
Implements IDataStream.
position_type FileStream::GetPosition | ( | ) | const [virtual] |
Implements IDataStream.
void FileStream::IncRef | ( | ) | [inline, virtual] |
Increment the number of references to this object.
Implements IDataStream.
Definition at line 132 of file file.h.
References refCount.
bool FileStream::Open | ( | const char * | filename, | |
const char * | mode | |||
) |
void FileStream::printf | ( | const char * | , | |
... | ||||
) | [virtual] |
completely matches the usual printf behaviour
Implements IDataStream.
int FileStream::PutChar | ( | int | c | ) | [virtual] |
Implements IDataStream.
size_type FileStream::read | ( | byte_type * | buffer, | |
size_type | length | |||
) |
char* FileStream::ReadString | ( | char * | pBuf, | |
size_type | nMax | |||
) | [virtual] |
Implements IDataStream.
int FileStream::Seek | ( | offset_type | lOff, | |
int | nFrom | |||
) | [virtual] |
Implements IDataStream.
void FileStream::SetLength | ( | size_type | nNewLen | ) | [virtual] |
Implements IDataStream.
size_type FileStream::write | ( | const byte_type * | buffer, | |
size_type | length | |||
) |
bool FileStream::m_bCloseOnDelete [protected] |
FILE* FileStream::m_hFile [protected] |