45 friend class StreamOut;
50 enum { Ok, OpenFailed, NotOLE, BadOLE, UnknownError };
55 Storage( const char* filename );
80 std::list<std::string> entries( const std::string& path = "/" );
85 bool isDirectory( const std::string& name );
97 Stream* stream( const std::string& name, bool reuse = true );
104 Storage( const Storage& );
105 Storage& operator=( const Storage& );
111 friend class Storage;
112 friend class StorageIO;
120 Stream( Storage* storage, const std::string& name );
130 std::string fullName();
135 unsigned long size();
140 unsigned long tell();
145 void seek( unsigned long pos );
155 unsigned long read( unsigned char* data, unsigned long maxlen );
171 Stream( const Stream& );
172 Stream& operator=( const Stream& );
|