LibreOffice Module unotools (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
utl::TempFileFastService Class Referencefinal

#include <tempfile.hxx>

Inheritance diagram for utl::TempFileFastService:
[legend]
Collaboration diagram for utl::TempFileFastService:
[legend]

Public Member Functions

 TempFileFastService ()
 
virtual ~TempFileFastService () 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 seek (sal_Int64 location) override
 
virtual sal_Int64 SAL_CALL getPosition () override
 
virtual sal_Int64 SAL_CALL getLength () 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 truncate () override
 

Private Member Functions

void checkError () const
 
void checkConnected ()
 

Private Attributes

std::optional< utl::TempFileFastmpTempFile
 
std::mutex maMutex
 
SvStreammpStream
 
bool mbInClosed
 
bool mbOutClosed
 

Detailed Description

Definition at line 200 of file tempfile.hxx.

Constructor & Destructor Documentation

◆ TempFileFastService()

utl::TempFileFastService::TempFileFastService ( )
explicit

Definition at line 582 of file tempfile.cxx.

References mpStream, and mpTempFile.

◆ ~TempFileFastService()

utl::TempFileFastService::~TempFileFastService ( )
overridevirtual

Definition at line 590 of file tempfile.cxx.

Member Function Documentation

◆ available()

sal_Int32 SAL_CALL utl::TempFileFastService::available ( )
override

◆ checkConnected()

void utl::TempFileFastService::checkConnected ( )
private

◆ checkError()

void utl::TempFileFastService::checkError ( ) const
private

◆ closeInput()

void SAL_CALL utl::TempFileFastService::closeInput ( )
overridevirtual

Definition at line 666 of file tempfile.cxx.

References maMutex, mbInClosed, mbOutClosed, mpStream, and mpTempFile.

◆ closeOutput()

void SAL_CALL utl::TempFileFastService::closeOutput ( )
overridevirtual

◆ flush()

void SAL_CALL utl::TempFileFastService::flush ( )
overridevirtual

Definition at line 697 of file tempfile.cxx.

References checkConnected(), checkError(), SvStream::Flush(), maMutex, mbOutClosed, and mpStream.

◆ getInputStream()

css::uno::Reference< css::io::XInputStream > SAL_CALL utl::TempFileFastService::getInputStream ( )
overridevirtual

Definition at line 782 of file tempfile.cxx.

◆ getLength()

sal_Int64 SAL_CALL utl::TempFileFastService::getLength ( )
overridevirtual

Definition at line 768 of file tempfile.cxx.

References checkConnected(), checkError(), maMutex, mpStream, and SvStream::TellEnd().

◆ getOutputStream()

css::uno::Reference< css::io::XOutputStream > SAL_CALL utl::TempFileFastService::getOutputStream ( )
overridevirtual

Definition at line 787 of file tempfile.cxx.

◆ getPosition()

sal_Int64 SAL_CALL utl::TempFileFastService::getPosition ( )
overridevirtual

Definition at line 758 of file tempfile.cxx.

References checkConnected(), checkError(), maMutex, mpStream, nPos, and SvStream::Tell().

◆ readBytes()

sal_Int32 SAL_CALL utl::TempFileFastService::readBytes ( css::uno::Sequence< ::sal_Int8 > &  aData,
::sal_Int32  nBytesToRead 
)
override

◆ readSomeBytes()

sal_Int32 SAL_CALL utl::TempFileFastService::readSomeBytes ( css::uno::Sequence< ::sal_Int8 > &  aData,
::sal_Int32  nMaxBytesToRead 
)
override

◆ seek()

void SAL_CALL utl::TempFileFastService::seek ( sal_Int64  location)
overridevirtual

Definition at line 744 of file tempfile.cxx.

References checkConnected(), checkError(), maMutex, mpStream, and SvStream::Seek().

◆ skipBytes()

void SAL_CALL utl::TempFileFastService::skipBytes ( ::sal_Int32  nBytesToSkip)
overridevirtual

Definition at line 640 of file tempfile.cxx.

References checkConnected(), checkError(), maMutex, mbInClosed, mpStream, and SvStream::SeekRel().

◆ truncate()

void SAL_CALL utl::TempFileFastService::truncate ( )
overridevirtual

◆ writeBytes()

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

Member Data Documentation

◆ maMutex

std::mutex utl::TempFileFastService::maMutex
private

◆ mbInClosed

bool utl::TempFileFastService::mbInClosed
private

Definition at line 205 of file tempfile.hxx.

Referenced by available(), closeInput(), closeOutput(), readBytes(), readSomeBytes(), and skipBytes().

◆ mbOutClosed

bool utl::TempFileFastService::mbOutClosed
private

Definition at line 206 of file tempfile.hxx.

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

◆ mpStream

SvStream* utl::TempFileFastService::mpStream
private

◆ mpTempFile

std::optional<utl::TempFileFast> utl::TempFileFastService::mpTempFile
private

Definition at line 202 of file tempfile.hxx.

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


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