Public Member Functions

Celartem::StorageLoader Class Reference

#include <cel_storagecache.h>

Inheritance diagram for Celartem::StorageLoader:
Inheritance graph
[legend]

List of all members.

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< StorageLoaderduplicate () const =0
virtual void setBufferingSize (size_t inSize=1024)=0
virtual void setCallback (DuplicateStreamCallback inCallback, void *inContext)=0

Detailed Description

This class defines loader class which is used with AdvCachedStorage.


Member Function Documentation

virtual AutoPtr<StorageLoader> Celartem::StorageLoader::duplicate (  )  const [pure virtual]

Duplicate the instance.

Returns:
The newly created StorageLoader instance.
virtual Time Celartem::StorageLoader::getLastUpdateTime (  )  const [pure virtual]

This method returns the last update time of the file.

Returns:
The last update time.
virtual uint64_t Celartem::StorageLoader::getSize (  )  const [pure virtual]

Return the size of the storage.

Returns:
The size of the storage.
If the size is not known, this method should return 0xffffffffffffffff.
virtual String Celartem::StorageLoader::getStorageId (  )  const [pure virtual]

Return the identifier of the storage.

Returns:
The identifier (usually an URI).
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.

Parameters:
inStorage Storage to written on.
inPos The position of the storage range.
inSize The size of the storage range.
Returns:
The range actually loaded by this call.
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.

Parameters:
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.

Parameters:
inCallback Pointer to a callback function.
inContext Context for the callback function.

The documentation for this class was generated from the following file:

This document is made with doxygen 1.7.1 at Thu Feb 17 2011 15:40:19.
Caminova Logo