diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-11-12 22:30:20 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-11-12 22:30:20 +0000 |
commit | e68759a4101567a27e306eae0a907baa759ae80c (patch) | |
tree | c90733351cb7a8a02f91725118593c1c4f19c563 /yage/core/logsink.h | |
parent | 5fb7c972d44a3ce0a067101885d2e0c1966e7c89 (diff) | |
download | YAGE-e68759a4101567a27e306eae0a907baa759ae80c.tar.gz YAGE-e68759a4101567a27e306eae0a907baa759ae80c.zip |
Designing simple preview game
Diffstat (limited to 'yage/core/logsink.h')
-rw-r--r-- | yage/core/logsink.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 <typename T> 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<Concept> wrapper_; }; +LogSink makeConsoleSink(); + /* ----------------------------------------------------------------------------- * Template Implementation * ----------------------------------------------------------------------------- |