LibreOffice Module sot (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
StorageBase Class Referenceabstract

#include <stg.hxx>

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

Public Member Functions

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
 

Protected Member Functions

 StorageBase ()
 
virtual ~StorageBase () override
 
- Protected Member Functions inherited from SvRefBase
virtual ~SvRefBase () COVERITY_NOEXCEPT_FALSE
 

Protected Attributes

ErrCode m_nError
 
StreamMode m_nMode
 
bool m_bAutoCommit
 

Detailed Description

Definition at line 37 of file stg.hxx.

Constructor & Destructor Documentation

◆ StorageBase()

StorageBase::StorageBase ( )
protected

Definition at line 46 of file stg.cxx.

References ERRCODE_NONE, m_nError, and m_nMode.

◆ ~StorageBase()

StorageBase::~StorageBase ( )
overrideprotectedvirtual

Definition at line 53 of file stg.cxx.

Member Function Documentation

◆ GetError()

ErrCode StorageBase::GetError ( ) const

◆ GetMode()

StreamMode StorageBase::GetMode ( ) const
inline

Definition at line 52 of file stg.hxx.

References m_nMode.

Referenced by SotStorageStream::SotStorageStream().

◆ Good()

bool StorageBase::Good ( ) const
inline

Definition at line 51 of file stg.hxx.

References ERRCODE_NONE, and m_nError.

Referenced by StorageStream::Commit(), UCBStorage::CopyStorageElement_Impl(), and UCBStorage::CopyTo().

◆ ResetError()

void StorageBase::ResetError ( ) const

◆ SetAutoCommit()

void StorageBase::SetAutoCommit ( bool  bSet)
inline

Definition at line 53 of file stg.hxx.

References m_bAutoCommit.

◆ SetError()

void StorageBase::SetError ( ErrCode  n) const

◆ Validate()

virtual bool StorageBase::Validate ( bool  = false) const
pure virtual

Implemented in StorageStream, UCBStorageStream, and UCBStorage.

Referenced by StorageStream::CopyTo().

◆ ValidateMode()

virtual bool StorageBase::ValidateMode ( StreamMode  ) const
pure virtual

Implemented in StorageStream, UCBStorageStream, and UCBStorage.

Member Data Documentation

◆ m_bAutoCommit

bool StorageBase::m_bAutoCommit
protected

Definition at line 42 of file stg.hxx.

Referenced by SetAutoCommit(), and StorageStream::~StorageStream().

◆ m_nError

ErrCode StorageBase::m_nError
mutableprotected

Definition at line 40 of file stg.hxx.

Referenced by GetError(), Good(), ResetError(), SetError(), and StorageBase().

◆ m_nMode

StreamMode StorageBase::m_nMode
protected

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