generic-table-enums.m2c
上传用户:wxp200602
上传日期:2007-10-30
资源大小:4028k
文件大小:2k
源码类别:
SNMP编程
开发平台:
Unix_Linux
- ############################################################# -*- c -*-
- ## generic include for XXX. Do not use directly.
- ##
- ## $Id: generic-table-enums.m2c,v 1.3 2004/05/18 17:44:32 rstory Exp $
- ########################################################################
- @if $m2c_create_fewer_files != 1@
- @eval $hack = "Id"@
- @eval $m2c_save = "$name"@
- @eval $name = "${name}_enums"@
- @open ${name}.h@
- /*
- * Note: this file originally auto-generated by mib2c using
- * $Id: generic-table-enums.m2c,v 1.3 2004/05/18 17:44:32 rstory Exp $
- *
- * $$hack:$
- */
- @include generic-header-top.m2i@
- @eval $name = $m2c_save@
- @end@ // m2c_create_fewer_files
- ########################################################################
- @if $m2c_mark_boundary == 1@
- /** START header generated by $RCSfile: generic-table-enums.m2c,v $ $Revision: 1.3 $ */
- @end@
- ##
- /*
- * NOTES on enums
- * ==============
- *
- * Value Mapping
- * -------------
- * If the values for your data type don't exactly match the
- * possible values defined by the mib, you should map them
- * below. For example, a boolean flag (1/0) is usually represented
- * as a TruthValue in a MIB, which maps to the values (1/2).
- *
- */
- ##
- ##
- /*************************************************************************
- *************************************************************************
- *
- * enum definitions for table $context
- *
- *************************************************************************
- *************************************************************************/
- @ foreach $node column@
- @ include m2c_setup_node.m2i@
- @ if $node.enums == 1@
- @ include details-enums.m2i@
- @ end@
- @ end@ # column
- @if $m2c_create_fewer_files != 1@
- @eval $m2c_save = "$name"@
- @eval $name = "${name}_enums"@
- @include generic-header-bottom.m2i@
- @eval $name = $m2c_save@
- @end@
- ########################################################################
- @if $m2c_mark_boundary == 1@
- /** END header generated by $RCSfile: generic-table-enums.m2c,v $ $Revision: 1.3 $ */
- @end@