summaryrefslogtreecommitdiffstats
path: root/common/typeindex.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-12-22 18:22:39 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-12-22 18:22:39 +0100
commitb2ad8f785e801a35cadf254d827f56d648be510c (patch)
tree4eeb1e3eefb02c40dac40469c0fae5ad91feb3e3 /common/typeindex.h
parent1fe8664ec74165fc3f250098609ea0e049e3adc8 (diff)
downloadsink-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/typeindex.h')
-rw-r--r--common/typeindex.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/typeindex.h b/common/typeindex.h
index b1aec38..626959e 100644
--- a/common/typeindex.h
+++ b/common/typeindex.h
@@ -34,7 +34,7 @@ namespace Storage {
34class TypeIndex 34class TypeIndex
35{ 35{
36public: 36public:
37 TypeIndex(const QByteArray &type); 37 TypeIndex(const QByteArray &type, const Sink::Log::Context &);
38 38
39 template <typename T> 39 template <typename T>
40 void addProperty(const QByteArray &property); 40 void addProperty(const QByteArray &property);
@@ -93,8 +93,8 @@ public:
93private: 93private:
94 friend class Sink::Storage::EntityStore; 94 friend class Sink::Storage::EntityStore;
95 QByteArray indexName(const QByteArray &property, const QByteArray &sortProperty = QByteArray()) const; 95 QByteArray indexName(const QByteArray &property, const QByteArray &sortProperty = QByteArray()) const;
96 Sink::Log::Context mLogCtx;
96 QByteArray mType; 97 QByteArray mType;
97 SINK_DEBUG_COMPONENT(mType)
98 QByteArrayList mProperties; 98 QByteArrayList mProperties;
99 QMap<QByteArray, QByteArray> mSortedProperties; 99 QMap<QByteArray, QByteArray> mSortedProperties;
100 //<Property, ResultProperty> 100 //<Property, ResultProperty>