diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-12-22 18:22:39 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-12-22 18:22:39 +0100 |
commit | b2ad8f785e801a35cadf254d827f56d648be510c (patch) | |
tree | 4eeb1e3eefb02c40dac40469c0fae5ad91feb3e3 /common/storage/entitystore.h | |
parent | 1fe8664ec74165fc3f250098609ea0e049e3adc8 (diff) | |
download | sink-b2ad8f785e801a35cadf254d827f56d648be510c.tar.gz sink-b2ad8f785e801a35cadf254d827f56d648be510c.zip |
Introduced Log::Context
To have hierarchical debug output we have to pass around something at
run-time, there is no reasonable alternative. Log::Context provides the
identifier to do just that and largely replaces the debug component
idea.
Diffstat (limited to 'common/storage/entitystore.h')
-rw-r--r-- | common/storage/entitystore.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/storage/entitystore.h b/common/storage/entitystore.h index c626ebc..b8e1065 100644 --- a/common/storage/entitystore.h +++ b/common/storage/entitystore.h | |||
@@ -36,7 +36,7 @@ class SINK_EXPORT EntityStore | |||
36 | { | 36 | { |
37 | public: | 37 | public: |
38 | typedef QSharedPointer<EntityStore> Ptr; | 38 | typedef QSharedPointer<EntityStore> Ptr; |
39 | EntityStore(const ResourceContext &resourceContext); | 39 | EntityStore(const ResourceContext &resourceContext, const Sink::Log::Context &); |
40 | 40 | ||
41 | typedef std::function<void(const ApplicationDomain::ApplicationDomainType &, ApplicationDomain::ApplicationDomainType &)> PreprocessModification; | 41 | typedef std::function<void(const ApplicationDomain::ApplicationDomainType &, ApplicationDomain::ApplicationDomainType &)> PreprocessModification; |
42 | typedef std::function<void(ApplicationDomain::ApplicationDomainType &)> PreprocessCreation; | 42 | typedef std::function<void(ApplicationDomain::ApplicationDomainType &)> PreprocessCreation; |
@@ -109,6 +109,8 @@ public: | |||
109 | 109 | ||
110 | qint64 maxRevision(); | 110 | qint64 maxRevision(); |
111 | 111 | ||
112 | Sink::Log::Context logContext() const; | ||
113 | |||
112 | private: | 114 | private: |
113 | void copyBlobs(ApplicationDomain::ApplicationDomainType &entity, qint64 newRevision); | 115 | void copyBlobs(ApplicationDomain::ApplicationDomainType &entity, qint64 newRevision); |
114 | class Private; | 116 | class Private; |