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 8d41705..afd08b6 100644 --- a/common/facadefactory.h +++ b/common/facadefactory.h | |||
@@ -92,6 +92,12 @@ public: | |||
92 | return std::static_pointer_cast<StoreFacade<DomainType>>(ptr); | 92 | return std::static_pointer_cast<StoreFacade<DomainType>>(ptr); |
93 | } | 93 | } |
94 | 94 | ||
95 | template <class DomainType> | ||
96 | std::shared_ptr<StoreFacade<DomainType>> getFacade() | ||
97 | { | ||
98 | return getFacade<DomainType>(QByteArray(), QByteArray()); | ||
99 | } | ||
100 | |||
95 | private: | 101 | private: |
96 | FacadeFactory(); | 102 | FacadeFactory(); |
97 | std::shared_ptr<void> getFacade(const QByteArray &resource, const QByteArray &instanceIdentifier, const QByteArray &typeName); | 103 | std::shared_ptr<void> getFacade(const QByteArray &resource, const QByteArray &instanceIdentifier, const QByteArray &typeName); |