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_LINK (LinkedInputStreamReady, void *, void)
 

Static Public Member Functions

static SwRetrievedInputStreamDataManagerGetManager ()
 

Private Attributes

osl::Mutex maMutex
 
std::map< tDataKey, tDatamaInputStreamData
 

Static Private Attributes

static tDataKey mnNextKeyValue = 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 43 of file retrievedinputstreamdata.hxx.

Member Typedef Documentation

Definition at line 47 of file retrievedinputstreamdata.hxx.

Member Function Documentation

SwRetrievedInputStreamDataManager::DECL_LINK ( LinkedInputStreamReady  ,
void ,
void   
)
SwRetrievedInputStreamDataManager & SwRetrievedInputStreamDataManager::GetManager ( )
static
bool SwRetrievedInputStreamDataManager::PopData ( const tDataKey  nDataKey,
tData rData 
)
void SwRetrievedInputStreamDataManager::PushData ( const tDataKey  nDataKey,
css::uno::Reference< css::io::XInputStream > const &  xInputStream,
const bool  bIsStreamReadOnly 
)
SwRetrievedInputStreamDataManager::tDataKey SwRetrievedInputStreamDataManager::ReserveData ( std::weak_ptr< SwAsyncRetrieveInputStreamThreadConsumer > const &  pThreadConsumer)

Member Data Documentation

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

Definition at line 85 of file retrievedinputstreamdata.hxx.

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

osl::Mutex SwRetrievedInputStreamDataManager::maMutex
private

Definition at line 83 of file retrievedinputstreamdata.hxx.

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

SwRetrievedInputStreamDataManager::tDataKey SwRetrievedInputStreamDataManager::mnNextKeyValue = 1
staticprivate

Definition at line 81 of file retrievedinputstreamdata.hxx.

Referenced by ReserveData().


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