From e68759a4101567a27e306eae0a907baa759ae80c Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sun, 12 Nov 2017 22:30:20 +0000 Subject: Designing simple preview game --- yage/core/logsink.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'yage/core/logsink.h') diff --git a/yage/core/logsink.h b/yage/core/logsink.h index e898d15f..f18a6d37 100644 --- a/yage/core/logsink.h +++ b/yage/core/logsink.h @@ -23,6 +23,13 @@ public: template LogSink(T impl); + LogSink(const LogSink &sink); + LogSink(LogSink &&sink); + + LogSink &operator=(const LogSink &sink); + LogSink &operator=(LogSink &&sink); + bool operator==(const LogSink &sink); + void write(const LogMessage::Meta &meta, const std::string &msg); private: @@ -47,6 +54,8 @@ private: std::unique_ptr wrapper_; }; +LogSink makeConsoleSink(); + /* ----------------------------------------------------------------------------- * Template Implementation * ----------------------------------------------------------------------------- -- cgit