summaryrefslogtreecommitdiffstats
path: root/common/domain/event.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-10-19 15:28:42 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-10-21 09:18:49 +0200
commitba7c8b890c45d735216888204ec88882ef58c918 (patch)
treecb00c9b51e5353ba3726216679c81c0e2fe9ac35 /common/domain/event.cpp
parentda1c86b80f230c3a2023f97c0048020a12e38de4 (diff)
downloadsink-ba7c8b890c45d735216888204ec88882ef58c918.tar.gz
sink-ba7c8b890c45d735216888204ec88882ef58c918.zip
Ported the pipeline to the entitystore
Diffstat (limited to 'common/domain/event.cpp')
-rw-r--r--common/domain/event.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/common/domain/event.cpp b/common/domain/event.cpp
index d50652d..41ec625 100644
--- a/common/domain/event.cpp
+++ b/common/domain/event.cpp
@@ -47,27 +47,6 @@ void TypeImplementation<Event>::configureIndex(TypeIndex &index)
47 index.addProperty<QByteArray>(Event::Uid::name); 47 index.addProperty<QByteArray>(Event::Uid::name);
48} 48}
49 49
50static TypeIndex &getIndex()
51{
52 QMutexLocker locker(&sMutex);
53 static TypeIndex *index = 0;
54 if (!index) {
55 index = new TypeIndex("event");
56 TypeImplementation<Event>::configureIndex(*index);
57 }
58 return *index;
59}
60
61void TypeImplementation<Event>::index(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Sink::Storage::DataStore::Transaction &transaction)
62{
63 return getIndex().add(identifier, bufferAdaptor, transaction);
64}
65
66void TypeImplementation<Event>::removeIndex(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Sink::Storage::DataStore::Transaction &transaction)
67{
68 return getIndex().remove(identifier, bufferAdaptor, transaction);
69}
70
71QSharedPointer<ReadPropertyMapper<TypeImplementation<Event>::Buffer> > TypeImplementation<Event>::initializeReadPropertyMapper() 50QSharedPointer<ReadPropertyMapper<TypeImplementation<Event>::Buffer> > TypeImplementation<Event>::initializeReadPropertyMapper()
72{ 51{
73 auto propertyMapper = QSharedPointer<ReadPropertyMapper<Buffer> >::create(); 52 auto propertyMapper = QSharedPointer<ReadPropertyMapper<Buffer> >::create();