#include <iostream>
#include <string>
{
};
{
};
{
using namespace std;
cout << "White => " << (int)TEnumType<TestColors>::name2value("White")
<< endl;
cout << "Black => " << (int)TEnumType<TestColors>::name2value("Black")
<< endl;
cout << "Gray => " << (int)TEnumType<TestColors>::name2value("Gray")
<< endl;
cout <<
"7 <= " << TEnumType<TestColors>::value2name(
TestColors(7))
<< endl;
}
int main(
int argc,
char** argv)
{
try
{
return 0;
}
catch (std::exception& e)
{
std::cout << "Exception: " << e.what() << std::endl;
return -1;
}
}
#define MRPT_ENUM_TYPE_END()
#define MRPT_FILL_ENUM_MEMBER(_CLASS, _VALUE)
#define MRPT_FILL_ENUM(_X)
For use in specializations of TEnumTypeFiller.
#define MRPT_ENUM_TYPE_BEGIN(_ENUM_TYPE_WITH_NS)
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red