First english is not my first language. If you need something explained more just ask.
What I want to do, is make a class that extends the use of an enum. Say you have
enum Color
{ red,
green,
blue };
I want to make a class, so I can make an object like
CustomEnum myEnum("red",
"green",
"blue",
"The house is red",
"The tree is green",
"The car is blue");
This way, I could call something like
myEnum.getString(red);
With a custom function, it would return the mapped value of "The house is red". However I have many many more functions I want to write, and have many enum's.
CustomEnum mySecondEnum("pizza",
"soup",
"eggs",
"burger",
"The pizza is hot",
"The soup has gone cold",
"The eggs are bad",
"The burger has cheese");
Notice the two enum's have different sizes, but CustomEnum does not care.
I have done lots of googling and came up with either this cannot be done (because enums are made at compile), or I am googling the wrong things. at this point I want to confirm that this cannot be done or if someone can point me in the right direction.