12#ifndef RTCTK_COMPONENTFRAMEWORK_REPOSITORYFACTORY_HPP
13#define RTCTK_COMPONENTFRAMEWORK_REPOSITORYFACTORY_HPP
17#include <mal/utility/Uri.hpp>
49template <
class BaseIf,
class Adapter>
61 bool CanHandle(
const elt::mal::Uri& uri)
const override;
71 std::unique_ptr<BaseIf>
CreateInstance(
const elt::mal::Uri& uri)
const override;
A simple registry of various factory objects.
Definition factoryRegistry.hpp:46
RepositoryFactory()=default
bool CanHandle(const elt::mal::Uri &uri) const override
Check if this repository factory is compatible with the given URI.
Definition repositoryFactory.ipp:22
~RepositoryFactory() override=default
std::unique_ptr< BaseIf > CreateInstance(const elt::mal::Uri &uri) const override
Create a new adapter instance to access the repository specified by the given URI.
Definition repositoryFactory.ipp:36
Header file for FactoryRegistry and related helper classes.
Definition commandReplier.cpp:21
Implementation file for RepositoryFactory.