1 #ifndef fhiclcpp_types_detail_ParameterBase_h 2 #define fhiclcpp_types_detail_ParameterBase_h 42 std::function<
bool()> maybeUse =
AlwaysUse());
45 std::string
const&
key()
const;
46 std::string
const&
name()
const;
47 std::string
const&
comment()
const;
bool is_conditional() const
void set_value(fhicl::ParameterSet const &ps)
bool preset_value(fhicl::ParameterSet const &ps)
ParameterBase(Name const &name, Comment const &comment, par_style const vt, par_type const type, std::function< bool()> maybeUse=AlwaysUse())
std::function< bool()> AlwaysUse()
virtual void do_set_value(fhicl::ParameterSet const &)=0
par_type parameter_type() const
std::string const & name() const
std::string const & key() const
std::function< bool()> maybeUse_
std::string const & comment() const
virtual bool do_preset_value(fhicl::ParameterSet const &)
void set_par_style(par_style const vt)