MetadataCollectorForModule.h
Go to the documentation of this file.
1 #ifndef art_Framework_Art_detail_md_collector_MetadataCollectorForModule_h
2 #define art_Framework_Art_detail_md_collector_MetadataCollectorForModule_h
3 
9 
10 namespace art::detail {
11 
12  template <>
14  public:
17  std::string const& prefix,
18  std::string const& header_label,
19  std::string const& param_to_replace) const override
20  {
21  return {print_header(li, header_label),
22  details_(li),
23  print_allowed_configuration(li, prefix, param_to_replace)};
24  }
25 
26  private:
28  details_(LibraryInfo const& li) const
29  {
30  std::ostringstream result;
31  result << indent__2() << "provider: " << li.provider() << "\n"
32  << indent__2() << "type : " << li.plugin_type() << "\n"
33  << indent__2() << "source : " << li.path() << "\n"
34  << indent__2() << "library : " << li.so_name() << "\n\n";
35  return result.str();
36  }
37  };
38 }
39 
40 #endif /* art_Framework_Art_detail_md_collector_MetadataCollectorForModule_h */
41 
42 // Local variables:
43 // mode: c++
44 // End:
static QCString result
std::string const & so_name() const
Definition: LibraryInfo.h:38
std::string string
Definition: nybbler.cc:12
std::string print_allowed_configuration(LibraryInfo const &li, std::string const &prefix, std::string const &type_spec)
std::string print_header(LibraryInfo const &li, std::string const &type_spec)
std::string indent__2()
std::string const & provider() const
Definition: LibraryInfo.h:63
std::string const & path() const
Definition: LibraryInfo.h:53
std::string const & plugin_type() const
Definition: LibraryInfo.h:68
PluginMetadata doCollect(LibraryInfo const &li, std::string const &prefix, std::string const &header_label, std::string const &param_to_replace) const override