Inheritance diagram for sword::IStorage:

Public Methods | |
| word | read (void *buffer, word length) |
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.
1.3-rc2