Serial Framework C++ Edition
Public Member Functions | Protected Attributes | List of all members
CwclHandleStream Class Reference

The base class for handle based streams. More...

#include <wclHelpers.h>

Inheritance diagram for CwclHandleStream:
CwclStream CwclFileStream

Public Member Functions

 CwclHandleStream ()
 Creates new stream.
 
virtual ~CwclHandleStream ()
 Frees the stream object.
 
virtual void SetSize (const unsigned long NewSize) override
 Sets the stream size.
 
virtual unsigned long Read (void *const Buffer, const unsigned long Count) override
 Reads from stream.
 
virtual unsigned long Write (const void *const Buffer, const unsigned long Count) override
 Writes to the stream.
 
virtual unsigned long Seek (const long Offset, const wclSeekOrigin Origin) override
 Changes current position.
 
HANDLE GetHandle () const
 Gets the handle.
 
- Public Member Functions inherited from CwclStream
 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.
 

Protected Attributes

HANDLE FHandle
 

Detailed Description

The base class for handle based streams.

See also
CwclStream