#include <djv_storagelocator.h>
Public Member Functions | |
virtual AutoPtr< Storage > | locateStorage (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< StorageLocator > | create (const String &inIndexFileName) |
Static Public Member Functions inherited from Celartem::Referable | |
static void | dumpDbgAllRefCount () |
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.
|
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 |
This function creates a new StorageWithRollbackLocator instance.
inIndexFileName | The name of the index file. All the indirect files are placed on the same folder to the file. |
|
pure virtual |
This method creates a writable Storage instance from the specified indirect file name.
inName | The name of the DjVu indirect file. |
Implements Celartem::DjVu::StorageLocator.