LibreOffice Module sot (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
StorageStream Class Referencefinal

#include <stg.hxx>

Inheritance diagram for StorageStream:
[legend]
Collaboration diagram for StorageStream:
[legend]

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 &)
 
SvRefBaseoperator= (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
StreamModenStreamMode
 
StgIopIo
 
StgDirEntrypEntry
 

Detailed Description

Definition at line 125 of file stg.hxx.

Constructor & Destructor Documentation

◆ ~StorageStream()

StorageStream::~StorageStream ( )
overrideprivatevirtual

◆ StorageStream()

StorageStream::StorageStream ( StgIo p,
StgDirEntry q,
StreamMode  m 
)

Member Function Documentation

◆ Commit()

bool StorageStream::Commit ( )
finaloverridevirtual

◆ CopyTo()

void StorageStream::CopyTo ( BaseStorageStream pDestStm)
overridevirtual

◆ Equals()

bool StorageStream::Equals ( const BaseStorageStream rStream) const
overridevirtual

Implements BaseStorageStream.

Definition at line 178 of file stg.cxx.

References OLEStorageBase::pEntry.

Referenced by CopyTo().

◆ Flush()

void StorageStream::Flush ( void  )
overridevirtual

Implements BaseStorageStream.

Definition at line 223 of file stg.cxx.

References Commit().

◆ GetSize()

sal_uInt64 StorageStream::GetSize ( ) const
overridevirtual

Implements BaseStorageStream.

Definition at line 241 of file stg.cxx.

References StgDirEntry::GetSize(), OLEStorageBase::pEntry, and Validate().

◆ Read()

sal_Int32 StorageStream::Read ( void *  pData,
sal_Int32  nSize 
)
overridevirtual

◆ Seek()

sal_uInt64 StorageStream::Seek ( sal_uInt64  nPos)
overridevirtual

Implements BaseStorageStream.

Definition at line 212 of file stg.cxx.

References n, nPos, OLEStorageBase::pEntry, StgDirEntry::Seek(), and Validate().

◆ SetSize()

bool StorageStream::SetSize ( sal_uInt64  nNewSize)
overridevirtual

◆ Tell()

virtual sal_uInt64 StorageStream::Tell ( )
inlineoverridevirtual

Implements BaseStorageStream.

Definition at line 136 of file stg.hxx.

References nPos.

◆ Validate()

bool StorageStream::Validate ( bool  bValidate = false) const
overridevirtual

◆ ValidateMode()

bool StorageStream::ValidateMode ( StreamMode  nMode) const
overridevirtual

◆ Write()

sal_Int32 StorageStream::Write ( const void *  pData,
sal_Int32  nSize 
)
overridevirtual

Member Data Documentation

◆ nPos

sal_uInt64 StorageStream::nPos
private

Definition at line 128 of file stg.hxx.

Referenced by Read(), Seek(), Tell(), and Write().


The documentation for this class was generated from the following files: