BEGIN_ENUM_DESCRIPTION(behaviac::EBTStatus, EBTStatus) { ENUMCLASS_DISPLAYNAME(L"BT状态"); ENUMCLASS_DESC(L"BT状态"); DEFINE_ENUM_VALUE(behaviac::BT_INVALID, "invalid"); DEFINE_ENUM_VALUE(behaviac::BT_SUCCESS, "success"); DEFINE_ENUM_VALUE(behaviac::BT_FAILURE, "failure"); DEFINE_ENUM_VALUE(behaviac::BT_RUNNING, "running"); }
BEGIN_ENUM_DESCRIPTION(behaviac::EBTStatus, EBTStatus) { ENUMCLASS_DISPLAYNAME(L"BT状态"); ENUMCLASS_DESC(L"BT状态"); DEFINE_ENUM_VALUE(behaviac::BT_INVALID, "BT_INVALID"); DEFINE_ENUM_VALUE(behaviac::BT_SUCCESS, "BT_SUCCESS"); DEFINE_ENUM_VALUE(behaviac::BT_FAILURE, "BT_FAILURE"); DEFINE_ENUM_VALUE(behaviac::BT_RUNNING, "BT_RUNNING"); }
BEGIN_ENUM_DESCRIPTION(EnumTest, EnumTest) { DEFINE_ENUM_VALUE(EnumTest_One, "EnumTest_One"); DEFINE_ENUM_VALUE(EnumTest_OneAfterOne, "EnumTest_OneAfterOne"); }