LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
MetadataCollector.h
Go to the documentation of this file.
1 #ifndef art_Framework_Art_detail_MetadataCollector_h
2 #define art_Framework_Art_detail_MetadataCollector_h
3 
6 
7 #include <string>
8 
9 namespace art::detail {
10  class LibraryInfo;
11 
12  template <art::suffix_type S>
14 
16  public:
18  collect(LibraryInfo const& li,
19  std::string const& prefix,
20  std::string const& header_label,
21  std::string const& param_to_replace) const
22  {
23  return doCollect(li, prefix, header_label, param_to_replace);
24  }
25  virtual ~MetadataCollector() = default;
26 
27  private:
28  virtual PluginMetadata doCollect(
29  LibraryInfo const& li,
30  std::string const& prefix,
31  std::string const& header_label,
32  std::string const& param_to_replace) const = 0;
33  };
34 
35 } // namespace art::detail
36 
37 #endif /* art_Framework_Art_detail_MetadataCollector_h */
38 
39 // Local variables:
40 // mode: c++
41 // End:
virtual ~MetadataCollector()=default
virtual PluginMetadata doCollect(LibraryInfo const &li, std::string const &prefix, std::string const &header_label, std::string const &param_to_replace) const =0
PluginMetadata collect(LibraryInfo const &li, std::string const &prefix, std::string const &header_label, std::string const &param_to_replace) const