LibreOffice Module svl (master) 1
Public Member Functions | Private Attributes | List of all members
OFSStreamContainer Class Reference

#include <ostreamcontainer.hxx>

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

Public Member Functions

 OFSStreamContainer (const css::uno::Reference< css::io::XStream > &xStream)
 
virtual ~OFSStreamContainer () 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 css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getInputStream () override
 
virtual css::uno::Reference< css::io::XOutputStream > SAL_CALL getOutputStream () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override
 
virtual void SAL_CALL seek (sal_Int64 location) override
 
virtual sal_Int64 SAL_CALL getPosition () override
 
virtual sal_Int64 SAL_CALL getLength () override
 
virtual sal_Int32 SAL_CALL readBytes (css::uno::Sequence< sal_Int8 > &aData, sal_Int32 nBytesToRead) override
 
virtual sal_Int32 SAL_CALL readSomeBytes (css::uno::Sequence< sal_Int8 > &aData, sal_Int32 nMaxBytesToRead) override
 
virtual void SAL_CALL skipBytes (sal_Int32 nBytesToSkip) override
 
virtual sal_Int32 SAL_CALL available () override
 
virtual void SAL_CALL closeInput () 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
 
virtual void SAL_CALL truncate () override
 
virtual void SAL_CALL waitForCompletion () 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
 
css::uno::Reference< css::io::XStream > m_xStream
 
css::uno::Reference< css::io::XSeekable > m_xSeekable
 
css::uno::Reference< css::io::XInputStream > m_xInputStream
 
css::uno::Reference< css::io::XOutputStream > m_xOutputStream
 
css::uno::Reference< css::io::XTruncate > m_xTruncate
 
css::uno::Reference< css::io::XAsyncOutputMonitor > m_xAsyncOutputMonitor
 
bool m_bDisposed
 
bool m_bInputClosed
 
bool m_bOutputClosed
 
::comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > m_aListenersContainer
 
css::uno::Sequence< css::uno::Type > m_aTypes
 

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

Definition at line 35 of file ostreamcontainer.hxx.

Constructor & Destructor Documentation

◆ OFSStreamContainer()

OFSStreamContainer::OFSStreamContainer ( const css::uno::Reference< css::io::XStream > &  xStream)
explicit

◆ ~OFSStreamContainer()

OFSStreamContainer::~OFSStreamContainer ( )
overridevirtual

Definition at line 56 of file ostreamcontainer.cxx.

Member Function Documentation

◆ acquire()

void SAL_CALL OFSStreamContainer::acquire ( )
overridevirtualnoexcept

Reimplemented from cppu::OWeakObject.

Definition at line 123 of file ostreamcontainer.cxx.

◆ addEventListener()

void SAL_CALL OFSStreamContainer::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  xListener)
overridevirtual

◆ available()

sal_Int32 SAL_CALL OFSStreamContainer::available ( )
overridevirtual

Definition at line 335 of file ostreamcontainer.cxx.

References m_aMutex, m_bDisposed, m_xInputStream, and m_xStream.

◆ closeInput()

void SAL_CALL OFSStreamContainer::closeInput ( )
overridevirtual

◆ closeOutput()

void SAL_CALL OFSStreamContainer::closeOutput ( )
overridevirtual

◆ dispose()

void SAL_CALL OFSStreamContainer::dispose ( void  )
overridevirtual

◆ flush()

void SAL_CALL OFSStreamContainer::flush ( )
overridevirtual

Definition at line 385 of file ostreamcontainer.cxx.

References m_aMutex, m_bDisposed, m_xOutputStream, and m_xStream.

◆ getImplementationId()

uno::Sequence< sal_Int8 > SAL_CALL OFSStreamContainer::getImplementationId ( )
overridevirtual

Definition at line 167 of file ostreamcontainer.cxx.

◆ getInputStream()

uno::Reference< io::XInputStream > SAL_CALL OFSStreamContainer::getInputStream ( )
overridevirtual

Definition at line 173 of file ostreamcontainer.cxx.

References m_aMutex, m_bDisposed, m_xInputStream, and m_xStream.

◆ getLength()

sal_Int64 SAL_CALL OFSStreamContainer::getLength ( )
overridevirtual

Definition at line 281 of file ostreamcontainer.cxx.

References m_aMutex, m_bDisposed, m_xSeekable, and m_xStream.

◆ getOutputStream()

uno::Reference< io::XOutputStream > SAL_CALL OFSStreamContainer::getOutputStream ( )
overridevirtual

Definition at line 189 of file ostreamcontainer.cxx.

References m_aMutex, m_bDisposed, m_xOutputStream, and m_xStream.

◆ getPosition()

sal_Int64 SAL_CALL OFSStreamContainer::getPosition ( )
overridevirtual

