#include <cel_storagecache.h>

Public Member Functions | |
| virtual StorageRange | load (Storage *inStorage, uint64_t inPos, size_t inSize)=0 |
| virtual uint64_t | getSize () const =0 |
| virtual String | getStorageId () const =0 |
| virtual Time | getLastUpdateTime () const =0 |
| virtual AutoPtr< StorageLoader > | duplicate () const =0 |
| virtual void | setBufferingSize (size_t inSize=1024)=0 |
| virtual void | setCallback (DuplicateStreamCallback inCallback, void *inContext)=0 |
Definition at line 109 of file cel_storagecache.h.
| virtual StorageRange Celartem::StorageLoader::load | ( | Storage * | inStorage, | |
| uint64_t | inPos, | |||
| size_t | inSize | |||
| ) | [pure virtual] |
Load a range of storage which contains the range specified by inPos and inSize.
| inStorage | Storage to written on. | |
| inPos | The position of the storage range. | |
| inSize | The size of the storage range. |
| virtual uint64_t Celartem::StorageLoader::getSize | ( | ) | const [pure virtual] |
Return the size of the storage.
| virtual String Celartem::StorageLoader::getStorageId | ( | ) | const [pure virtual] |
Return the identifier of the storage.
| virtual Time Celartem::StorageLoader::getLastUpdateTime | ( | ) | const [pure virtual] |
This method returns the last update time of the file.
| virtual AutoPtr<StorageLoader> Celartem::StorageLoader::duplicate | ( | ) | const [pure virtual] |
Duplicate the instance.
| virtual void Celartem::StorageLoader::setBufferingSize | ( | size_t | inSize = 1024 |
) | [pure virtual] |
Set the buffering size. The buffering size has very large impact on the networking performance.
| inSize | Buffering size in bytes. The default is 1024 bytes. |
| virtual void Celartem::StorageLoader::setCallback | ( | DuplicateStreamCallback | inCallback, | |
| void * | inContext | |||
| ) | [pure virtual] |
Set the callback which is called when calls to load take long.
| inCallback | Pointer to a callback function. | |
| inContext | Context for the callback function. |