|
static AutoPtr
< DiskStorageWithRollback > | create (const Path &inFileName, AccessMode inAccessMode=accessWrite, CreationMode inCreationMode=creationDefault) |
|
static AutoPtr< DiskStorage > | create (const Path &inFileName, AccessMode inAccessMode=accessRead, CreationMode inCreationMode=creationDefault, bool inThrowOnError=true) |
|
static AutoPtr< DiskStorage > | createAnonTemp () |
|
static AutoPtr< DiskStorage > | createTemp (String &ioFileName) |
|
static AutoPtr< DiskStorage > | createFromHandle (void *inFileHandle, AccessMode inAccessMode=accessRead, CreationMode inCreationMode=creationDefault, bool inCloseOnDelete=true) |
|
static AutoPtr< Storage > | create (const String &inUriOrFileName, bool inLateBinding=false, ResourceBroker *inBroker=NULL) |
|
static AutoPtr< Storage > | createTempNoLock () |
|
static void | dumpDbgAllRefCount () |
|
|
virtual void * | getOSHandle ()=0 |
|
virtual void | lockRegion (uint64_t inPos, uint64_t inSize, bool inWriterLock)=0 |
|
virtual bool | tryLockRegion (uint64_t inPos, uint64_t inSize, bool inWriterLock)=0 |
|
virtual void | unlockRegion (uint64_t inPos, uint64_t inSize)=0 |
|
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< Storage > | duplicate () const =0 |
|
virtual Time | getLastUpdateTime () const =0 |
|
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) |
|
| Referable () |
|
void | addRef () const |
|
void | releaseRef () const |
|
size_t | getReferenceCount () const |
|
virtual void | lock () const =0 |
|
virtual void | unlock () const =0 |
|
virtual void | commit ()=0 |
|
This class provides the disk storage with rollback feature.
- See Also
- storages, DiskStorage