Is there a simple way in C++ to convert a string to an enum (similar to Enum.Parse in C#)? A switch statement would be very long, so I was wondering i
Enum.Parse
In short: there is none. In C++ enums are static values and not objects like in C#. I suggest you use a function with some if else statements.
if else