LibreOffice Module tools (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
SvLockBytes Class Reference

#include <stream.hxx>

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

Public Member Functions

 SvLockBytes ()
 
 SvLockBytes (SvStream *pTheStream, bool bTheOwner=false)
 
virtual ~SvLockBytes () override
 
const SvStreamGetStream () const
 
void SetSynchronMode (bool bTheSync=true)
 
bool IsSynchronMode () const
 
virtual ErrCode ReadAt (sal_uInt64 nPos, void *pBuffer, std::size_t nCount, std::size_t *pRead) const
 
virtual ErrCode WriteAt (sal_uInt64 nPos, const void *pBuffer, std::size_t nCount, std::size_t *pWritten)
 
virtual ErrCode Flush () const
 
virtual ErrCode SetSize (sal_uInt64 nSize)
 
virtual ErrCode Stat (SvLockBytesStat *pStat) const
 
- 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

void close ()
 
- Protected Member Functions inherited from SvRefBase
virtual ~SvRefBase () COVERITY_NOEXCEPT_FALSE
 

Private Attributes

SvStreamm_pStream
 
bool m_bOwner
 
bool m_bSync
 

Detailed Description

Definition at line 102 of file stream.hxx.

Constructor & Destructor Documentation

◆ SvLockBytes() [1/2]

SvLockBytes::SvLockBytes ( )
inline

Definition at line 113 of file stream.hxx.

References m_pStream.

◆ SvLockBytes() [2/2]

SvLockBytes::SvLockBytes ( SvStream pTheStream,
bool  bTheOwner = false 
)
inline

Definition at line 115 of file stream.hxx.

References m_pStream.

◆ ~SvLockBytes()

virtual SvLockBytes::~SvLockBytes ( )
inlineoverridevirtual

Definition at line 118 of file stream.hxx.

References close.

Member Function Documentation

◆ close()

void SvLockBytes::close ( )
protected

Definition at line 157 of file stream.cxx.

References m_bOwner, and m_pStream.

◆ Flush()

ErrCode SvLockBytes::Flush ( void  ) const
virtual

Definition at line 200 of file stream.cxx.

References ERRCODE_NONE, SvStream::Flush(), SvStream::GetErrorCode(), and m_pStream.

◆ GetStream()

const SvStream * SvLockBytes::GetStream ( ) const
inline

Definition at line 120 of file stream.hxx.

References m_pStream.

Referenced by SvStream::SvStream().

◆ IsSynchronMode()

bool SvLockBytes::IsSynchronMode ( ) const
inline

Definition at line 123 of file stream.hxx.

◆ ReadAt()

ErrCode SvLockBytes::ReadAt ( sal_uInt64  nPos,
void *  pBuffer,
std::size_t  nCount,
std::size_t *  pRead 
) const
virtual

◆ SetSize()

ErrCode SvLockBytes::SetSize ( sal_uInt64  nSize)
virtual

◆ SetSynchronMode()

void SvLockBytes::SetSynchronMode ( bool  bTheSync = true)
inline

Definition at line 122 of file stream.hxx.

◆ Stat()

ErrCode SvLockBytes::Stat ( SvLockBytesStat pStat) const
virtual

Definition at line 225 of file stream.cxx.

References ERRCODE_NONE, m_pStream, SvLockBytesStat::nSize, and SvStream::TellEnd().

◆ WriteAt()

ErrCode SvLockBytes::WriteAt ( sal_uInt64  nPos,
const void *  pBuffer,
std::size_t  nCount,
std::size_t *  pWritten 
)
virtual

Member Data Documentation

◆ m_bOwner

bool SvLockBytes::m_bOwner
private

Definition at line 105 of file stream.hxx.

Referenced by close().

◆ m_bSync

bool SvLockBytes::m_bSync
private

Definition at line 106 of file stream.hxx.

◆ m_pStream

SvStream* SvLockBytes::m_pStream
private

Definition at line 104 of file stream.hxx.

Referenced by close(), Flush(), ReadAt(), SetSize(), Stat(), and WriteAt().


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