LibreOffice Module cppuhelper (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
cppuhelper::TypeManager Class Reference

#include <typemanager.hxx>

Inheritance diagram for cppuhelper::TypeManager:
[legend]
Collaboration diagram for cppuhelper::TypeManager:
[legend]

Public Member Functions

 TypeManager ()
 
void init (std::u16string_view rdbUris)
 
css::uno::Any find (OUString const &name)
 
css::uno::Reference< css::reflection::XTypeDescription > resolve (OUString const &name)
 
virtual void SAL_CALL acquire () noexcept override
 increasing m_refCount More...
 
virtual void SAL_CALL release () noexcept override
 decreasing m_refCount More...
 
- Public Member Functions inherited from cppuhelper::WeakComponentImplHelper2< Ifc >
virtual void SAL_CALL acquire () noexcept override
 increasing m_refCount More...
 
virtual void SAL_CALL release () noexcept override
 decreasing m_refCount More...
 
virtual void SAL_CALL dispose () noexcept final override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 Basic queryInterface() implementation supporting com::sun::star::uno::XWeak and com::sun::star::uno::XInterface. More...
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
- Public Member Functions inherited from cppuhelper::WeakComponentImplHelperBase2
virtual ~WeakComponentImplHelperBase2 () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 Basic queryInterface() implementation supporting com::sun::star::uno::XWeak and com::sun::star::uno::XInterface. More...
 
virtual void disposing (std::unique_lock< std::mutex > &)
 Called by dispose for subclasses to do dispose() work. More...
 
- Public Member Functions inherited from cppuhelper::UnoImplBase
virtual ~UnoImplBase ()
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 Default Constructor. More...
 
 OWeakObject (const OWeakObject &)
 Dummy copy constructor. More...
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 Dummy assignment operator. More...
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 Basic queryInterface() implementation supporting com::sun::star::uno::XWeak and com::sun::star::uno::XInterface. More...
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 increasing m_refCount More...
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 decreasing m_refCount More...
 
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
 XWeak::queryAdapter() implementation. More...
 
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
 Cast operator to XInterface reference. More...
 

Private Member Functions

virtual ~TypeManager () noexcept override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (OUString const &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual css::uno::Any SAL_CALL getByHierarchicalName (OUString const &aName) override
 
virtual sal_Bool SAL_CALL hasByHierarchicalName (OUString const &aName) override
 
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual sal_Bool SAL_CALL hasElements () override
 
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration () override
 
virtual sal_Bool SAL_CALL has (css::uno::Any const &aElement) override
 
virtual void SAL_CALL insert (css::uno::Any const &aElement) override
 
virtual void SAL_CALL remove (css::uno::Any const &aElement) override
 
virtual css::uno::Reference< css::reflection::XTypeDescriptionEnumeration > SAL_CALL createTypeDescriptionEnumeration (OUString const &moduleName, css::uno::Sequence< css::uno::TypeClass > const &types, css::reflection::TypeDescriptionSearchDepth depth) override
 
void readRdbDirectory (std::u16string_view uri, bool optional)
 
void readRdbFile (std::u16string_view uri, bool optional)
 
css::uno::Any getSequenceType (OUString const &name)
 
css::uno::Any getInstantiatedStruct (OUString const &name, sal_Int32 separator)
 
css::uno::Any getInterfaceMember (std::u16string_view name, std::size_t separator)
 
css::uno::Any getNamed (OUString const &name, rtl::Reference< unoidl::Entity > const &entity)
 
rtl::Reference< unoidl::EntityfindEntity (OUString const &name)
 

Static Private Member Functions

static css::uno::Any getEnumMember (rtl::Reference< unoidl::EnumTypeEntity > const &entity, std::u16string_view member)
 
static css::uno::Any getConstant (std::u16string_view constantGroupName, rtl::Reference< unoidl::ConstantGroupEntity > const &entity, std::u16string_view member)
 

Private Attributes

rtl::Reference< unoidl::Managermanager_
 

Additional Inherited Members

- Protected Member Functions inherited from cppuhelper::WeakComponentImplHelperBase2
void throwIfDisposed (std::unique_lock< std::mutex > &)
 
- Protected Member Functions inherited from cppu::OWeakObject
virtual ~OWeakObject () COVERITY_NOEXCEPT_FALSE
 Virtual dtor. More...
 
void disposeWeakConnectionPoint ()
 disposes and resets m_pWeakConnectionPoint More...
 
- Protected Attributes inherited from cppuhelper::WeakComponentImplHelperBase2
OInterfaceContainerHelper4< css::lang::XEventListener > maEventListeners
 
- Protected Attributes inherited from cppuhelper::UnoImplBase
std::mutex m_aMutex
 
bool m_bDisposed = false
 
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 reference count. More...
 

Detailed Description

Definition at line 44 of file typemanager.hxx.

Constructor & Destructor Documentation

◆ TypeManager()

TypeManager::TypeManager ( )

Definition at line 1824 of file typemanager.cxx.

References manager_.

◆ ~TypeManager()

TypeManager::~TypeManager ( )
overrideprivatevirtualnoexcept

Definition at line 1903 of file typemanager.cxx.

Member Function Documentation

◆ acquire()

virtual void SAL_CALL cppuhelper::WeakComponentImplHelper2< Ifc >::acquire ( )
inlineoverridevirtualnoexcept

increasing m_refCount

Reimplemented from cppuhelper::WeakComponentImplHelper2< Ifc >.

Definition at line 80 of file cppuhelper/inc/compbase2.hxx.

◆ createEnumeration()

css::uno::Reference< css::container::XEnumeration > TypeManager::createEnumeration ( )
overrideprivatevirtual

Definition at line 1953 of file typemanager.cxx.

◆ createTypeDescriptionEnumeration()

css::uno::Reference< css::reflection::XTypeDescriptionEnumeration > TypeManager::createTypeDescriptionEnumeration ( OUString const &  moduleName,
css::uno::Sequence< css::uno::TypeClass > const &  types,
css::reflection::TypeDescriptionSearchDepth  depth 
)
overrideprivatevirtual

◆ find()

css::uno::Any TypeManager::find ( OUString const &  name)

◆ findEntity()

rtl::Reference< unoidl::Entity > TypeManager::findEntity ( OUString const &  name)
private

◆ getByHierarchicalName()

css::uno::Any TypeManager::getByHierarchicalName ( OUString const &  aName)
overrideprivatevirtual

Definition at line 1923 of file typemanager.cxx.

References aName, and find().

◆ getConstant()

css::uno::Any TypeManager::getConstant ( std::u16string_view  constantGroupName,
rtl::Reference< unoidl::ConstantGroupEntity > const &  entity,
std::u16string_view  member 
)
staticprivate

Definition at line 2269 of file typemanager.cxx.

References i.

◆ getElementType()

css::uno::Type TypeManager::getElementType ( )
overrideprivatevirtual

Definition at line 1940 of file typemanager.cxx.

References cppu::UnoType< typename T >::get().

◆ getEnumMember()

css::uno::Any TypeManager::getEnumMember ( rtl::Reference< unoidl::EnumTypeEntity > const &  entity,
std::u16string_view  member 
)
staticprivate

Definition at line 2258 of file typemanager.cxx.

References i.

◆ getImplementationName()

OUString TypeManager::getImplementationName ( )
overrideprivatevirtual

Definition at line 1905 of file typemanager.cxx.

◆ getInstantiatedStruct()

css::uno::Any TypeManager::getInstantiatedStruct ( OUString const &  name,
sal_Int32  separator 
)
private

◆ getInterfaceMember()

css::uno::Any TypeManager::getInterfaceMember ( std::u16string_view  name,
std::size_t  separator 
)
private

Definition at line 2143 of file typemanager.cxx.

References find(), m, name, separator, and u.

◆ getNamed()

css::uno::Any TypeManager::getNamed ( OUString const &  name,
rtl::Reference< unoidl::Entity > const &  entity 
)
private

◆ getSequenceType()

css::uno::Any TypeManager::getSequenceType ( OUString const &  name)
private

Definition at line 2083 of file typemanager.cxx.

References name.

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > TypeManager::getSupportedServiceNames ( )
overrideprivatevirtual

Definition at line 1918 of file typemanager.cxx.

◆ has()

sal_Bool TypeManager::has ( css::uno::Any const &  aElement)
overrideprivatevirtual

Definition at line 1960 of file typemanager.cxx.

◆ hasByHierarchicalName()

sal_Bool TypeManager::hasByHierarchicalName ( OUString const &  aName)
overrideprivatevirtual

Definition at line 1934 of file typemanager.cxx.

References aName, and find().

◆ hasElements()

sal_Bool TypeManager::hasElements ( )
overrideprivatevirtual

Definition at line 1945 of file typemanager.cxx.

◆ init()

void TypeManager::init ( std::u16string_view  rdbUris)

Definition at line 2019 of file typemanager.cxx.

References cppu::decodeRdbUri(), o3tl::getToken(), and i.

◆ insert()

void TypeManager::insert ( css::uno::Any const &  aElement)
overrideprivatevirtual

Definition at line 1967 of file typemanager.cxx.

◆ readRdbDirectory()

void TypeManager::readRdbDirectory ( std::u16string_view  uri,
bool  optional 
)
private

Definition at line 2036 of file typemanager.cxx.

References cppu::nextDirectoryItem(), and SAL_INFO.

◆ readRdbFile()

void TypeManager::readRdbFile ( std::u16string_view  uri,
bool  optional 
)
private

◆ release()

virtual void SAL_CALL cppuhelper::WeakComponentImplHelper2< Ifc >::release ( )
inlineoverridevirtualnoexcept

decreasing m_refCount

Reimplemented from cppuhelper::WeakComponentImplHelper2< Ifc >.

Definition at line 82 of file cppuhelper/inc/compbase2.hxx.

◆ remove()

void TypeManager::remove ( css::uno::Any const &  aElement)
overrideprivatevirtual

Definition at line 1981 of file typemanager.cxx.

◆ resolve()

css::uno::Reference< css::reflection::XTypeDescription > TypeManager::resolve ( OUString const &  name)

Definition at line 1892 of file typemanager.cxx.

References find(), and name.

◆ supportsService()

sal_Bool TypeManager::supportsService ( OUString const &  ServiceName)
overrideprivatevirtual

Definition at line 1911 of file typemanager.cxx.

References ServiceName, and cppu::supportsService().

Member Data Documentation

◆ manager_

rtl::Reference< unoidl::Manager > cppuhelper::TypeManager::manager_
private

Definition at line 119 of file typemanager.hxx.


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