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:
Claude
2026-11-09 22:58:27 +00:00
parent 871e7e54cf
commit aed31b4090
3 changed files with 5 additions and 5 deletions

View File

@@ -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 */)