MemStream Class Reference

#include <file.h>

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

Public Member Functions

 MemStream ()
 MemStream (size_type nLen)
virtual ~MemStream ()
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
unsigned char * GetBuffer () 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 *,...)
void Abort ()
void Flush ()
void Close ()
bool Open (const char *filename, const char *mode)

Data Fields

int refCount

Protected Member Functions

void GrowFile (size_type nNewLen)

Protected Attributes

size_type m_nGrowBytes
size_type m_nPosition
size_type m_nBufferSize
size_type m_nFileSize
unsigned char * m_pBuffer
bool m_bAutoDelete

Detailed Description

Definition at line 76 of file file.h.


Constructor & Destructor Documentation

MemStream::MemStream (  ) 
MemStream::MemStream ( size_type  nLen  ) 
virtual MemStream::~MemStream (  )  [virtual]

Member Function Documentation

void MemStream::Abort (  )  [virtual]

Implements IDataStream.

void MemStream::Close (  )  [virtual]

Implements IDataStream.

void MemStream::DecRef (  )  [inline, virtual]

Decrement the reference count.

Implements IDataStream.

Definition at line 86 of file file.h.

References refCount.

void MemStream::Flush (  )  [virtual]

Implements IDataStream.

unsigned char* MemStream::GetBuffer (  )  const [inline]

Definition at line 107 of file file.h.

References m_pBuffer.

int MemStream::GetChar (  )  [virtual]

Implements IDataStream.

size_type MemStream::GetLength (  )  const [virtual]

Implements IDataStream.

position_type MemStream::GetPosition (  )  const [virtual]

Implements IDataStream.

void MemStream::GrowFile ( size_type  nNewLen  )  [protected]
void MemStream::IncRef (  )  [inline, virtual]

Increment the number of references to this object.

Implements IDataStream.

Definition at line 83 of file file.h.

References refCount.

bool MemStream::Open ( const char *  filename,
const char *  mode 
)
void MemStream::printf ( const char *  ,
  ... 
) [virtual]
Todo:
implement on MemStream

Implements IDataStream.

int MemStream::PutChar ( int  c  )  [virtual]

Implements IDataStream.

size_type MemStream::read ( byte_type *  buffer,
size_type  length 
)
char* MemStream::ReadString ( char *  pBuf,
size_type  nMax 
) [virtual]

Implements IDataStream.

int MemStream::Seek ( offset_type  lOff,
int  nFrom 
) [virtual]

Implements IDataStream.

void MemStream::SetLength ( size_type  nNewLen  )  [virtual]

Implements IDataStream.

size_type MemStream::write ( const byte_type *  buffer,
size_type  length 
)

Field Documentation

bool MemStream::m_bAutoDelete [protected]

Definition at line 98 of file file.h.

size_type MemStream::m_nBufferSize [protected]

Definition at line 95 of file file.h.

size_type MemStream::m_nFileSize [protected]

Definition at line 96 of file file.h.

size_type MemStream::m_nGrowBytes [protected]

Definition at line 93 of file file.h.

size_type MemStream::m_nPosition [protected]

Definition at line 94 of file file.h.

unsigned char* MemStream::m_pBuffer [protected]

Definition at line 97 of file file.h.

Referenced by GetBuffer().

Definition at line 82 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