RTC Toolkit 6.0.0
Loading...
Searching...
No Matches
deploymentDaemonLogInfoImpl.hpp
Go to the documentation of this file.
1
11
12#ifndef RTCTK_REUSABLECOMPONENT_DEPLOYMENT_DAEMON_LOG_INFO_IMPL_HPP
13#define RTCTK_REUSABLECOMPONENT_DEPLOYMENT_DAEMON_LOG_INFO_IMPL_HPP
14
15#include <Rtctkif.hpp>
16
17#include <memory>
18#include <string>
19
21
27
28class LogInfoImpl : public rtctkif::LogInfo {
29public:
30 LogInfoImpl() = default;
31
32 explicit LogInfoImpl(const std::string& level, const std::string& logger = "")
33 : m_logger(logger), m_level(level) {
34 }
35
36 std::string getLogger() const override {
37 return m_logger;
38 }
39
40 void setLogger(const std::string& logger) override {
41 m_logger = logger;
42 }
43
44 std::string getLevel() const override {
45 return m_level;
46 }
47
48 void setLevel(const std::string& level) override {
49 m_level = level;
50 }
51
52 bool hasKey() const override {
53 return false;
54 }
55
56 bool keyEquals(const rtctkif::LogInfo& other) const override {
57 return false;
58 }
59
60 std::unique_ptr<rtctkif::LogInfo> clone() const override {
61 return std::make_unique<LogInfoImpl>(m_logger, m_level);
62 }
63
64 std::unique_ptr<rtctkif::LogInfo> cloneKey() const override {
65 return std::make_unique<LogInfoImpl>(m_logger, m_level);
66 }
67
68private:
69 std::string m_logger;
70 std::string m_level;
71};
72
73} // namespace rtctk::deploymentDaemon
74
75#endif // RTCTK_REUSABLECOMPONENT_DEPLOYMENT_DAEMON_LOG_INFO_IMPL_HPP
std::unique_ptr< rtctkif::LogInfo > cloneKey() const override
Definition deploymentDaemonLogInfoImpl.hpp:64
std::string getLogger() const override
Definition deploymentDaemonLogInfoImpl.hpp:36
std::unique_ptr< rtctkif::LogInfo > clone() const override
Definition deploymentDaemonLogInfoImpl.hpp:60
void setLogger(const std::string &logger) override
Definition deploymentDaemonLogInfoImpl.hpp:40
LogInfoImpl(const std::string &level, const std::string &logger="")
Definition deploymentDaemonLogInfoImpl.hpp:32
void setLevel(const std::string &level) override
Definition deploymentDaemonLogInfoImpl.hpp:48
std::string getLevel() const override
Definition deploymentDaemonLogInfoImpl.hpp:44
bool keyEquals(const rtctkif::LogInfo &other) const override
Definition deploymentDaemonLogInfoImpl.hpp:56
bool hasKey() const override
Definition deploymentDaemonLogInfoImpl.hpp:52
Definition deploymentDaemonBusinessLogic.cpp:34