Definition at line 268 of file ostreamcontainer.cxx.

References m_aMutex, m_bDisposed, m_xSeekable, and m_xStream.

◆ getTypes()

uno::Sequence< uno::Type > SAL_CALL OFSStreamContainer::getTypes ( )
overridevirtual

◆ queryInterface()

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

◆ readBytes()

sal_Int32 SAL_CALL OFSStreamContainer::readBytes ( css::uno::Sequence< sal_Int8 > &  aData,
sal_Int32  nBytesToRead 
)
overridevirtual

Definition at line 296 of file ostreamcontainer.cxx.

References aData, m_aMutex, m_bDisposed, m_xInputStream, and m_xStream.

◆ readSomeBytes()

sal_Int32 SAL_CALL OFSStreamContainer::readSomeBytes ( css::uno::Sequence< sal_Int8 > &  aData,
sal_Int32  nMaxBytesToRead 
)
overridevirtual

Definition at line 309 of file ostreamcontainer.cxx.

References aData, m_aMutex, m_bDisposed, m_xInputStream, and m_xStream.

◆ release()

void SAL_CALL OFSStreamContainer::release ( )
overridevirtualnoexcept

Reimplemented from cppu::OWeakObject.

Definition at line 129 of file ostreamcontainer.cxx.

◆ removeEventListener()

void SAL_CALL OFSStreamContainer::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  aListener)
overridevirtual

◆ seek()

void SAL_CALL OFSStreamContainer::seek ( sal_Int64  location)
overridevirtual

Definition at line 255 of file ostreamcontainer.cxx.

References m_aMutex, m_bDisposed, m_xSeekable, and m_xStream.

◆ skipBytes()

void SAL_CALL OFSStreamContainer::skipBytes ( sal_Int32  nBytesToSkip)
overridevirtual

Definition at line 322 of file ostreamcontainer.cxx.

References m_aMutex, m_bDisposed, m_xInputStream, and m_xStream.

◆ truncate()

void SAL_CALL OFSStreamContainer::truncate ( )
overridevirtual

Definition at line 422 of file ostreamcontainer.cxx.

References m_aMutex, m_bDisposed, m_xStream, and m_xTruncate.

◆ waitForCompletion()

void SAL_CALL OFSStreamContainer::waitForCompletion ( )
overridevirtual

Definition at line 437 of file ostreamcontainer.cxx.

References m_aMutex, m_bDisposed, m_xAsyncOutputMonitor, and m_xStream.

◆ writeBytes()

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

Definition at line 372 of file ostreamcontainer.cxx.

References aData, m_aMutex, m_bDisposed, m_xOutputStream, and m_xStream.

Member Data Documentation

◆ m_aListenersContainer

::comphelper::OInterfaceContainerHelper4<css::lang::XEventListener> OFSStreamContainer::m_aListenersContainer
private

Definition at line 57 of file ostreamcontainer.hxx.

Referenced by addEventListener(), dispose(), and removeEventListener().

◆ m_aMutex

std::mutex OFSStreamContainer::m_aMutex
private

◆ m_aTypes

css::uno::Sequence<css::uno::Type> OFSStreamContainer::m_aTypes
private

Definition at line 58 of file ostreamcontainer.hxx.

Referenced by getTypes().

◆ m_bDisposed

bool OFSStreamContainer::m_bDisposed
private

◆ m_bInputClosed

bool OFSStreamContainer::m_bInputClosed
private

Definition at line 54 of file ostreamcontainer.hxx.

Referenced by closeInput(), closeOutput(), and dispose().

◆ m_bOutputClosed

bool OFSStreamContainer::m_bOutputClosed
private

Definition at line 55 of file ostreamcontainer.hxx.

Referenced by closeInput(), closeOutput(), and dispose().

◆ m_xAsyncOutputMonitor

css::uno::Reference< css::io::XAsyncOutputMonitor > OFSStreamContainer::m_xAsyncOutputMonitor
private

◆ m_xInputStream

css::uno::Reference< css::io::XInputStream > OFSStreamContainer::m_xInputStream
private

◆ m_xOutputStream

css::uno::Reference< css::io::XOutputStream > OFSStreamContainer::m_xOutputStream
private

◆ m_xSeekable

css::uno::Reference< css::io::XSeekable > OFSStreamContainer::m_xSeekable
private

◆ m_xStream

css::uno::Reference< css::io::XStream > OFSStreamContainer::m_xStream
private

◆ m_xTruncate

css::uno::Reference< css::io::XTruncate > OFSStreamContainer::m_xTruncate
private

Definition at line 50 of file ostreamcontainer.hxx.

Referenced by getTypes(), OFSStreamContainer(), queryInterface(), and truncate().


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