mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
add CountProperty() to plugin APIs, throw is GetProperty doesn't find key
This commit is contained in:
committed by
Mohammad Al-Turany
parent
243352d717
commit
95112dac02
@@ -182,8 +182,14 @@ auto DDS::FillChannelContainers() -> void
|
||||
}
|
||||
|
||||
// save properties that will have multiple values arriving (with only some of them to be used)
|
||||
vector<string> iValues = GetProperty<vector<string>>("dds-i");
|
||||
vector<string> inValues = GetProperty<vector<string>>("dds-i-n");
|
||||
vector<string> iValues;
|
||||
if (PropertyExists("dds-i")) {
|
||||
iValues = GetProperty<vector<string>>("dds-i");
|
||||
}
|
||||
vector<string> inValues;
|
||||
if (PropertyExists("dds-i-n")) {
|
||||
inValues = GetProperty<vector<string>>("dds-i-n");
|
||||
}
|
||||
|
||||
for (const auto& vi : iValues) {
|
||||
size_t pos = vi.find(":");
|
||||
|
Reference in New Issue
Block a user