Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATStreamSub Class Reference

CATStreamSub Class Reference
[Common Accessibility Technology [CAT] library]

#include <CATStreamSub.h>

Inheritance diagram for CATStreamSub:

CATStream

List of all members.


Detailed Description

sub stream class - should work for all seekable stream types.

Definition at line 22 of file CATStreamSub.h.


Public Member Functions

 CATStreamSub (CATInt64 offset, CATInt64 length, CATStream *parent)
virtual ~CATStreamSub ()
virtual CATResult Open (const CATWChar *pathname, OPEN_MODE mode)
virtual CATResult OnAcquireSub ()
virtual CATResult OnReleaseSub ()
virtual CATResult Close ()
virtual bool IsOpen ()
virtual CATResult Read (void *buffer, CATUInt32 &length)
virtual CATResult Write (const void *buffer, CATUInt32 length)
virtual CATResult Size (CATInt64 &filesize)
virtual bool IsSeekable ()
 IsSeekable() returns true for files.
virtual CATResult SeekRelative (CATInt32 offset)
virtual CATResult SeekAbsolute (CATInt64 position)
virtual CATResult SeekFromEnd (CATInt32 offset)
virtual CATResult GetPosition (CATInt64 &position)
virtual CATString GetName () const
 GetName() retrieves the filename of the stream.
virtual CATResult ReadAbs (void *buffer, CATUInt32 &length, CATInt64 position)
virtual CATResult WriteAbs (const void *buffer, CATUInt32 length, CATInt64 position)

Protected Attributes

CATStreamfParent
CATInt64 fOffset
CATInt64 fLength
CATInt64 fCurPos

The documentation for this class was generated from the following files:
Generated on Mon Feb 11 04:10:58 2008 for Game Accessibility Suite by doxygen 1.5.4