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

sword::IStorage Class Reference

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

Inheritance diagram for sword::IStorage:

sword::HttpClient

Public Methods

word read (void *buffer, word length)

Detailed Description

Abstract input 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 IStorageXXX.

An input binary data storage is a way of retreiving bytes, sequencially. An ReadException will throw if an error occurs while reading. If some data, but less than expected have been read, then the return count from read() is less than length. If the return count is 0, then the end of file has been reached already. All implementations of IStorage must conform to this logical contract.


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