rad 6.2.0
Loading...
Searching...
No Matches
stdCmdsImpl.hpp
Go to the documentation of this file.
1
9#ifndef RAD_STD_CMDS_IMPL_HPP
10#define RAD_STD_CMDS_IMPL_HPP
11
12#include <rad/eventsStd.rad.hpp>
13#include <rad/smAdapter.hpp>
14
15#ifdef __has_include
16# if __has_include(<StdifVersion.hpp>)
17# include <StdifVersion.hpp>
18# endif
19#endif
20
21namespace rad {
22
26class StdCmdsImpl : public stdif::AsyncStdCmds {
27public:
33 explicit StdCmdsImpl(rad::SMAdapter& sm);
34
38 virtual ~StdCmdsImpl();
39
44 virtual elt::mal::future<std::string> Exit() override;
45
50 virtual elt::mal::future<std::string> Init() override;
51
56 virtual elt::mal::future<std::string> Stop() override;
57
62 virtual elt::mal::future<std::string> Reset() override;
63
68 virtual elt::mal::future<std::string> GetState() override;
69
74 virtual elt::mal::future<std::string> GetStatus() override;
75
80 virtual elt::mal::future<std::string> GetVersion() override;
81
86 virtual elt::mal::future<std::string> Enable() override;
87
92 virtual elt::mal::future<std::string> Disable() override;
93
100 virtual elt::mal::future<std::string> SetLogLevel(
101 const std::shared_ptr<stdif::LogInfo>& info) override;
102
103#ifdef STDIF_VERSION
104# if STDIF_VERSION >= STDIF_MAKE_VERSION(4, 0, 0)
111 elt::mal::future<std::vector<std::shared_ptr<stdif::LogInfo>>> GetLogLevel(
112 const std::string &logger) override;
113# endif
114#endif
115
116private:
117 rad::SMAdapter& m_sm; // Used to inject events into SM.
118};
119
120} // namespace rad
121
122#endif // RAD_STD_CMDS_IMPL_HPP
Definition smAdapter.hpp:60
Definition stdCmdsImpl.hpp:26
virtual elt::mal::future< std::string > GetVersion() override
Definition stdCmdsImpl.cpp:66
StdCmdsImpl(rad::SMAdapter &sm)
Definition stdCmdsImpl.cpp:16
virtual elt::mal::future< std::string > Reset() override
Definition stdCmdsImpl.cpp:45
virtual elt::mal::future< std::string > Enable() override
Definition stdCmdsImpl.cpp:73
virtual elt::mal::future< std::string > Init() override
Definition stdCmdsImpl.cpp:31
virtual elt::mal::future< std::string > SetLogLevel(const std::shared_ptr< stdif::LogInfo > &info) override
Definition stdCmdsImpl.cpp:87
virtual elt::mal::future< std::string > GetState() override
Definition stdCmdsImpl.cpp:52
virtual ~StdCmdsImpl()
Definition stdCmdsImpl.cpp:20
virtual elt::mal::future< std::string > Stop() override
Definition stdCmdsImpl.cpp:38
virtual elt::mal::future< std::string > GetStatus() override
Definition stdCmdsImpl.cpp:59
virtual elt::mal::future< std::string > Disable() override
Definition stdCmdsImpl.cpp:80
virtual elt::mal::future< std::string > Exit() override
Definition stdCmdsImpl.cpp:24
Definition actionsApp.cpp:23
SMAdapter class header file.