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

#include <djv_storagelocator.h>

Inheritance diagram for Celartem::DjVu::StorageWithRollbackLocator:
Inheritance graph

Public Member Functions

virtual AutoPtr< StoragelocateStorage (const String &inName)=0
virtual void commit ()=0
- Public Member Functions inherited from Celartem::Referable
 Referable ()
void addRef () const
void releaseRef () const
size_t getReferenceCount () const

Static Public Member Functions

static AutoPtr
< StorageWithRollbackLocator
create (const String &inIndexFileName)
- Static Public Member Functions inherited from Celartem::DjVu::StorageLocator
static AutoPtr< StorageLocatorcreate (const String &inIndexFileName)
- Static Public Member Functions inherited from Celartem::Referable
static void dumpDbgAllRefCount ()

Detailed Description

This class is used when locating indirect files. Unlike StorageLocator, this class provides a way to rollback in case the indirect DjVu file creation failed.
Without calling commit method before the destruction of the instance, all the modifications to the storage files are rollbacked.

Member Function Documentation

virtual void Celartem::DjVu::StorageWithRollbackLocator::commit ( )
pure virtual

This method commits the changes to all the files and removes internally used temporary files.
Without calling this method, all the changes are rollbacked.

static AutoPtr<StorageWithRollbackLocator> Celartem::DjVu::StorageWithRollbackLocator::create ( const String inIndexFileName)

This function creates a new StorageWithRollbackLocator instance.

inIndexFileNameThe name of the index file.
All the indirect files are placed on the same folder to the file.
virtual AutoPtr<Storage> Celartem::DjVu::StorageWithRollbackLocator::locateStorage ( const String inName)
pure virtual

This method creates a writable Storage instance from the specified indirect file name.

inNameThe name of the DjVu indirect file.
Pointer to the Storage instance corresponding to the name.

Implements Celartem::DjVu::StorageLocator.

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:07.
Cuminas Logo