MetadataCollectorForService.h
Go to the documentation of this file.
1 #ifndef art_Framework_Art_detail_md_collector_MetadataCollectorForService_h
2 #define art_Framework_Art_detail_md_collector_MetadataCollectorForService_h
3 
9 #include "cetlib/bold_fontify.h"
10 
11 #include <regex>
12 #include <string>
13 
14 namespace art::detail {
15 
16  template <>
18  public:
21  std::string const& prefix,
22  std::string const& header_label [[maybe_unused]],
23  std::string const& param_to_replace) const override
24  {
25  return {header_(li),
26  details_(li),
27  print_allowed_configuration(li, prefix, param_to_replace)};
28  }
29 
30  private:
32  header_(LibraryInfo const& li) const
33  {
34  std::string const& printed_name = li.short_spec();
35  std::ostringstream result;
36  result << indent_1() << "service : " << cet::bold_fontify(printed_name)
37  << "\n\n";
38  return result.str();
39  }
40 
42  details_(LibraryInfo const& li) const
43  {
44  std::ostringstream result;
45  result << indent__2() << "provider: " << li.provider() << "\n"
46  << indent__2() << "source : " << li.path() << "\n"
47  << indent__2() << "library : " << li.so_name() << "\n\n";
48  return result.str();
49  }
50  };
51 
52 }
53 
54 #endif /* art_Framework_Art_detail_md_collector_MetadataCollectorForService_h */
55 
56 // Local variables:
57 // mode: c++
58 // End:
static QCString result
std::string const & so_name() const
Definition: LibraryInfo.h:38
std::string string
Definition: nybbler.cc:12
std::string indent_1()
std::string print_allowed_configuration(LibraryInfo const &li, std::string const &prefix, std::string const &type_spec)
std::string indent__2()
std::string bold_fontify(std::string const &s)
Definition: bold_fontify.h:8
std::string const & short_spec() const
Definition: LibraryInfo.h:43
std::string const & provider() const
Definition: LibraryInfo.h:63
std::string const & path() const
Definition: LibraryInfo.h:53
PluginMetadata doCollect(LibraryInfo const &li, std::string const &prefix, std::string const &header_label[[maybe_unused]], std::string const &param_to_replace) const override