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;
51 for (
auto const&
v :
opts.getUntrackedParameter<std::vector<std::string>>(
actionName(code))) {
71 ActionMap::const_iterator
ib(
map_.begin()), ie(
map_.end());
72 for (;
ib != ie; ++
ib) {
void add(const std::string &category, exception_actions::ActionCodes code)
exception_actions::ActionCodes find(const std::string &category) const
std::map< std::string, exception_actions::ActionCodes > ActionMap
std::vector< std::string > vstring
~ExceptionToActionTable()
const char * actionName(ActionCodes code)