LibreOffice Module sot (master) 1
|
#include <stg.hxx>
Public Member Functions | |
StorageStream (StgIo *, StgDirEntry *, StreamMode) | |
virtual sal_Int32 | Read (void *pData, sal_Int32 nSize) override |
virtual sal_Int32 | Write (const void *pData, sal_Int32 nSize) override |
virtual sal_uInt64 | Seek (sal_uInt64 nPos) override |
virtual sal_uInt64 | Tell () override |
virtual void | Flush () override |
virtual bool | SetSize (sal_uInt64 nNewSize) override |
virtual sal_uInt64 | GetSize () const override |
virtual void | CopyTo (BaseStorageStream *pDestStm) override |
virtual bool | Commit () final override |
virtual bool | Validate (bool=false) const override |
virtual bool | ValidateMode (StreamMode) const override |
virtual bool | Equals (const BaseStorageStream &rStream) const override |
virtual sal_Int32 | Read (void *pData, sal_Int32 nSize)=0 |
virtual sal_Int32 | Write (const void *pData, sal_Int32 nSize)=0 |
virtual sal_uInt64 | Seek (sal_uInt64 nPos)=0 |
virtual sal_uInt64 | Tell ()=0 |
virtual void | Flush ()=0 |
virtual bool | SetSize (sal_uInt64 nNewSize)=0 |
virtual sal_uInt64 | GetSize () const =0 |
virtual void | CopyTo (BaseStorageStream *pDestStm)=0 |
virtual bool | Commit ()=0 |
virtual bool | Equals (const BaseStorageStream &rStream) const =0 |
Public Member Functions inherited from StorageBase | |
virtual bool | Validate (bool=false) const =0 |
virtual bool | ValidateMode (StreamMode) const =0 |
void | ResetError () const |
void | SetError (ErrCode) const |
ErrCode | GetError () const |
bool | Good () const |
StreamMode | GetMode () const |
void | SetAutoCommit (bool bSet) |
Public Member Functions inherited from SvRefBase | |
SvRefBase () | |
SvRefBase (const SvRefBase &) | |
SvRefBase & | operator= (const SvRefBase &) |
void | RestoreNoDelete () |
void | AddNextRef () |
void | AddFirstRef () |
void | ReleaseRef () |
unsigned int | GetRefCount () const |
Private Member Functions | |
virtual | ~StorageStream () override |
Private Attributes | |
sal_uInt64 | nPos |
Additional Inherited Members | |
Protected Member Functions inherited from StorageBase | |
StorageBase () | |
virtual | ~StorageBase () override |
Protected Member Functions inherited from SvRefBase | |
virtual | ~SvRefBase () COVERITY_NOEXCEPT_FALSE |
Protected Member Functions inherited from OLEStorageBase | |
OLEStorageBase (StgIo *, StgDirEntry *, StreamMode &) | |
~OLEStorageBase () | |
bool | Validate_Impl (bool) const |
Static Protected Member Functions inherited from OLEStorageBase | |
static bool | ValidateMode_Impl (StreamMode, StgDirEntry const *p=nullptr) |
Protected Attributes inherited from StorageBase | |
ErrCode | m_nError |
StreamMode | m_nMode |
bool | m_bAutoCommit |
Protected Attributes inherited from OLEStorageBase | |
StreamMode & | nStreamMode |
StgIo * | pIo |
StgDirEntry * | pEntry |
|
overrideprivatevirtual |
Definition at line 169 of file stg.cxx.
References StgDirEntry::Commit(), Commit(), StorageBase::m_bAutoCommit, StgDirEntry::m_bDirect, StorageBase::m_nMode, StgDirEntry::m_nRefCnt, and OLEStorageBase::pEntry.
StorageStream::StorageStream | ( | StgIo * | p, |
StgDirEntry * | q, | ||
StreamMode | m | ||
) |
Definition at line 152 of file stg.cxx.
References m, StorageBase::m_nMode, StgDirEntry::m_nMode, StgDirEntry::m_nRefCnt, nPos, StgDirEntry::OpenStream(), and p.
|
finaloverridevirtual |
Implements BaseStorageStream.
Definition at line 248 of file stg.cxx.
References StgDirEntry::Commit(), StorageBase::Good(), StorageBase::m_nMode, StgCache::MoveError(), OLEStorageBase::pEntry, OLEStorageBase::pIo, StorageBase::SetError(), SVSTREAM_ACCESS_DENIED, and Validate().
Referenced by Flush(), and ~StorageStream().
|
overridevirtual |
Implements BaseStorageStream.
Definition at line 265 of file stg.cxx.
References BaseStorageStream::Commit(), StgDirEntry::Copy(), Equals(), StorageBase::GetError(), StgCache::MoveError(), OLEStorageBase::pEntry, OLEStorageBase::pIo, StorageBase::SetError(), StorageBase::Validate(), and Validate().
|
overridevirtual |
Implements BaseStorageStream.
Definition at line 178 of file stg.cxx.
References OLEStorageBase::pEntry.
Referenced by CopyTo().
|
overridevirtual |
|
overridevirtual |
Implements BaseStorageStream.
Definition at line 241 of file stg.cxx.
References StgDirEntry::GetSize(), OLEStorageBase::pEntry, and Validate().
|
overridevirtual |
Implements BaseStorageStream.
Definition at line 184 of file stg.cxx.
References StgCache::MoveError(), nPos, pData, OLEStorageBase::pEntry, OLEStorageBase::pIo, StgDirEntry::Read(), StgDirEntry::Seek(), and Validate().
|
overridevirtual |
Implements BaseStorageStream.
Definition at line 212 of file stg.cxx.
References n, nPos, OLEStorageBase::pEntry, StgDirEntry::Seek(), and Validate().
|
overridevirtual |
Implements BaseStorageStream.
Definition at line 229 of file stg.cxx.
References StgCache::MoveError(), OLEStorageBase::pEntry, OLEStorageBase::pIo, StgDirEntry::SetSize(), and Validate().
|
inlineoverridevirtual |
|
overridevirtual |
Implements StorageBase.
Definition at line 275 of file stg.cxx.
References StorageBase::SetError(), SVSTREAM_ACCESS_DENIED, and OLEStorageBase::Validate_Impl().
Referenced by Commit(), CopyTo(), GetSize(), Read(), Seek(), SetSize(), and Write().
|
overridevirtual |
Implements StorageBase.
Definition at line 283 of file stg.cxx.
References StorageBase::SetError(), SVSTREAM_ACCESS_DENIED, and OLEStorageBase::ValidateMode_Impl().
|
overridevirtual |
Implements BaseStorageStream.
Definition at line 198 of file stg.cxx.
References StgCache::MoveError(), nPos, pData, OLEStorageBase::pEntry, OLEStorageBase::pIo, StgDirEntry::Seek(), Validate(), and StgDirEntry::Write().
|
private |