diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-21 14:12:14 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-21 14:12:14 +0100 |
commit | daf96f7efec0538e161eab8e906a291015842e1e (patch) | |
tree | 577af79efecd96e0d2187d495628d9950f2a9d45 /common/domainadaptor.h | |
parent | 7a98c9853726ed09abd35a447f9854c5459a855d (diff) | |
download | sink-daf96f7efec0538e161eab8e906a291015842e1e.tar.gz sink-daf96f7efec0538e161eab8e906a291015842e1e.zip |
Default domain adaptor
Diffstat (limited to 'common/domainadaptor.h')
-rw-r--r-- | common/domainadaptor.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/common/domainadaptor.h b/common/domainadaptor.h index 54aa53e..af5d5fc 100644 --- a/common/domainadaptor.h +++ b/common/domainadaptor.h | |||
@@ -242,3 +242,15 @@ protected: | |||
242 | QSharedPointer<WritePropertyMapper<ResourceBuilder>> mResourceWriteMapper; | 242 | QSharedPointer<WritePropertyMapper<ResourceBuilder>> mResourceWriteMapper; |
243 | QSharedPointer<IndexPropertyMapper> mIndexMapper; | 243 | QSharedPointer<IndexPropertyMapper> mIndexMapper; |
244 | }; | 244 | }; |
245 | |||
246 | /** | ||
247 | * A default adaptorfactory implemenation that simply instantiates a generic resource | ||
248 | */ | ||
249 | template<typename DomainType> | ||
250 | class DefaultAdaptorFactory : public DomainTypeAdaptorFactory<DomainType> | ||
251 | { | ||
252 | public: | ||
253 | DefaultAdaptorFactory() : DomainTypeAdaptorFactory<DomainType>() {} | ||
254 | virtual ~DefaultAdaptorFactory(){} | ||
255 | }; | ||
256 | |||