gusucode.com > 通用协议编解码模块C#源码程序 > 通用协议编解码模块/codec_src/Codec_src/MsgCodec/EnumTableDef.cpp
// EnumTableDef.cpp: Define the Enumeration Tables // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "PrivateCodecServ.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif BEGIN_DEFINE_ENUMERATION_TABLE(SampleTable, "another table for sample use") DEFINE_ENUMERATION_ITEM(0, "V1", "Value 1") DEFINE_ENUMERATION_ITEM(1, "V2", "Value 2") DEFINE_ENUMERATION_ITEM(2, "V3", "Value 3") DEFINE_ENUMERATION_ITEM(3, "V4", "Value 4") DEFINE_ENUMERATION_ITEM(255, "Vn", "Value n") END_DEFINE_ENUMERATION_TABLE()