42 std::optional<std::chrono::milliseconds> timeout = std::nullopt);
52 std::string
SendCommandSync(
const std::string&
id,
const std::string& args);
59 elt::mal::future<std::string>
SendCommandAsync(
const std::string&
id,
const std::string& args);
70 return m_factory.getClient<T>(elt::mal::Uri(m_uri + name), m_qos, m_props);
80 std::function<elt::mal::future<std::string>(
const std::string&)> fun);
84 elt::mal::Mal::Properties m_props;
85 elt::mal::CiiFactory& m_factory;
86 std::vector<std::shared_ptr<elt::mal::rr::qos::QoS>> m_qos;
89 std::map<std::string, std::function<elt::mal::future<std::string>(
const std::string&)>> m_cmds;
91 std::unique_ptr<introspectionif::IntrospectionAsync> insif;
92 std::unique_ptr<stdif::StdCmdsAsync>
stdif;
93 std::unique_ptr<rtctkif::RecoverCmdsAsync> rcif;
94 std::unique_ptr<rtctkif::AlertCmdsAsync> acif;
95 std::unique_ptr<rtctkif::UpdateCmdsAsync> ucif;
96 std::unique_ptr<rtctkif::FuncCmdsAsync> fcif;
97 std::unique_ptr<rtctkif::MeasCmdsAsync> mcif;
98 std::unique_ptr<rtctkif::OptCmdsAsync> ocif;
99 std::unique_ptr<rtctkif::LoopCmdsAsync> lcif;
100 std::unique_ptr<rtctkif::SuspCmdsAsync> lsif;
101 std::unique_ptr<rtctkif::ModeCmdsAsync> smif;
102 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:23
elt::mal::future< std::string > SendCommandAsync(const std::string &id, const std::string &args)
Send asynchronous command to a component.
Definition commandRequestor.cpp:111