LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
art::ServiceTable< T > Class Template Reference

#include "ServiceTable.h"

Inheritance diagram for art::ServiceTable< T >:
fhicl::ConfigurationTable

Public Member Functions

 ServiceTable (fhicl::Name &&name)
 
 ServiceTable (fhicl::ParameterSet const &pset)
 
fhicl::ParameterSet const & get_PSet () const
 
void print_allowed_configuration (std::ostream &os, std::string const &prefix) const
 
auto const & operator() () const
 
cet::exempt_ptr< fhicl::detail::ParameterBase const > parameter_base () const
 

Private Member Functions

cet::exempt_ptr< fhicl::detail::ParameterBase const > get_parameter_base () const override
 

Private Attributes

fhicl::Table< T > config_
 

Detailed Description

template<typename T>
class art::ServiceTable< T >

Definition at line 19 of file ServiceTable.h.

Constructor & Destructor Documentation

template<typename T>
art::ServiceTable< T >::ServiceTable ( fhicl::Name &&  name)
inlineexplicit

Definition at line 21 of file ServiceTable.h.

21 : config_{std::move(name)} {}
fhicl::Table< T > config_
Definition: ServiceTable.h:51
template<typename T>
art::ServiceTable< T >::ServiceTable ( fhicl::ParameterSet const &  pset)
inline

Definition at line 23 of file ServiceTable.h.

24  : config_{fhicl::Name{"<service>"}}
25  {
26  std::set<std::string> const keys_to_ignore{"service_type",
27  "service_provider"};
28  config_.validate_ParameterSet(pset, keys_to_ignore);
29  }
fhicl::Table< T > config_
Definition: ServiceTable.h:51
void validate_ParameterSet(ParameterSet const &pset, std::set< std::string > const &keysToIgnore={})

Member Function Documentation

template<typename T>
cet::exempt_ptr<fhicl::detail::ParameterBase const> art::ServiceTable< T >::get_parameter_base ( ) const
inlineoverrideprivatevirtual

Implements fhicl::ConfigurationTable.

Definition at line 53 of file ServiceTable.h.

54  {
55  return &config_;
56  }
fhicl::Table< T > config_
Definition: ServiceTable.h:51
template<typename T>
fhicl::ParameterSet const& art::ServiceTable< T >::get_PSet ( ) const
inline

Definition at line 32 of file ServiceTable.h.

33  {
34  return config_.get_PSet();
35  }
fhicl::Table< T > config_
Definition: ServiceTable.h:51
ParameterSet const & get_PSet() const
Definition: Table.h:69
template<typename T>
auto const& art::ServiceTable< T >::operator() ( ) const
inline

Definition at line 45 of file ServiceTable.h.

46  {
47  return config_();
48  }
fhicl::Table< T > config_
Definition: ServiceTable.h:51
cet::exempt_ptr<fhicl::detail::ParameterBase const> fhicl::ConfigurationTable::parameter_base ( ) const
inlineinherited

Definition at line 19 of file ConfigurationTable.h.

20  {
21  return get_parameter_base();
22  }
virtual cet::exempt_ptr< fhicl::detail::ParameterBase const > get_parameter_base() const =0
template<typename T>
void art::ServiceTable< T >::print_allowed_configuration ( std::ostream &  os,
std::string const &  prefix 
) const
inline

Definition at line 38 of file ServiceTable.h.

40  {
42  }
void print_allowed_configuration(std::ostream &os, std::string const &tab=std::string(3, ' ')) const
fhicl::Table< T > config_
Definition: ServiceTable.h:51

Member Data Documentation

template<typename T>
fhicl::Table<T> art::ServiceTable< T >::config_
private

Definition at line 51 of file ServiceTable.h.


The documentation for this class was generated from the following file: