mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 00:31:14 +00:00
feat: Add Device::GetNumSubChannels(channel)
This commit is contained in:
parent
0eaea3c66f
commit
a3bb5fb4b0
|
@ -324,6 +324,14 @@ class Device
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
size_t GetNumSubChannels(const std::string& channelName)
|
||||||
|
try {
|
||||||
|
return fChannels.at(channelName).size();
|
||||||
|
} catch (const std::out_of_range& oor) {
|
||||||
|
LOG(error) << "GetNumSubChannels(): '" << channelName << "' does not exist.";
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
|
||||||
/// @brief Get numbers of connected peers for the given channel
|
/// @brief Get numbers of connected peers for the given channel
|
||||||
/// @param name channel name
|
/// @param name channel name
|
||||||
/// @param index sub-channel
|
/// @param index sub-channel
|
||||||
|
|
Loading…
Reference in New Issue
Block a user