diff options
Diffstat (limited to 'common/facadefactory.h')
-rw-r--r-- | common/facadefactory.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/facadefactory.h b/common/facadefactory.h index 03e0784..7313970 100644 --- a/common/facadefactory.h +++ b/common/facadefactory.h | |||
@@ -55,6 +55,12 @@ public: | |||
55 | registerFacade(resource, [](const QByteArray &instanceIdentifier) { return std::make_shared<Facade>(instanceIdentifier); }, ApplicationDomain::getTypeName<DomainType>()); | 55 | registerFacade(resource, [](const QByteArray &instanceIdentifier) { return std::make_shared<Facade>(instanceIdentifier); }, ApplicationDomain::getTypeName<DomainType>()); |
56 | } | 56 | } |
57 | 57 | ||
58 | template <class DomainType, class Facade> | ||
59 | void registerFacade() | ||
60 | { | ||
61 | registerFacade(QByteArray(), [](const QByteArray &) { return std::make_shared<Facade>(); }, ApplicationDomain::getTypeName<DomainType>()); | ||
62 | } | ||
63 | |||
58 | /* | 64 | /* |
59 | * Allows the registrar to register a specific instance. | 65 | * Allows the registrar to register a specific instance. |
60 | * | 66 | * |