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

Implements a seekable InputStream working on an std::istream. More...

#include <std_inputstream.hxx>

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

Public Member Functions

 StdInputStream (boost::shared_ptr< std::istream > const &pStream)
 
virtual ~StdInputStream () override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
virtual void SAL_CALL acquire () override throw ( )
 
virtual void SAL_CALL release () override throw ( )
 
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 seek (sal_Int64 location) override
 XSeekable. More...
 
virtual sal_Int64 SAL_CALL getPosition () override
 
virtual sal_Int64 SAL_CALL getLength () override
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 
 OWeakObject (const OWeakObject &)
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
 
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
 

Private Attributes

osl::Mutex m_aMutex
 
boost::shared_ptr< std::istream > m_pStream
 
sal_Int64 m_nLength
 

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 seekable InputStream working on an std::istream.

Definition at line 28 of file std_inputstream.hxx.

Constructor & Destructor Documentation

cmis::StdInputStream::StdInputStream ( boost::shared_ptr< std::istream > const &  pStream)

Definition at line 23 of file std_inputstream.cxx.

References m_nLength, and m_pStream.

cmis::StdInputStream::~StdInputStream ( )
overridevirtual

Definition at line 38 of file std_inputstream.cxx.

Member Function Documentation

void SAL_CALL cmis::StdInputStream::acquire ( )
throw (
)
overridevirtual

Reimplemented from cppu::OWeakObject.

Definition at line 51 of file std_inputstream.cxx.

sal_Int32 SAL_CALL cmis::StdInputStream::available ( )
overridevirtual

Definition at line 128 of file std_inputstream.cxx.

References getPosition(), m_nLength, and SAL_MAX_INT32.

void SAL_CALL cmis::StdInputStream::closeInput ( )
overridevirtual

Definition at line 133 of file std_inputstream.cxx.

sal_Int64 SAL_CALL cmis::StdInputStream::getLength ( )
overridevirtual

Definition at line 176 of file std_inputstream.cxx.

References m_nLength.

sal_Int64 SAL_CALL cmis::StdInputStream::getPosition ( )
overridevirtual

Definition at line 162 of file std_inputstream.cxx.

References m_aMutex, m_pStream, and nPos.

Referenced by available().

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

Reimplemented from cppu::OWeakObject.

Definition at line 42 of file std_inputstream.cxx.

References uno::Any::hasValue().

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

Definition at line 61 of file std_inputstream.cxx.

References m_aMutex, m_pStream, and SAL_INFO.

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

Definition at line 86 of file std_inputstream.cxx.

References m_aMutex, m_pStream, and SAL_INFO.

void SAL_CALL cmis::StdInputStream::release ( )
throw (
)
overridevirtual

Reimplemented from cppu::OWeakObject.

Definition at line 56 of file std_inputstream.cxx.

void SAL_CALL cmis::StdInputStream::seek ( sal_Int64  location)
overridevirtual

XSeekable.

Definition at line 138 of file std_inputstream.cxx.

References m_aMutex, m_nLength, m_pStream, and SAL_INFO.

void SAL_CALL cmis::StdInputStream::skipBytes ( sal_Int32  nBytesToSkip)
overridevirtual

Definition at line 110 of file std_inputstream.cxx.

References m_aMutex, m_pStream, and SAL_INFO.

Member Data Documentation

osl::Mutex cmis::StdInputStream::m_aMutex
private

Definition at line 79 of file std_inputstream.hxx.

Referenced by getPosition(), readBytes(), readSomeBytes(), seek(), and skipBytes().

sal_Int64 cmis::StdInputStream::m_nLength
private

Definition at line 81 of file std_inputstream.hxx.

Referenced by available(), getLength(), seek(), and StdInputStream().

boost::shared_ptr< std::istream > cmis::StdInputStream::m_pStream
private

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