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