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