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

#include <stg.hxx>

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

Public Member Functions

 UCBStorageStream (const OUString &rName, StreamMode nMode, bool bDirect, bool bRepair, css::uno::Reference< css::ucb::XProgressHandler > const &xProgress)
 
 UCBStorageStream (UCBStorageStream_Impl *)
 
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 () override
 
virtual bool Validate (bool=false) const override
 
virtual bool ValidateMode (StreamMode) const override
 
virtual bool Equals (const BaseStorageStream &rStream) const override
 
bool SetProperty (const OUString &rName, const css::uno::Any &rValue)
 
SvStreamGetModifySvStream ()
 
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 ~UCBStorageStream () override
 

Private Attributes

UCBStorageStream_ImplpImp
 

Friends

class UCBStorage
 

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 Attributes inherited from StorageBase
ErrCode m_nError
 
StreamMode m_nMode
 
bool m_bAutoCommit
 

Detailed Description

Definition at line 204 of file stg.hxx.

Constructor & Destructor Documentation

◆ ~UCBStorageStream()

UCBStorageStream::~UCBStorageStream ( )
overrideprivatevirtual

◆ UCBStorageStream() [1/2]

UCBStorageStream::UCBStorageStream ( const OUString &  rName,
StreamMode  nMode,
bool  bDirect,
bool  bRepair,
css::uno::Reference< css::ucb::XProgressHandler > const &  xProgress 
)

◆ UCBStorageStream() [2/2]

UCBStorageStream::UCBStorageStream ( UCBStorageStream_Impl pImpl)

Member Function Documentation

◆ Commit()

bool UCBStorageStream::Commit ( )
overridevirtual

Implements BaseStorageStream.

Definition at line 1300 of file ucbstorage.cxx.

References UCBStorageStream_Impl::FlushData(), and pImp.

Referenced by Flush().

◆ CopyTo()

void UCBStorageStream::CopyTo ( BaseStorageStream pDestStm)
overridevirtual

◆ Equals()

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

Implements BaseStorageStream.

Definition at line 1294 of file ucbstorage.cxx.

◆ Flush()

void UCBStorageStream::Flush ( void  )
overridevirtual

Implements BaseStorageStream.

Definition at line 1248 of file ucbstorage.cxx.

References Commit().

◆ GetModifySvStream()

SvStream * UCBStorageStream::GetModifySvStream ( )

Definition at line 1289 of file ucbstorage.cxx.

References pImp.

Referenced by StgCache::SetStrm().

◆ GetSize()

sal_uInt64 UCBStorageStream::GetSize ( ) const
overridevirtual

Implements BaseStorageStream.

Definition at line 1368 of file ucbstorage.cxx.

References UCBStorageStream_Impl::GetSize(), and pImp.

◆ Read()

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

Implements BaseStorageStream.

Definition at line 1224 of file ucbstorage.cxx.

References UCBStorageStream_Impl::GetData(), pData, and pImp.

Referenced by CopyTo().

◆ Seek()

sal_uInt64 UCBStorageStream::Seek ( sal_uInt64  nPos)
overridevirtual

Implements BaseStorageStream.

Definition at line 1235 of file ucbstorage.cxx.

References nPos, pImp, and SvStream::Seek().

Referenced by CopyTo().

◆ SetProperty()

bool UCBStorageStream::SetProperty ( const OUString &  rName,
const css::uno::Any &  rValue 
)

◆ SetSize()

bool UCBStorageStream::SetSize ( sal_uInt64  nNewSize)
overridevirtual

Implements BaseStorageStream.

Definition at line 1254 of file ucbstorage.cxx.

References SvStream::GetError(), pImp, and UCBStorageStream_Impl::SetSize().

◆ Tell()

sal_uInt64 UCBStorageStream::Tell ( )
overridevirtual

Implements BaseStorageStream.

Definition at line 1241 of file ucbstorage.cxx.

References UCBStorageStream_Impl::Init(), UCBStorageStream_Impl::m_pStream, and pImp.

Referenced by CopyTo().

◆ Validate()

bool UCBStorageStream::Validate ( bool  bWrite = false) const
overridevirtual

Implements StorageBase.

Definition at line 1260 of file ucbstorage.cxx.

References UCBStorageStream_Impl::m_nMode, and pImp.

◆ ValidateMode()

bool UCBStorageStream::ValidateMode ( StreamMode  m) const
overridevirtual

Implements StorageBase.

Definition at line 1265 of file ucbstorage.cxx.

References m.

◆ Write()

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

Implements BaseStorageStream.

Definition at line 1230 of file ucbstorage.cxx.

References pData, pImp, and UCBStorageStream_Impl::PutData().

Friends And Related Function Documentation

◆ UCBStorage

friend class UCBStorage
friend

Definition at line 206 of file stg.hxx.

Member Data Documentation

◆ pImp

UCBStorageStream_Impl* UCBStorageStream::pImp
private

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