FileStream Class Reference

#include <file.h>

Inheritance diagram for FileStream:
Inheritance graph
[legend]
Collaboration diagram for FileStream:
Collaboration graph
[legend]

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

Detailed Description

Definition at line 126 of file file.h.


Constructor & Destructor Documentation

FileStream::FileStream (  ) 
virtual FileStream::~FileStream (  )  [virtual]

Member Function Documentation

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 
)

Field Documentation

bool FileStream::m_bCloseOnDelete [protected]

Definition at line 143 of file file.h.

FILE* FileStream::m_hFile [protected]

Definition at line 142 of file file.h.

Definition at line 131 of file file.h.

Referenced by DecRef(), and IncRef().


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

Generated by  doxygen 1.6.2