LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
get_MetadataSummary.cc
Go to the documentation of this file.
2 #include "art/Framework/Art/detail/md-summary/MetadataSummaryForMFPlugin.h"
3 #include "art/Framework/Art/detail/md-summary/MetadataSummaryForMFStatsPlugin.h"
4 #include "art/Framework/Art/detail/md-summary/MetadataSummaryForModule.h"
5 #include "art/Framework/Art/detail/md-summary/MetadataSummaryForPlugin.h"
6 #include "art/Framework/Art/detail/md-summary/MetadataSummaryForService.h"
7 #include "art/Framework/Art/detail/md-summary/MetadataSummaryForSource.h"
8 #include "art/Framework/Art/detail/md-summary/MetadataSummaryForTool.h"
10 
11 using namespace art;
12 using namespace art::detail;
13 
14 std::unique_ptr<MetadataSummary>
15 detail::get_MetadataSummary(std::string const& suffix,
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()
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()
Definition: MVAAlg.h:12
static std::string const & module()
std::multiset< LibraryInfo > LibraryInfoCollection