43 std::optional<std::chrono::milliseconds> timeout = std::nullopt);
53 std::string
SendCommandSync(
const std::string&
id,
const std::string& args);
60 elt::mal::future<std::string>
SendCommandAsync(
const std::string&
id,
const std::string& args);
71 return m_factory.getClient<T>(elt::mal::Uri(m_uri + name), m_qos, m_props);
81 std::function<elt::mal::future<std::string>(
const std::string&)> fun);
85 elt::mal::Mal::Properties m_props;
86 elt::mal::CiiFactory& m_factory;
87 std::vector<std::shared_ptr<elt::mal::rr::qos::QoS>> m_qos;
90 std::map<std::string, std::function<elt::mal::future<std::string>(
const std::string&)>> m_cmds;
92 std::unique_ptr<introspectionif::IntrospectionAsync> insif;
93 std::unique_ptr<stdif::StdCmdsAsync>
stdif;
94 std::unique_ptr<rtctkif::RecoverCmdsAsync> rcif;
95 std::unique_ptr<rtctkif::AlertCmdsAsync> acif;
96 std::unique_ptr<rtctkif::UpdateCmdsAsync> ucif;
97 std::unique_ptr<rtctkif::FuncCmdsAsync> fcif;
98 std::unique_ptr<rtctkif::MeasCmdsAsync> mcif;
99 std::unique_ptr<rtctkif::OptCmdsAsync> ocif;
100 std::unique_ptr<rtctkif::LoopCmdsAsync> lcif;
101 std::unique_ptr<rtctkif::SuspCmdsAsync> lsif;
102 std::unique_ptr<rtctkif::ModeCmdsAsync> smif;
103 std::unique_ptr<rtctkif::WriteBackCmdsAsync> wbif;
CommandRequestor(const elt::mal::Uri &uri, std::optional< std::chrono::milliseconds > timeout=std::nullopt)
Create a new CommandRequestor object.
Definition commandRequestor.cpp:24
elt::mal::future< std::string > SendCommandAsync(const std::string &id, const std::string &args)
Send asynchronous command to a component.
Definition commandRequestor.cpp:112