21 #ifndef BM_BM_SIM_ENUMS_H_
22 #define BM_BM_SIM_ENUMS_H_
25 #include <unordered_map>
38 type_t from_name(
const std::string &name)
const;
41 const std::string &to_name(
const std::string &enum_name, type_t v)
const;
44 bool add_enum(
const std::string &enum_name);
47 bool add_entry(
const std::string &enum_name,
const std::string &entry_name,
51 using EntryMap = std::unordered_map<type_t, std::string>;
53 std::unordered_map<std::string, type_t> map_name_to_v{};
54 std::unordered_map<std::string, EntryMap> map_enum_name_to_entries{};
59 #endif // BM_BM_SIM_ENUMS_H_