5 #include "boost/lambda/lambda.hpp"
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));
void add(const std::string &category, actions::ActionCodes code)
T getUntrackedParameter(std::string const &, T const &) const
const char * actionName(ActionCodes code)
roAction_t actions[nactions]
std::vector< std::string > vstring
Func for_all(ForwardSequence &s, Func f)
wrapper for std::for_each
std::map< std::string, actions::ActionCodes > ActionMap
ParameterSet const & getUntrackedParameterSet(std::string const &name, ParameterSet const &defaultValue) const
actions::ActionCodes find(const std::string &category) const