Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields  

sword::OStorage Class Reference

Abstract output binary (raw) data storage. More...

Inheritance diagram for sword::OStorage:

sword::OStorageMemory

Public Methods

void write (const void *buffer, word length)
void flush ()

Detailed Description

Abstract output binary (raw) data storage.

This class describes the interface that all data storage must implement. However, it is not an abstract class (no virtual method), because storages are composed using genericity and not inheritance in sword. All the implementing classes are identified by a name like OStorageXXX.

An output binary data storage is a way of storing bytes, sequencially, maybe with a buffer between the client and the final storage device. An eWrite exception will throw when no more data can be stored. The buffer can be flushed at any time. All implementations of OStorage must conform to this logical contract.


Generated on Tue Dec 23 20:08:57 2003 for SWORD by doxygen1.3-rc2