MetadataCollectorForTool.h
Go to the documentation of this file.
1 #ifndef art_Framework_Art_detail_md_collector_MetadataCollectorForTool_h
2 #define art_Framework_Art_detail_md_collector_MetadataCollectorForTool_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() << "type : " << li.plugin_type() << "\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_MetadataCollectorForTool_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
PluginMetadata doCollect(LibraryInfo const &li, std::string const &prefix, std::string const &header_label, std::string const &param_to_replace) const override
std::string details_(LibraryInfo const &li) const
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