LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
PluginSuffixes.cc
Go to the documentation of this file.
2 
3 namespace {
4  auto
5  reverseMap(std::map<art::suffix_type, std::string> const& map)
6  {
7  std::map<std::string, art::suffix_type> result;
8  for (auto const& pr : map)
9  result.emplace(pr.second, pr.first);
10  return result;
11  }
12 }
13 
14 std::map<art::suffix_type, std::string> art::Suffixes::suffixes_ = {
15  {suffix_type::module, "module"},
16  {suffix_type::plugin, "plugin"},
17  {suffix_type::service, "service"},
18  {suffix_type::source, "source"},
19  {suffix_type::tool, "tool"},
20  {suffix_type::mfPlugin, "mfPlugin"},
21  {suffix_type::mfStatsPlugin, "mfStatsPlugin"}};
22 
23 std::map<std::string, art::suffix_type> art::Suffixes::rSuffixes_ =
24  reverseMap(suffixes_);
static std::map< std::string, suffix_type > rSuffixes_
static std::map< suffix_type, std::string > suffixes_