Sounds as if you'd like a std::map with string/int (or int/string) pairs, not an enum. You can initialize it in the code much like you would an enum (even if it is not initialized at compile time).
↧