MetadataCollectorForSource.h
Go to the documentation of this file.
1 #ifndef art_Framework_Art_detail_md_collector_MetadataCollectorForSource_h
2 #define art_Framework_Art_detail_md_collector_MetadataCollectorForSource_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() << "source : " << li.path() << "\n"
33  << indent__2() << "library : " << li.so_name() << "\n\n";
34  return result.str();
35  }
36  };
37 }
38 
39 #endif /* art_Framework_Art_detail_md_collector_MetadataCollectorForSource_h */
40 
41 // Local variables:
42 // mode: c++
43 // 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()
PluginMetadata doCollect(LibraryInfo const &li, std::string const &prefix, std::string const &header_label, std::string const &param_to_replace) const override
std::string const & provider() const
Definition: LibraryInfo.h:63
std::string const & path() const
Definition: LibraryInfo.h:53