12#ifndef RTCTK_COMPONENTFRAMEWORK_COMMANDREPLIER_HPP
13#define RTCTK_COMPONENTFRAMEWORK_COMMANDREPLIER_HPP
16#include <mal/rr/RrEntity.hpp>
17#include <mal/rr/Server.hpp>
18#include <mal/utility/Uri.hpp>
36 RegisterService(
const std::string& name, std::shared_ptr<elt::mal::rr::RrEntity>& service) {
37 m_rr_server->registerService<T,
false>(name, service);
40 std::vector<std::pair<std::string, std::string>>
42 return m_rr_server->getServiceDescriptions(service_name);
45 std::shared_ptr<elt::mal::Mal>
GetMal() {
50 std::shared_ptr<elt::mal::Mal> m_mal;
51 std::unique_ptr<elt::mal::rr::Server> m_rr_server;
52 std::thread m_rr_thread;
void RegisterService(const std::string &name, std::shared_ptr< elt::mal::rr::RrEntity > &service)
Definition commandReplier.hpp:36
std::vector< std::pair< std::string, std::string > > GetServiceDescriptions(const std::string &service_name=std::string())
Definition commandReplier.hpp:41
CommandReplier(const ::elt::mal::Uri &uri)
Definition commandReplier.cpp:22
std::shared_ptr< elt::mal::Mal > GetMal()
Definition commandReplier.hpp:45
virtual ~CommandReplier()
Definition commandReplier.cpp:36
Definition commandReplier.cpp:21