LibreOffice Module xmlhelp (master) 1
Public Member Functions | Private Attributes | List of all members
chelp::XInputStream_impl Class Reference

#include <inputstream.hxx>

Inheritance diagram for chelp::XInputStream_impl:
[legend]
Collaboration diagram for chelp::XInputStream_impl:
[legend]

Public Member Functions

 XInputStream_impl (const OUString &aUncPath)
 
virtual ~XInputStream_impl () override
 
bool CtorSuccess ()
 Returns an error code as given by filerror.hxx. More...
 
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 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
 
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::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

bool m_bIsOpen
 
osl::File m_aFile
 

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 31 of file inputstream.hxx.

Constructor & Destructor Documentation

◆ XInputStream_impl()

XInputStream_impl::XInputStream_impl ( const OUString &  aUncPath)
explicit

Definition at line 32 of file inputstream.cxx.

References m_aFile, and m_bIsOpen.

◆ ~XInputStream_impl()

XInputStream_impl::~XInputStream_impl ( )
overridevirtual

Definition at line 39 of file inputstream.cxx.

References m_aFile, and m_bIsOpen.

Member Function Documentation

◆ acquire()

void SAL_CALL XInputStream_impl::acquire ( )
overridevirtualnoexcept

Reimplemented from cppu::OWeakObject.

Definition at line 56 of file inputstream.cxx.

◆ available()

sal_Int32 SAL_CALL XInputStream_impl::available ( )
overridevirtual

Definition at line 116 of file inputstream.cxx.

References m_aFile, and SAL_MAX_INT32.

◆ closeInput()

void SAL_CALL XInputStream_impl::closeInput ( )
overridevirtual

Definition at line 129 of file inputstream.cxx.

References err, m_aFile, and m_bIsOpen.

◆ CtorSuccess()

bool chelp::XInputStream_impl::CtorSuccess ( )
inline

Returns an error code as given by filerror.hxx.

Definition at line 46 of file inputstream.hxx.

References m_bIsOpen.

◆ getLength()

sal_Int64 SAL_CALL XInputStream_impl::getLength ( )
overridevirtual

Definition at line 161 of file inputstream.cxx.

References err, and m_aFile.

◆ getPosition()

sal_Int64 SAL_CALL XInputStream_impl::getPosition ( )
overridevirtual

Definition at line 152 of file inputstream.cxx.

References m_aFile.

◆ queryInterface()

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

Reimplemented from cppu::OWeakObject.

Definition at line 46 of file inputstream.cxx.

References uno::Any::hasValue(), and cppu::queryInterface().

◆ readBytes()

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

◆ readSomeBytes()

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

◆ release()

void SAL_CALL XInputStream_impl::release ( )
overridevirtualnoexcept

Reimplemented from cppu::OWeakObject.

Definition at line 64 of file inputstream.cxx.

◆ seek()

void SAL_CALL XInputStream_impl::seek ( sal_Int64  location)
overridevirtual

Definition at line 142 of file inputstream.cxx.

References m_aFile.

◆ skipBytes()

void SAL_CALL XInputStream_impl::skipBytes ( sal_Int32  nBytesToSkip)
overridevirtual

Definition at line 105 of file inputstream.cxx.

References m_aFile.

Member Data Documentation

◆ m_aFile

osl::File chelp::XInputStream_impl::m_aFile
private

◆ m_bIsOpen

bool chelp::XInputStream_impl::m_bIsOpen
private

Definition at line 89 of file inputstream.hxx.

Referenced by closeInput(), CtorSuccess(), XInputStream_impl(), and ~XInputStream_impl().


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