Back to Site
Loading...
Searching...
No Matches
librats::ServiceRegistry Class Reference

#include <service_registry.h>

Public Member Functions

template<class I >
void provide (I *service)
 Register service as the provider of interface I (call during attach()).
 
template<class I >
I * get () const
 Resolve the provider of interface I, or nullptr if none is registered.
 

Detailed Description

Definition at line 39 of file service_registry.h.

Member Function Documentation

◆ get()

template<class I >
I * librats::ServiceRegistry::get ( ) const
inline

Resolve the provider of interface I, or nullptr if none is registered.

Definition at line 49 of file service_registry.h.

◆ provide()

template<class I >
void librats::ServiceRegistry::provide ( I *  service)
inline

Register service as the provider of interface I (call during attach()).

Definition at line 43 of file service_registry.h.


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