Public Member Functions | Static Public Member Functions

Celartem::PartialStorage Class Reference

#include <cel_storage.h>

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

List of all members.

Public Member Functions

virtual StoragegetBaseStorage ()=0
virtual uint64_t getOffset () const =0
virtual void offset (size_t inAdditionalOffset)=0

Static Public Member Functions

static AutoPtr< PartialStoragecreate (Storage *inStorage, uint64_t inOffset, uint64_t inSize, bool inReadOnly)

Detailed Description

This class creates a virtual Storage based on a existing one. The created Storage cannot be expanded by writeBytes method.

See also:
storages

Member Function Documentation

static AutoPtr<PartialStorage> Celartem::PartialStorage::create ( Storage inStorage,
uint64_t  inOffset,
uint64_t  inSize,
bool  inReadOnly 
) [static]

This method creates virtual Storage.

Parameters:
inStorage A storage.
inOffset Offset in bytes.
inSize The size in bytes.
inReadOnly true if the new storage should be readonly; otherwise false.
Returns:
Pointer to the newly created storage.
virtual Storage* Celartem::PartialStorage::getBaseStorage (  )  [pure virtual]

Get underlying storage.
NOTE: Modification to the underlying instance may causes some inconsistency issues.

Returns:
Underlying Storage instance.
virtual uint64_t Celartem::PartialStorage::getOffset (  )  const [pure virtual]

Get the offset on the underlying storage instance.

Returns:
Offset on the underlying storage instance.
virtual void Celartem::PartialStorage::offset ( size_t  inAdditionalOffset  )  [pure virtual]

Additionally offset the storage.
This method also conditions the current position according to the offset change.

Parameters:
inAdditionalOffset Additional offset.

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:18.
Caminova Logo