get_MetadataSummary.cc
Go to the documentation of this file.
10 
11 using namespace art;
12 using namespace art::detail;
13 
14 std::unique_ptr<MetadataSummary>
16  LibraryInfoCollection const& coll)
17 {
18  if (suffix == art::Suffixes::module()) {
19  return std::make_unique<MetadataSummaryFor<suffix_type::module>>(coll);
20  }
21  if (suffix == art::Suffixes::plugin()) {
22  return std::make_unique<MetadataSummaryFor<suffix_type::plugin>>(coll);
23  }
24  if (suffix == art::Suffixes::service()) {
25  return std::make_unique<MetadataSummaryFor<suffix_type::service>>(coll);
26  }
27  if (suffix == art::Suffixes::source()) {
28  return std::make_unique<MetadataSummaryFor<suffix_type::source>>(coll);
29  }
30  if (suffix == art::Suffixes::tool()) {
31  return std::make_unique<MetadataSummaryFor<suffix_type::tool>>(coll);
32  }
33  if (suffix == art::Suffixes::mfPlugin()) {
34  return std::make_unique<MetadataSummaryFor<suffix_type::mfPlugin>>(coll);
35  }
36  if (suffix == art::Suffixes::mfStatsPlugin()) {
37  return std::make_unique<MetadataSummaryFor<suffix_type::mfStatsPlugin>>(
38  coll);
39  }
40  return std::unique_ptr<MetadataSummary>{nullptr};
41 }
static std::string const & mfStatsPlugin()
std::string string
Definition: nybbler.cc:12
static std::string const & source()
std::unique_ptr< MetadataSummary > get_MetadataSummary(std::string const &suffix, LibraryInfoCollection const &coll)
static std::string const & plugin()
static std::string const & tool()
static std::string const & mfPlugin()
static std::string const & service()
static std::string const & module()
std::multiset< LibraryInfo > LibraryInfoCollection