Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
RegisterableService< ServiceType > Class Template Reference

The sole purpose of this templated class is to provide access to a string that is specific to a type. More...

#include <ServiceLocator.hxx>

Static Private Member Functions

static string get_type_name (const char *alias)
 Get a name that has the derived type as part of the name.
 

Friends

template<typename LocatorType >
class ServiceLocator
 

Detailed Description

template<typename ServiceType>
class RegisterableService< ServiceType >

The sole purpose of this templated class is to provide access to a string that is specific to a type.

We use this as a key in the dictionary that maps "type" names into pointers.

Definition at line 52 of file ServiceLocator.hxx.

Member Function Documentation

◆ get_type_name()

template<typename ServiceType >
static string RegisterableService< ServiceType >::get_type_name ( const char *  alias)
inlinestaticprivate

Get a name that has the derived type as part of the name.

Definition at line 58 of file ServiceLocator.hxx.

Friends And Related Symbol Documentation

◆ ServiceLocator

template<typename ServiceType >
template<typename LocatorType >
friend class ServiceLocator
friend

Definition at line 70 of file ServiceLocator.hxx.


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