mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2026-11-25 13:11:36 +00:00
refactor(examples): use the property API of ProgOptions
- Replace GetValue<T>() with GetProperty<T>(). All read keys are declared options, so GetProperty<T>() without a default fits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -38,9 +38,9 @@ struct Receiver : fair::mq::Device
|
||||
|
||||
void InitTask() override
|
||||
{
|
||||
fNumSenders = GetConfig()->GetValue<int>("num-senders");
|
||||
fBufferTimeoutInMs = GetConfig()->GetValue<int>("buffer-timeout");
|
||||
fMaxTimeframes = GetConfig()->GetValue<int>("max-timeframes");
|
||||
fNumSenders = GetConfig()->GetProperty<int>("num-senders");
|
||||
fBufferTimeoutInMs = GetConfig()->GetProperty<int>("buffer-timeout");
|
||||
fMaxTimeframes = GetConfig()->GetProperty<int>("max-timeframes");
|
||||
}
|
||||
|
||||
bool HandleData(fair::mq::Parts& parts, int /* index */)
|
||||
|
||||
Reference in New Issue
Block a user