SDK: Allow passing path to DDSSession::SendCommand

This commit is contained in:
Alexey Rybalchenko 2020-01-22 16:37:33 +01:00 committed by Dennis Klein
parent 9544de0647
commit f42945b3a3
2 changed files with 2 additions and 2 deletions

View File

@ -355,7 +355,7 @@ void DDSSession::UnsubscribeFromCommands()
fImpl->fDDSCustomCmd.unsubscribe(); 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) void DDSSession::SendCommand(const std::string& cmd, DDSChannel::Id recipient)
{ {

View File

@ -101,7 +101,7 @@ class DDSSession
void StartDDSService(); void StartDDSService();
void SubscribeToCommands(std::function<void(const std::string& msg, const std::string& condition, uint64_t senderId)>); void SubscribeToCommands(std::function<void(const std::string& msg, const std::string& condition, uint64_t senderId)>);
void UnsubscribeFromCommands(); void UnsubscribeFromCommands();
void SendCommand(const std::string&); void SendCommand(const std::string&, const std::string& = "");
void SendCommand(const std::string&, DDSChannel::Id); void SendCommand(const std::string&, DDSChannel::Id);
auto UpdateChannelToTaskAssociation(DDSChannel::Id, DDSTask::Id) -> void; auto UpdateChannelToTaskAssociation(DDSChannel::Id, DDSTask::Id) -> void;
auto GetTaskId(DDSChannel::Id) const -> DDSTask::Id; auto GetTaskId(DDSChannel::Id) const -> DDSTask::Id;