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
While there is no direct solution, there are a few possible workarounds.
Take a look at this question: Easy way to use variables of enum types as string in C?