I'm not a C++ pro player, but a scoped enum (enum class UEComparisonType {...} -> UEComparisonType::xyz) seems like a better fit (we can enable C++11 in UCtrlCore by adding CONFIG += c++11 in the .pro file).