Etterna 0.75.1
Loading...
Searching...
No Matches
Locator.hpp
1#ifndef CORE_SERVICES_SERVICELOCATOR_HPP
2#define CORE_SERVICES_SERVICELOCATOR_HPP
3
4#include "Core/Services/ILogger.hpp"
5
6#include <memory>
7
13class Locator {
14public:
15 // Getters
16 static Core::ILogger* getLogger();
17
18 // Providers
19 static void provide(std::unique_ptr<Core::ILogger> log);
20
21private:
22 static std::unique_ptr<Core::ILogger> logger;
23};
24#endif //CORE_SERVICES_SERVICELOCATOR_HPP
Definition ILogger.hpp:19
Definition Locator.hpp:13