14 #ifndef MODB_ENUMINFO_H 15 #define MODB_ENUMINFO_H 21 #include "opflex/ofcore/OFTypes.h" 52 const std::vector<ConstInfo>& consts_);
63 const std::string&
getName()
const {
return name; }
69 const std::vector<ConstInfo>&
getConsts()
const {
return consts; }
77 const uint64_t
getIdByName(
const std::string& name)
const;
96 std::vector<ConstInfo> consts;
98 typedef OF_UNORDERED_MAP<std::string, uint64_t> const_name_map_t;
99 typedef OF_UNORDERED_MAP<uint64_t, std::string> const_value_map_t;
101 const_name_map_t const_name_map;
102 const_value_map_t const_value_map;
Enum info defines the set of possible values for an enum as well as the properties current defined by...
Definition: EnumInfo.h:40
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:63
Definition: OFLogHandler.h:20
Interface definition file for ConstInfo.
EnumInfo()
Default constructor.
Definition: EnumInfo.h:46
const std::vector< ConstInfo > & getConsts() const
Get the vector of possible const values for the enum.
Definition: EnumInfo.h:69