LibreOffice Module comphelper (master)  1
Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
comphelper::OModule Class Reference

#include <componentmodule.hxx>

Inheritance diagram for comphelper::OModule:
[legend]

Public Member Functions

 OModule ()
 access safety More...
 
virtual ~OModule ()
 
void registerImplementation (const OUString &_rImplementationName, const css::uno::Sequence< OUString > &_rServiceNames,::cppu::ComponentFactoryFunc _pCreateFunction)
 register a component implementing a service with the given data. More...
 
void registerImplementation (const ComponentDescription &_rComp)
 registers a component given by ComponentDescription More...
 
css::uno::Reference< css::uno::XInterface > getComponentFactory (const OUString &_rImplementationName)
 creates a Factory for the component with the given implementation name. More...
 
voidgetComponentFactory (const sal_Char *_pImplementationName)
 version of getComponentFactory which directly takes the char argument you got in your component_getFactory call More...
 

Protected Attributes

mutable::osl::Mutex m_aMutex
 impl class. lives as long as at least one client for the module is registered More...
 

Private Member Functions

 OModule (const OModule &)=delete
 
OModuleoperator= (const OModule &)=delete
 

Private Attributes

std::unique_ptr< OModuleImplm_pImpl
 

Detailed Description

Definition at line 79 of file componentmodule.hxx.

Constructor & Destructor Documentation

comphelper::OModule::OModule ( )

access safety

Definition at line 49 of file componentmodule.cxx.

comphelper::OModule::~OModule ( )
virtual

Definition at line 54 of file componentmodule.cxx.

comphelper::OModule::OModule ( const OModule )
privatedelete

Member Function Documentation

Reference< XInterface > comphelper::OModule::getComponentFactory ( const OUString &  _rImplementationName)

creates a Factory for the component with the given implementation name.

Usually used from within component_getFactory.

Parameters
_pImplementationNamethe implementation name of the component
Returns
the XInterface access to a factory for the component

Definition at line 81 of file componentmodule.cxx.

References m_pImpl.

Referenced by getComponentFactory().

void * comphelper::OModule::getComponentFactory ( const sal_Char _pImplementationName)

version of getComponentFactory which directly takes the char argument you got in your component_getFactory call

Definition at line 74 of file componentmodule.cxx.

References getComponentFactory().

OModule& comphelper::OModule::operator= ( const OModule )
privatedelete
void comphelper::OModule::registerImplementation ( const OUString &  _rImplementationName,
const css::uno::Sequence< OUString > &  _rServiceNames,
::cppu::ComponentFactoryFunc  _pCreateFunction 
)

register a component implementing a service with the given data.

Parameters
_rImplementationNamethe implementation name of the component
_rServiceNamesthe services the component supports
_pCreateFunctiona function for creating an instance of the component
_pFactoryFunctiona function for creating a factory for that component

Definition at line 67 of file componentmodule.cxx.

Referenced by comphelper::OAutoRegistration< TYPE >::OAutoRegistration().

void comphelper::OModule::registerImplementation ( const ComponentDescription _rComp)

registers a component given by ComponentDescription

Definition at line 58 of file componentmodule.cxx.

References m_aMutex, and m_pImpl.

Member Data Documentation

mutable ::osl::Mutex comphelper::OModule::m_aMutex
protected

impl class. lives as long as at least one client for the module is registered

Definition at line 85 of file componentmodule.hxx.

Referenced by registerImplementation().

std::unique_ptr<OModuleImpl> comphelper::OModule::m_pImpl
private

Definition at line 82 of file componentmodule.hxx.

Referenced by getComponentFactory(), and registerImplementation().


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