add: Widget registry

This commit is contained in:
Simon Hardt
2022-03-06 19:05:37 +01:00
parent 243bf41e90
commit 1772a3baff
8 changed files with 155 additions and 5 deletions

View File

@@ -0,0 +1,19 @@
#include "ServiceLocator.hpp"
namespace frame
{
IService::IService(std::string_view name)
: name(name)
{
}
std::string_view IService::getName() const
{
return name;
}
std::unordered_map<std::type_index, std::shared_ptr<IService>>
Service::Services = {};
} // namespace frame