Public Member Functions | Static Public Member Functions | List of all members
Celartem::AdvCachedStorage Class Referenceabstract

#include <cel_storagecache.h>

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

Public Member Functions

virtual void setBufferingSize (size_t inSize=1024)=0
 
virtual void setCallback (DuplicateStreamCallback inCallback, void *inContext)=0
 
virtual void purgeCache ()=0
 
- Public Member Functions inherited from Celartem::Storage
virtual uint64_t getSize () const =0
 
virtual uint64_t getPos () const =0
 
virtual void reserve (uint64_t inReservationSize)=0
 
virtual void setPos (uint64_t inPosition)=0
 
virtual void setPosRelative (int64_t inPosition)=0
 
virtual void setPosFromEnd (int64_t inPosition)=0
 
virtual void setEof ()=0
 
virtual String getStorageId () const =0
 
virtual AutoPtr< Storageduplicate () const =0
 
virtual Time getLastUpdateTime () const =0
 
- Public Member Functions inherited from Celartem::Stream
virtual size_t readBytes (void *buffer, size_t inSize, bool wouldBlock=false)=0
 
virtual void writeBytes (const void *buffer, size_t inSize)=0
 
virtual void flushBuffer ()=0
 
virtual bool isEof () const =0
 
virtual size_t duplicateStream (Stream *inStream, size_t inBufferSize=1024, DuplicateStreamCallback inCallback=NULL, void *inCallbackContext=NULL)
 
virtual size_t duplicateStreamBytes (Stream *inStream, size_t inMaximumByteSize, size_t inBufferSize=1024, DuplicateStreamCallback inCallback=NULL, void *inCallbackContext=NULL)
 
- Public Member Functions inherited from Celartem::Referable
 Referable ()
 
void addRef () const
 
void releaseRef () const
 
size_t getReferenceCount () const
 
- Public Member Functions inherited from Celartem::Lockable
virtual void lock () const =0
 
virtual void unlock () const =0
 

Static Public Member Functions

static AutoPtr< AdvCachedStoragecreate (StorageLoader *inLoader)
 
- Static Public Member Functions inherited from Celartem::Storage
static AutoPtr< Storagecreate (const String &inUriOrFileName, bool inLateBinding=false, ResourceBroker *inBroker=NULL)
 
static AutoPtr< StoragecreateTempNoLock ()
 
- Static Public Member Functions inherited from Celartem::Referable
static void dumpDbgAllRefCount ()
 

Detailed Description

This class realizes a Storage class which has cached copy on the local machine.

Member Function Documentation

static AutoPtr<AdvCachedStorage> Celartem::AdvCachedStorage::create ( StorageLoader inLoader)
static

Create a new AdvCachedStorage instance which uses the specified loader instance.

Parameters
inLoaderA StorageLoader instance.
Returns
Pointer to the newly created instance.
virtual void Celartem::AdvCachedStorage::purgeCache ( )
pure virtual

Purges all the cached content.

virtual void Celartem::AdvCachedStorage::setBufferingSize ( size_t  inSize = 1024)
pure virtual

Set the buffering size. The buffering size has very large impact on the networking performance.

Parameters
inSizeBuffering size in bytes. The default is 1024 bytes.
virtual void Celartem::AdvCachedStorage::setCallback ( DuplicateStreamCallback  inCallback,
void *  inContext 
)
pure virtual

Set the callback which is called when calls to StorageLoader::load take long.

Parameters
inCallbackPointer to a callback function.
inContextContext for the callback function.

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

Cuminas DjVu SDK 3.0.33103
This document is made with doxygen 1.8.5 at Sun Dec 15 2013 19:38:06.
Cuminas Logo