Serial Framework C++ Edition
Public Member Functions | List of all members
CwclStream Class Referenceabstract

The base class for WCL streams. More...

#include <wclHelpers.h>

Inheritance diagram for CwclStream:
CwclCustomMemoryStream CwclHandleStream CwclMemoryStream CwclFileStream

Public Member Functions

 CwclStream ()
 Creates new stream object.
 
virtual ~CwclStream ()
 Frees the stream object.
 
virtual unsigned long Read (void *const Buffer, const unsigned long Count)=0
 Reads from stream.
 
virtual unsigned long Write (const void *const Buffer, const unsigned long Count)=0
 Writes to the stream.
 
virtual unsigned long Seek (const long Offset, const wclSeekOrigin Origin)=0
 Changes current position.
 
unsigned long CopyFrom (CwclStream *const Source, unsigned long Count)
 Copies data from other stream.
 
unsigned long GetSize ()
 Gets the stream size.
 
virtual void SetSize (const unsigned long NewSize)=0
 Sets the stream size.
 
unsigned long GetPosition ()
 Gets the current position.
 
void SetPosition (const unsigned long Pos)
 Sets the current position.
 

Detailed Description

The base class for WCL streams.