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

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

#include <CATStreamRAM.h>

Inheritance diagram for CATStreamRAM:

CATStream

List of all members.


Detailed Description

Memory-based stream class - acts as a file in RAM.

Definition at line 23 of file CATStreamRAM.h.


Public Member Functions

 CATStreamRAM ()
virtual ~CATStreamRAM ()
virtual CATResult Open (const CATWChar *name, OPEN_MODE mode)
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)
CATResult ReallocCache (CATInt32 minLength)
CATResult ShrinkCache ()
 ShrinkCache() shrinks the cache to exactly the current fSize().
CATResult FromFile (const CATWChar *pathName)
CATResult ToFile (const CATWChar *pathName, bool overwrite=true)
CATUInt8GetRawCache ()

Private Member Functions

CATStreamRAMoperator= (const CATStreamRAM &srcStream)

Private Attributes

CATUInt8fRamCache
CATInt32 fCacheSize
CATInt32 fSize
CATInt32 fCurPos
CATString fStreamName

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