LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
get_MetadataCollector.cc
Go to the documentation of this file.
2 #include "art/Framework/Art/detail/md-collector/MetadataCollectorForMFPlugin.h"
3 #include "art/Framework/Art/detail/md-collector/MetadataCollectorForMFStatsPlugin.h"
4 #include "art/Framework/Art/detail/md-collector/MetadataCollectorForModule.h"
5 #include "art/Framework/Art/detail/md-collector/MetadataCollectorForPlugin.h"
6 #include "art/Framework/Art/detail/md-collector/MetadataCollectorForService.h"
7 #include "art/Framework/Art/detail/md-collector/MetadataCollectorForSource.h"
8 #include "art/Framework/Art/detail/md-collector/MetadataCollectorForTool.h"
10 
11 using namespace art;
12 using namespace art::detail;
13 
14 std::unique_ptr<MetadataCollector>
16 {
17  switch (st) {
19  return std::make_unique<MetadataCollectorFor<suffix_type::module>>();
21  return std::make_unique<MetadataCollectorFor<suffix_type::plugin>>();
23  return std::make_unique<MetadataCollectorFor<suffix_type::service>>();
25  return std::make_unique<MetadataCollectorFor<suffix_type::source>>();
26  case suffix_type::tool:
27  return std::make_unique<MetadataCollectorFor<suffix_type::tool>>();
29  return std::make_unique<MetadataCollectorFor<suffix_type::mfPlugin>>();
31  return std::make_unique<
33  // No default -- allow compiler to warn if missing suffix_type.
34  }
35  return std::unique_ptr<MetadataCollector>{nullptr};
36 }
HLT enums.
std::unique_ptr< MetadataCollector > get_MetadataCollector(suffix_type st)