5 #include "boost/lambda/lambda.hpp"
11 namespace exception_actions {
21 typedef std::vector<char const*> Table;
27 static ActionNames
tab;
28 return static_cast<unsigned int>(code) < tab.table_.size() ? tab.table_[code] :
"UnknownAction";
40 using boost::lambda::_1;
41 using boost::lambda::var;
42 typedef std::vector<std::string>
vstring;
58 for_all(v, var(out)[_1] = code);
73 using namespace boost::lambda;
78 ActionMap::const_iterator
ib(
map_.begin()),ie(
map_.end());
79 for(;
ib != ie; ++
ib) {
94 ActionMap::const_iterator
i(
map_.find(category));
T getUntrackedParameter(std::string const &, T const &) const
exception_actions::ActionCodes find(const std::string &category) const
ParameterSet getUntrackedParameterSet(std::string const &name, ParameterSet const &defaultValue) const
Func for_all(ForwardSequence &s, Func f)
wrapper for std::for_each
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()