Project

General

Profile

Feature #11950

Specifying ignorable keys for configuration validation

Added by Kyle Knoepfel almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Infrastructure
Target version:
Start date:
03/14/2016
Due date:
% Done:

100%

Estimated time:
2.00 h
Spent time:
Scope:
Internal
Experiment:
-
SSI Package:
fhicl-cpp
Duration:

Description

It is currently cumbersome to specify a list of keys that should be ignored by the configuration validation system. Based on discussions with Mu2e, it would be helpful to have a helper template akin to:

struct Config {

  fhicl::Atom<bool> ....;

  struct KeysToIgnore {
    std::set<std::string> operator()()
    {
      return {"uninteresting_name1", "skipMe"};
    }
  };
};

using Parameters = Table<Config, Config::KeysToIgnore>;

where any parameter names starting with "uninteresting_name1" and "skipMe" would not be validated.

History

#1 Updated by Kyle Knoepfel almost 4 years ago

  • Status changed from New to Accepted
  • Estimated time set to 2.00 h

#2 Updated by Kyle Knoepfel over 3 years ago

  • Status changed from Accepted to Assigned
  • Assignee set to Kyle Knoepfel

#3 Updated by Kyle Knoepfel over 3 years ago

  • % Done changed from 0 to 100

The commits for this feature are fhicl-cpp:5d49d7f4 and art:c02e99a.

#4 Updated by Kyle Knoepfel over 3 years ago

  • Status changed from Assigned to Resolved

#5 Updated by Kyle Knoepfel over 3 years ago

  • Category set to Infrastructure
  • Status changed from Resolved to Closed
  • Target version set to 2.04.00


Also available in: Atom PDF