10 namespace exception_actions {
20 typedef std::vector<char const*>
Table;
26 static ActionNames tab;
27 return static_cast<unsigned int>(code) < tab.table_.size() ? tab.table_[code] :
"UnknownAction";
37 typedef std::vector<std::string>
vstring;
71 ActionMap::const_iterator
ib(
map_.begin()), ie(
map_.end());
72 for (;
ib != ie; ++
ib) {
86 ActionMap::const_iterator
i(
map_.find(category));
T getUntrackedParameter(std::string const &, T const &) const
static const char category[]
exception_actions::ActionCodes find(const std::string &category) const
ParameterSet getUntrackedParameterSet(std::string const &name, ParameterSet const &defaultValue) const
void add(const std::string &category, exception_actions::ActionCodes code)
const char * actionName(ActionCodes code)
std::map< std::string, exception_actions::ActionCodes > ActionMap
std::vector< std::string > vstring
~ExceptionToActionTable()