#include <ValidateThenSet.h>
|
| ValidateThenSet (fhicl::ParameterSet const &pset, std::set< std::string > const &keysToIgnore) |
|
void | check_keys () |
|
| ParameterWalker ()=default |
|
virtual | ~ParameterWalker ()=default |
|
void | walk_over (tt::maybe_const_t< ParameterBase, C > &) |
|
bool | do_before_action (tt::maybe_const_t< ParameterBase, C > &p) |
|
void | do_after_action (tt::maybe_const_t< ParameterBase, C > &p) |
|
void | do_enter_table (tt::maybe_const_t< TableBase, C > &t) |
|
void | do_exit_table (tt::maybe_const_t< TableBase, C > &t) |
|
void | do_enter_sequence (tt::maybe_const_t< SequenceBase, C > &s) |
|
void | do_exit_sequence (tt::maybe_const_t< SequenceBase, C > &s) |
|
void | do_atom (tt::maybe_const_t< AtomBase, C > &a) |
|
void | do_delegated_parameter (tt::maybe_const_t< DelegateBase, C > &dp) |
|
Definition at line 15 of file ValidateThenSet.h.
Definition at line 18 of file ValidateThenSet.h.
std::set< std::string > ignorableKeys_
std::vector< std::string > userKeys_
void sort_all(RandCont &)
ParameterSet const & pset_
std::vector< cet::exempt_ptr< ParameterBase > > missingParameters_
void fhicl::detail::ValidateThenSet::after_action |
( |
ParameterBase & |
p | ) |
|
|
overrideprivate |
void fhicl::detail::ValidateThenSet::atom |
( |
AtomBase & |
| ) |
|
|
inlineoverrideprivate |
Definition at line 17 of file ValidateThenSet.cc.
27 if (!
p.has_default() and !
p.is_optional()) {
41 return e.find(k +
'[') == 0ull or
e ==
k;
std::set< std::string > ignorableKeys_
std::vector< std::string > userKeys_
std::string strip_first_containing_name(std::string const &key)
bool search_all(FwdCont const &, Datum const &)
ParameterSet const & pset_
bool has_key(std::string const &key) const
std::vector< cet::exempt_ptr< ParameterBase > > missingParameters_
bool is_sequence(std::any const &val)
void fhicl::detail::ValidateThenSet::check_keys |
( |
| ) |
|
Definition at line 189 of file ValidateThenSet.cc.
195 if (!errmsg.empty()) {
199 throw validationException{fullmsg.c_str()};
std::set< std::string > ignorableKeys_
std::vector< std::string > userKeys_
std::string optional_parameter_message(bool const with_comment=true)
ParameterSet const & pset_
std::vector< cet::exempt_ptr< ParameterBase > > missingParameters_
void fhicl::detail::ValidateThenSet::delegated_parameter |
( |
DelegateBase & |
dp | ) |
|
|
overrideprivate |
Definition at line 83 of file ValidateThenSet.cc.
88 auto const&
name = dp.name();
93 return std::regex_search(
k,
r);
std::vector< std::string > userKeys_
static std::string regex_safe(std::string const &key)
void fhicl::detail::ValidateThenSet::enter_sequence |
( |
SequenceBase & |
p | ) |
|
|
overrideprivate |
Definition at line 61 of file ValidateThenSet.cc.
67 <<
"The supplied value of the parameter:\n" 68 <<
" " <<
s.key() <<
'\n' 69 <<
"does not represent a sequence.\n";
73 std::size_t
const nElems =
75 return std::regex_match(
k,
r);
77 s.prepare_elements_for_validation(nElems);
std::vector< std::string > userKeys_
bool is_key_to_sequence(std::string const &key) const
std::string strip_first_containing_name(std::string const &key)
ParameterSet const & pset_
static std::string regex_safe(std::string const &key)
cet::coded_exception< error, detail::translate > exception
void fhicl::detail::ValidateThenSet::enter_table |
( |
TableBase & |
| ) |
|
|
inlineoverrideprivate |
std::set<std::string> fhicl::detail::ValidateThenSet::ignorableKeys_ |
|
private |
The documentation for this class was generated from the following files: