LArSoft  v06_85_00
Liquid Argon Software toolkit - http://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>
16  LibraryInfoCollection const& coll)
17 {
18  switch (st) {
20  return std::make_unique<MetadataSummaryFor<suffix_type::module>>(coll);
22  return std::make_unique<MetadataSummaryFor<suffix_type::service>>(coll);
24  return std::make_unique<MetadataSummaryFor<suffix_type::source>>(coll);
26  return std::make_unique<MetadataSummaryFor<suffix_type::plugin>>(coll);
27  case suffix_type::tool:
28  return std::make_unique<MetadataSummaryFor<suffix_type::tool>>(coll);
30  return std::make_unique<MetadataSummaryFor<suffix_type::mfPlugin>>(coll);
32  return std::make_unique<MetadataSummaryFor<suffix_type::mfStatsPlugin>>(
33  coll);
34  // No default -- let compiler warn if missing type.
35  }
36  return std::unique_ptr<MetadataSummary>{nullptr};
37 }
HLT enums.
std::unique_ptr< MetadataSummary > get_MetadataSummary(suffix_type st, LibraryInfoCollection const &coll)
std::multiset< LibraryInfo > LibraryInfoCollection