RTC Toolkit 5.1.0
Loading...
Searching...
No Matches
commandRequestor.hpp
Go to the documentation of this file.
1
13#ifndef RTCTK_METADATACOLLECTOR_COMMANDREQUESTOR_HPP
14#define RTCTK_METADATACOLLECTOR_COMMANDREQUESTOR_HPP
15
16#include <Metadaqif.hpp>
17#include <mal/Cii.hpp>
18
19#include <chrono>
20#include <optional>
21
23
28public:
29 explicit CommandRequestor(const elt::mal::Uri& uri,
30 std::optional<std::chrono::milliseconds> timeout = std::nullopt);
31
32 virtual ~CommandRequestor() = default;
33
34 metadaqif::MetaDaq& GetInterface();
35
36private:
37 // cppcheck-suppress-begin unusedStructMember
38
39 std::string m_uri;
40 elt::mal::Mal::Properties m_props;
41 elt::mal::CiiFactory& m_factory;
42 std::vector<std::shared_ptr<elt::mal::rr::qos::QoS>> m_qos;
43
44 // cppcheck-suppress-end unusedStructMember
45
46 std::unique_ptr<metadaqif::MetaDaqSync> metadaq;
47};
48
49} // namespace rtctk::metadataCollector
50
51#endif // RTCTK_METADATACOLLECTOR_COMMANDREQUESTOR_HPP
Extendable class that allows to send commands to components using MAL.
Definition commandRequestor.hpp:34
metadaqif::MetaDaq & GetInterface()
Definition commandRequestor.cpp:35
CommandRequestor(const elt::mal::Uri &uri, std::optional< std::chrono::milliseconds > timeout=std::nullopt)
elt::mal::future< std::string > InjectReqRepEvent(StateMachineEngine &engine)
Definition malEventInjector.hpp:23
Definition acquisitor.cpp:15