LibreOffice Module ucb (master) 1
Public Member Functions | Private Attributes | List of all members
cmis::StdOutputStream Class Reference

Implements a OutputStream working on an std::ostream. More...

#include <std_outputstream.hxx>

Inheritance diagram for cmis::StdOutputStream:
[legend]
Collaboration diagram for cmis::StdOutputStream:
[legend]

Public Member Functions

 StdOutputStream (boost::shared_ptr< std::ostream > pStream)
 
virtual ~StdOutputStream () override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual void SAL_CALL writeBytes (const css::uno::Sequence< sal_Int8 > &aData) override
 
virtual void SAL_CALL flush () override
 
virtual void SAL_CALL closeOutput () override
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 
 OWeakObject (const OWeakObject &)
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
 
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
 

Private Attributes

std::mutex m_aMutex
 
boost::shared_ptr< std::ostream > m_pStream
 

Additional Inherited Members

- Protected Member Functions inherited from cppu::OWeakObject
virtual ~OWeakObject () COVERITY_NOEXCEPT_FALSE
 
void disposeWeakConnectionPoint ()
 
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 

Detailed Description

Implements a OutputStream working on an std::ostream.

Definition at line 24 of file std_outputstream.hxx.

Constructor & Destructor Documentation

◆ StdOutputStream()

cmis::StdOutputStream::StdOutputStream ( boost::shared_ptr< std::ostream >  pStream)

Definition at line 23 of file std_outputstream.cxx.

References m_pStream.

◆ ~StdOutputStream()

cmis::StdOutputStream::~StdOutputStream ( )
overridevirtual

Definition at line 28 of file std_outputstream.cxx.

References m_pStream.

Member Function Documentation

◆ acquire()

void SAL_CALL cmis::StdOutputStream::acquire ( )
overridevirtualnoexcept

Reimplemented from cppu::OWeakObject.

Definition at line 41 of file std_outputstream.cxx.

◆ closeOutput()

void SAL_CALL cmis::StdOutputStream::closeOutput ( )
overridevirtual

Definition at line 87 of file std_outputstream.cxx.

References m_aMutex, and m_pStream.

◆ flush()

void SAL_CALL cmis::StdOutputStream::flush ( )
overridevirtual

Definition at line 69 of file std_outputstream.cxx.

References m_aMutex, m_pStream, and SAL_INFO.

◆ queryInterface()

uno::Any SAL_CALL cmis::StdOutputStream::queryInterface ( const css::uno::Type &  rType)
overridevirtual

Reimplemented from cppu::OWeakObject.

Definition at line 34 of file std_outputstream.cxx.

References uno::Any::hasValue().

◆ release()

void SAL_CALL cmis::StdOutputStream::release ( )
overridevirtualnoexcept

Reimplemented from cppu::OWeakObject.

Definition at line 46 of file std_outputstream.cxx.

◆ writeBytes()

void SAL_CALL cmis::StdOutputStream::writeBytes ( const css::uno::Sequence< sal_Int8 > &  aData)
overridevirtual

Definition at line 51 of file std_outputstream.cxx.

References aData, m_aMutex, m_pStream, and SAL_INFO.

Member Data Documentation

◆ m_aMutex

std::mutex cmis::StdOutputStream::m_aMutex
private

Definition at line 48 of file std_outputstream.hxx.

Referenced by closeOutput(), flush(), and writeBytes().

◆ m_pStream

boost::shared_ptr< std::ostream > cmis::StdOutputStream::m_pStream
private

Definition at line 49 of file std_outputstream.hxx.

Referenced by closeOutput(), flush(), writeBytes(), and ~StdOutputStream().


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