IDataStream Class Reference

#include <file.h>

Inheritance diagram for IDataStream:
Inheritance graph
[legend]

Public Types

typedef int offset_type
typedef std::size_t position_type

Public Member Functions

virtual void IncRef ()=0
 Increment the number of references to this object.
virtual void DecRef ()=0
 Decrement the reference count.
virtual position_type GetPosition () const =0
virtual int Seek (offset_type lOff, int nFrom)=0
virtual void SetLength (size_type nNewLen)=0
virtual size_type GetLength () const =0
virtual char * ReadString (char *pBuf, size_type nMax)=0
virtual int GetChar ()=0
virtual int PutChar (int c)=0
virtual void printf (const char *,...)=0
 completely matches the usual printf behaviour
virtual void Abort ()=0
virtual void Flush ()=0
virtual void Close ()=0

Detailed Description

API for data streams

Based on an initial implementation by Loki software modified to be abstracted and shared across modules

NOTE: why IDataStream and not IStream? because IStream is defined in windows IDL headers

Definition at line 49 of file file.h.


Member Typedef Documentation

Definition at line 51 of file file.h.

typedef std::size_t IDataStream::position_type

Definition at line 52 of file file.h.


Member Function Documentation

virtual void IDataStream::Abort (  )  [pure virtual]

Implemented in MemStream, and FileStream.

virtual void IDataStream::Close (  )  [pure virtual]

Implemented in MemStream, and FileStream.

virtual void IDataStream::DecRef (  )  [pure virtual]

Decrement the reference count.

Implemented in MemStream, and FileStream.

virtual void IDataStream::Flush (  )  [pure virtual]

Implemented in MemStream, and FileStream.

virtual int IDataStream::GetChar (  )  [pure virtual]

Implemented in MemStream, and FileStream.

virtual size_type IDataStream::GetLength (  )  const [pure virtual]

Implemented in MemStream, and FileStream.

virtual position_type IDataStream::GetPosition (  )  const [pure virtual]

Implemented in MemStream, and FileStream.

virtual void IDataStream::IncRef (  )  [pure virtual]

Increment the number of references to this object.

Implemented in MemStream, and FileStream.

virtual void IDataStream::printf ( const char *  ,
  ... 
) [pure virtual]

completely matches the usual printf behaviour

Implemented in MemStream, and FileStream.

virtual int IDataStream::PutChar ( int  c  )  [pure virtual]

Implemented in MemStream, and FileStream.

virtual char* IDataStream::ReadString ( char *  pBuf,
size_type  nMax 
) [pure virtual]

Implemented in MemStream, and FileStream.

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

Implemented in MemStream, and FileStream.

virtual void IDataStream::SetLength ( size_type  nNewLen  )  [pure virtual]

Implemented in MemStream, and FileStream.


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

Generated by  doxygen 1.6.2