MetadataCollectorForMFStatsPlugin.h
Go to the documentation of this file.
1 #ifndef art_Framework_Art_detail_md_collector_MetadataCollectorForMFStatsPlugin_h
2 #define art_Framework_Art_detail_md_collector_MetadataCollectorForMFStatsPlugin_h
3 
9 
10 #include <regex>
11 
12 namespace art::detail {
13 
14  template <>
16  : public MetadataCollector {
17  public:
20  std::string const& prefix,
21  std::string const& header_label,
22  std::string const& param_to_replace) const override
23  {
24  return {print_header(li, header_label),
25  details_(li),
26  print_allowed_configuration(li, prefix, param_to_replace)};
27  }
28 
29  private:
31  details_(LibraryInfo const& li) const
32  {
33  std::ostringstream result;
34  result << indent__2() << "provider: " << li.provider() << "\n"
35  << indent__2() << "source : " << li.path() << "\n"
36  << indent__2() << "library : " << li.so_name() << "\n\n";
37  return result.str();
38  }
39  };
40 }
41 
42 #endif /* art_Framework_Art_detail_md_collector_MetadataCollectorForMFStatsPlugin_h */
43 
44 // Local variables:
45 // mode: c++
46 // 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
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 & path() const
Definition: LibraryInfo.h:53