LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
art::Suffixes Class Reference

#include "PluginSuffixes.h"

Static Public Member Functions

static std::string const & module ()
 
static std::string const & plugin ()
 
static std::string const & service ()
 
static std::string const & source ()
 
static std::string const & tool ()
 
static std::string const & mfPlugin ()
 
static std::string const & mfStatsPlugin ()
 
static std::string const & get (suffix_type st)
 
static std::string print ()
 
static suffix_type get (std::string const &suffix)
 
static std::map< suffix_type, std::string > const & all ()
 

Static Private Attributes

static std::map< suffix_type, std::string > suffixes_
 
static std::map< std::string, suffix_typerSuffixes_
 

Detailed Description

Definition at line 77 of file PluginSuffixes.h.

Member Function Documentation

static std::map<suffix_type, std::string> const& art::Suffixes::all ( )
inlinestatic

Definition at line 143 of file PluginSuffixes.h.

144  {
145  return suffixes_;
146  }
static std::map< suffix_type, std::string > suffixes_
static std::string const& art::Suffixes::get ( suffix_type  st)
inlinestatic

Definition at line 116 of file PluginSuffixes.h.

Referenced by art::BasicOptionsHandler::doCheckOptions(), and art::detail::getFilePath().

117  {
118  return suffixes_[st];
119  }
static std::map< suffix_type, std::string > suffixes_
static suffix_type art::Suffixes::get ( std::string const &  suffix)
inlinestatic

Definition at line 131 of file PluginSuffixes.h.

References art::errors::NotFound.

132  {
133  auto it = rSuffixes_.find(suffix);
134  if (it == rSuffixes_.cend()) {
136  << " The suffix '" << suffix << "' is not supported.\n"
137  << " Please choose from:" << print();
138  }
139  return it->second;
140  }
static std::string print()
static std::map< std::string, suffix_type > rSuffixes_
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
static std::string const& art::Suffixes::mfPlugin ( )
inlinestatic

Definition at line 105 of file PluginSuffixes.h.

References art::mfPlugin.

106  {
108  }
static std::map< suffix_type, std::string > suffixes_
static std::string const& art::Suffixes::mfStatsPlugin ( )
inlinestatic

Definition at line 110 of file PluginSuffixes.h.

References art::mfStatsPlugin.

111  {
113  }
static std::map< suffix_type, std::string > suffixes_
static std::string const& art::Suffixes::module ( )
inlinestatic

Definition at line 80 of file PluginSuffixes.h.

References art::module.

81  {
83  }
static std::map< suffix_type, std::string > suffixes_
static std::string const& art::Suffixes::plugin ( )
inlinestatic

Definition at line 85 of file PluginSuffixes.h.

References art::plugin.

86  {
88  }
static std::map< suffix_type, std::string > suffixes_
static std::string art::Suffixes::print ( )
inlinestatic

Definition at line 122 of file PluginSuffixes.h.

Referenced by art::BasicOptionsHandler::BasicOptionsHandler(), and art::detail::print_description().

123  {
124  std::string result;
125  for (auto const& pr : suffixes_)
126  result += "\n '" + pr.second + "'";
127  return result;
128  }
static std::map< suffix_type, std::string > suffixes_
static std::string const& art::Suffixes::service ( )
inlinestatic

Definition at line 90 of file PluginSuffixes.h.

References art::service.

91  {
93  }
static std::map< suffix_type, std::string > suffixes_
static std::string const& art::Suffixes::source ( )
inlinestatic

Definition at line 95 of file PluginSuffixes.h.

References art::source.

96  {
98  }
static std::map< suffix_type, std::string > suffixes_
static std::string const& art::Suffixes::tool ( )
inlinestatic

Definition at line 100 of file PluginSuffixes.h.

References art::tool.

Referenced by art::make_tool().

101  {
103  }
static std::map< suffix_type, std::string > suffixes_

Member Data Documentation

std::map< std::string, art::suffix_type > art::Suffixes::rSuffixes_
staticprivate
Initial value:
=
reverseMap(suffixes_)

Definition at line 150 of file PluginSuffixes.h.

std::map< art::suffix_type, std::string > art::Suffixes::suffixes_
staticprivate
Initial value:
= {
{suffix_type::module, "module"},
{suffix_type::plugin, "plugin"},
{suffix_type::service, "service"},
{suffix_type::source, "source"},
{suffix_type::tool, "tool"},
{suffix_type::mfPlugin, "mfPlugin"},
{suffix_type::mfStatsPlugin, "mfStatsPlugin"}}

Definition at line 149 of file PluginSuffixes.h.


The documentation for this class was generated from the following files: