Hello I am looking for a possibility to create a data-type or something like that in c++ (qt 5.15). I need to redesign a datastructure in my app for transportation over a REST API. Therefore I need a "String" variable that can only be of the values "Level1" , "Level2" or "Level3"
How can I accomplish this?
So I need something that solves: TLevel m_levelInStructure = "Level1" || "Level2" || "Level3";