![]() |
OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
|
Dependency Manager. More...
#include <InternalServices.hpp>
Static Public Member Functions | |
| static Service & | call () |
| Get the service provider implementing the service. | |
| template<class Provider , typename... _Args> | |
| static void | inject (_Args &&...__args) |
| Inject a service provider. | |
| static void | inject (Service *provider) |
| Inject a service provider. | |
| static void | reset () |
| Remove the injected service provider (for testing) | |
Dependency Manager.
| Service | Service interface |
Definition at line 32 of file InternalServices.hpp.
|
inlinestatic |
Get the service provider implementing the service.
Definition at line 39 of file InternalServices.hpp.
|
inlinestatic |
Inject a service provider.
| Provider | Service provider class |
| _Args | Constructor parameter types |
| __args | Constructor parameters |
Definition at line 63 of file InternalServices.hpp.
|
inlinestatic |
Inject a service provider.
| provider | Service provider instance. Must live forever. |
Definition at line 77 of file InternalServices.hpp.
|
inlinestatic |
Remove the injected service provider (for testing)
Definition at line 97 of file InternalServices.hpp.