LibreOffice Module sw (master) 1
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
SwRetrievedInputStreamDataManager Class Reference

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 SwRetrievedInputStreamDataManagerGetManager ()
 

Private Attributes

std::mutex maMutex
 
std::map< tDataKey, tDatamaInputStreamData
 

Static Private Attributes

static tDataKey snNextKeyValue = 1
 

Detailed Description

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.

Member Typedef Documentation

◆ tDataKey

Definition at line 48 of file retrievedinputstreamdata.hxx.

Member Function Documentation

◆ DECL_STATIC_LINK()

SwRetrievedInputStreamDataManager::DECL_STATIC_LINK ( SwRetrievedInputStreamDataManager  ,
LinkedInputStreamReady  ,
void *  ,
void   
)

◆ GetManager()

SwRetrievedInputStreamDataManager & SwRetrievedInputStreamDataManager::GetManager ( )
static

◆ PopData()

bool SwRetrievedInputStreamDataManager::PopData ( const tDataKey  nDataKey,
tData rData 
)

◆ PushData()

void SwRetrievedInputStreamDataManager::PushData ( const tDataKey  nDataKey,
css::uno::Reference< css::io::XInputStream > const &  xInputStream,
const bool  bIsStreamReadOnly 
)

◆ ReserveData()

SwRetrievedInputStreamDataManager::tDataKey SwRetrievedInputStreamDataManager::ReserveData ( std::weak_ptr< SwAsyncRetrieveInputStreamThreadConsumer > const &  pThreadConsumer)

Member Data Documentation

◆ maInputStreamData

std::map< tDataKey, tData > SwRetrievedInputStreamDataManager::maInputStreamData
private

Definition at line 86 of file retrievedinputstreamdata.hxx.

Referenced by PopData(), PushData(), and ReserveData().

◆ maMutex

std::mutex SwRetrievedInputStreamDataManager::maMutex
private

Definition at line 84 of file retrievedinputstreamdata.hxx.

Referenced by PopData(), PushData(), and ReserveData().

◆ snNextKeyValue

SwRetrievedInputStreamDataManager::tDataKey SwRetrievedInputStreamDataManager::snNextKeyValue = 1
staticprivate

Definition at line 82 of file retrievedinputstreamdata.hxx.

Referenced by ReserveData().


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