14 #ifndef MODB_ENUMINFO_H
15 #define MODB_ENUMINFO_H
20 #include <boost/unordered_map.hpp>
53 const std::vector<ConstInfo>& consts_);
64 const std::string&
getName()
const {
return name; }
70 const std::vector<ConstInfo>&
getConsts()
const {
return consts; }
78 const uint64_t
getIdByName(
const std::string& name)
const;
97 std::vector<ConstInfo> consts;
99 typedef boost::unordered_map<std::string, uint64_t> const_name_map_t;
100 typedef boost::unordered_map<uint64_t, std::string> const_value_map_t;
102 const_name_map_t const_name_map;
103 const_value_map_t const_value_map;
const std::vector< ConstInfo > & getConsts() const
Get the vector of possible const values for the enum.
Definition: EnumInfo.h:70
Enum info defines the set of possible values for an enum as well as the properties current defined by...
Definition: EnumInfo.h:41
const uint64_t getIdByName(const std::string &name) const
Get the constant value by the enum name.
const std::string & getNameById(uint64_t id) const
Get the enum constant name by the enum value.
const std::string & getName() const
Get the name of the enum.
Definition: EnumInfo.h:64
Interface definition file for ConstInfo.
EnumInfo()
Default constructor.
Definition: EnumInfo.h:47