From 59fb8ccf9bc72556acd4e31413ed651020463751 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 4 Jul 2015 17:05:06 +0100 Subject: Add getPrefix required by Ice 3.6 --- p2pvr/daemonbase/p2LoggerWrapper.cpp | 6 ++++++ p2pvr/daemonbase/p2LoggerWrapper.h | 11 ++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/p2pvr/daemonbase/p2LoggerWrapper.cpp b/p2pvr/daemonbase/p2LoggerWrapper.cpp index 60ec191..419caa2 100644 --- a/p2pvr/daemonbase/p2LoggerWrapper.cpp +++ b/p2pvr/daemonbase/p2LoggerWrapper.cpp @@ -37,3 +37,9 @@ P2LoggerWrapper::cloneWithPrefix(const std::string & p) return new P2LoggerWrapper(prefix + "-" + p); } +std::string +P2LoggerWrapper::getPrefix() +{ + return prefix; +} + diff --git a/p2pvr/daemonbase/p2LoggerWrapper.h b/p2pvr/daemonbase/p2LoggerWrapper.h index 8febda5..e8de1e8 100644 --- a/p2pvr/daemonbase/p2LoggerWrapper.h +++ b/p2pvr/daemonbase/p2LoggerWrapper.h @@ -7,12 +7,13 @@ class P2LoggerWrapper : public Ice::Logger { public: P2LoggerWrapper(const std::string & prefix = std::string()); - void print(const std::string & message); - void trace(const std::string & cat, const std::string & message); - void warning(const std::string & message); - void error(const std::string & message); + void print(const std::string & message) override; + void trace(const std::string & cat, const std::string & message) override; + void warning(const std::string & message) override; + void error(const std::string & message) override; - Ice::LoggerPtr cloneWithPrefix(const std::string & prefix); + Ice::LoggerPtr cloneWithPrefix(const std::string & prefix) override; + std::string getPrefix(); private: const std::string prefix; -- cgit v1.2.3