Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::Internal::ServiceInterfaceRegisterer< InterfaceType > Class Template Reference

Class allowing the registration of a factory for a service implementing the InterfaceType interface. More...

#include <arcane/core/ServiceFactory.h>

Collaboration diagram for Arcane::Internal::ServiceInterfaceRegisterer< InterfaceType >:

Public Types

typedef InterfaceType Interface

Public Member Functions

 ServiceInterfaceRegisterer (const char *name)
 ServiceInterfaceRegisterer (const char *namespace_name, const char *name)
template<typename ServiceType>
void registerToServiceInfo (ServiceInfo *si) const
 Registers in si a factory to create an instance of the service ServiceType.

Private Attributes

const char * m_name
const char * m_namespace_name

Detailed Description

template<typename InterfaceType>
class Arcane::Internal::ServiceInterfaceRegisterer< InterfaceType >

Class allowing the registration of a factory for a service implementing the InterfaceType interface.

Definition at line 436 of file ServiceFactory.h.

Member Typedef Documentation

◆ Interface

template<typename InterfaceType>
typedef InterfaceType Arcane::Internal::ServiceInterfaceRegisterer< InterfaceType >::Interface

Definition at line 440 of file ServiceFactory.h.

Constructor & Destructor Documentation

◆ ServiceInterfaceRegisterer() [1/2]

template<typename InterfaceType>
Arcane::Internal::ServiceInterfaceRegisterer< InterfaceType >::ServiceInterfaceRegisterer ( const char * name)
inlineexplicit

Definition at line 442 of file ServiceFactory.h.

◆ ServiceInterfaceRegisterer() [2/2]

template<typename InterfaceType>
Arcane::Internal::ServiceInterfaceRegisterer< InterfaceType >::ServiceInterfaceRegisterer ( const char * namespace_name,
const char * name )
inline

Definition at line 448 of file ServiceFactory.h.

Member Function Documentation

◆ registerToServiceInfo()

template<typename InterfaceType>
template<typename ServiceType>
void Arcane::Internal::ServiceInterfaceRegisterer< InterfaceType >::registerToServiceInfo ( ServiceInfo * si) const
inline

Registers in si a factory to create an instance of the service ServiceType.

Definition at line 458 of file ServiceFactory.h.

References Arcane::Internal::ServiceInfo::addImplementedInterface().

Here is the call graph for this function:

Member Data Documentation

◆ m_name

template<typename InterfaceType>
const char* Arcane::Internal::ServiceInterfaceRegisterer< InterfaceType >::m_name
private

Definition at line 470 of file ServiceFactory.h.

◆ m_namespace_name

template<typename InterfaceType>
const char* Arcane::Internal::ServiceInterfaceRegisterer< InterfaceType >::m_namespace_name
private

Definition at line 471 of file ServiceFactory.h.


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