From f42945b3a312b830efdfe6f22e4169a874d09dd0 Mon Sep 17 00:00:00 2001 From: Alexey Rybalchenko Date: Wed, 22 Jan 2020 16:37:33 +0100 Subject: [PATCH] SDK: Allow passing path to DDSSession::SendCommand --- fairmq/sdk/DDSSession.cxx | 2 +- fairmq/sdk/DDSSession.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fairmq/sdk/DDSSession.cxx b/fairmq/sdk/DDSSession.cxx index 3af81d20..c615e4db 100644 --- a/fairmq/sdk/DDSSession.cxx +++ b/fairmq/sdk/DDSSession.cxx @@ -355,7 +355,7 @@ void DDSSession::UnsubscribeFromCommands() fImpl->fDDSCustomCmd.unsubscribe(); } -void DDSSession::SendCommand(const std::string& cmd) { fImpl->fDDSCustomCmd.send(cmd, ""); } +void DDSSession::SendCommand(const std::string& cmd, const std::string& path /* = "" */) { fImpl->fDDSCustomCmd.send(cmd, path); } void DDSSession::SendCommand(const std::string& cmd, DDSChannel::Id recipient) { diff --git a/fairmq/sdk/DDSSession.h b/fairmq/sdk/DDSSession.h index 45d088f8..a32abfdb 100644 --- a/fairmq/sdk/DDSSession.h +++ b/fairmq/sdk/DDSSession.h @@ -101,7 +101,7 @@ class DDSSession void StartDDSService(); void SubscribeToCommands(std::function); void UnsubscribeFromCommands(); - void SendCommand(const std::string&); + void SendCommand(const std::string&, const std::string& = ""); void SendCommand(const std::string&, DDSChannel::Id); auto UpdateChannelToTaskAssociation(DDSChannel::Id, DDSTask::Id) -> void; auto GetTaskId(DDSChannel::Id) const -> DDSTask::Id;