|
LibreOffice Module sw (master) 1
|
Singleton class to manage retrieved input stream data in Writer. More...
#include <retrievedinputstreamdata.hxx>
Classes | |
| struct | tData |
Public Types | |
| typedef sal_uInt64 | tDataKey |
Public Member Functions | |
| tDataKey | ReserveData (std::weak_ptr< SwAsyncRetrieveInputStreamThreadConsumer > const &pThreadConsumer) |
| void | PushData (const tDataKey nDataKey, css::uno::Reference< css::io::XInputStream > const &xInputStream, const bool bIsStreamReadOnly) |
| bool | PopData (const tDataKey nDataKey, tData &rData) |
| DECL_STATIC_LINK (SwRetrievedInputStreamDataManager, LinkedInputStreamReady, void *, void) | |
Static Public Member Functions | |
| static SwRetrievedInputStreamDataManager & | GetManager () |
Private Attributes | |
| std::mutex | maMutex |
| std::map< tDataKey, tData > | maInputStreamData |
Static Private Attributes | |
| static tDataKey | snNextKeyValue = 1 |
Singleton class to manage retrieved input stream data in Writer.
OD 2007-01-29 #i73788# The instance of this class provides data container for retrieved input stream data. The data container is accessed via a key, which the data manager provides on creation of the data container. When a certain data container is filled with data, an user event is submitted to trigger the processing of with data.
Definition at line 44 of file retrievedinputstreamdata.hxx.
| typedef sal_uInt64 SwRetrievedInputStreamDataManager::tDataKey |
Definition at line 48 of file retrievedinputstreamdata.hxx.
| SwRetrievedInputStreamDataManager::DECL_STATIC_LINK | ( | SwRetrievedInputStreamDataManager | , |
| LinkedInputStreamReady | , | ||
| void * | , | ||
| void | |||
| ) |
|
static |
Definition at line 28 of file retrievedinputstreamdata.cxx.
Referenced by SwAsyncRetrieveInputStreamThreadConsumer::CreateThread(), IMPL_STATIC_LINK(), and SwAsyncRetrieveInputStreamThread::threadFunction().
Definition at line 88 of file retrievedinputstreamdata.cxx.
References maInputStreamData, maMutex, SwRetrievedInputStreamDataManager::tData::mbIsStreamReadOnly, SwRetrievedInputStreamDataManager::tData::mpThreadConsumer, and SwRetrievedInputStreamDataManager::tData::mxInputStream.
Referenced by IMPL_STATIC_LINK().
| void SwRetrievedInputStreamDataManager::PushData | ( | const tDataKey | nDataKey, |
| css::uno::Reference< css::io::XInputStream > const & | xInputStream, | ||
| const bool | bIsStreamReadOnly | ||
| ) |
Definition at line 57 of file retrievedinputstreamdata.cxx.
References GetpApp(), LINK, maInputStreamData, maMutex, and Application::PostUserEvent().
Referenced by SwAsyncRetrieveInputStreamThread::threadFunction().
| SwRetrievedInputStreamDataManager::tDataKey SwRetrievedInputStreamDataManager::ReserveData | ( | std::weak_ptr< SwAsyncRetrieveInputStreamThreadConsumer > const & | pThreadConsumer | ) |
Definition at line 34 of file retrievedinputstreamdata.cxx.
References maInputStreamData, maMutex, SAL_MAX_UINT64, and snNextKeyValue.
Referenced by SwAsyncRetrieveInputStreamThreadConsumer::CreateThread().
Definition at line 86 of file retrievedinputstreamdata.hxx.
Referenced by PopData(), PushData(), and ReserveData().
|
private |
Definition at line 84 of file retrievedinputstreamdata.hxx.
Referenced by PopData(), PushData(), and ReserveData().
|
staticprivate |
Definition at line 82 of file retrievedinputstreamdata.hxx.
Referenced by ReserveData().