42 #ifndef STRING_TO_INT_MAP_H
43 #define STRING_TO_INT_MAP_H
48 namespace OptionsFromStreamPack {
101 {
public:
AlreadyExists(
const std::string& what_arg) : std::logic_error(what_arg) {}};
111 int operator()(
const std::string& str )
const;
114 const std::string&
name()
const;
117 typedef std::map< std::string, int >
map_t;
137 #endif // STRING_TO_INT_MAP_H
Map a string to an enumeration.
std::map< std::string, int > map_t
AlreadyExists(const std::string &what_arg)
DoesNotExist(const std::string &what_arg)
int operator()(const std::string &str) const
const std::string & name() const
AccessException(const std::string &what_arg)