Modern C++ supports case statements for string literals, so you don't need to use long if-then-else chains. Moreover, if you encode the 8 possible macro orientations with integers 0..7, then case statements will run faster. This is just one example of getting rid of string operations in time-critical code.
Modern C++ supports case statements for string literals, so you don't need to use long if-then-else chains. Moreover, if you encode the 8 possible macro orientations with integers 0..7, then case statements will run faster. This is just one example of getting rid of string operations in time-critical code.