Oma_Ot_Writer_Table_Add()

摘要

为对象使用指定模板创建表。

语法

Oma_Ot_Writer_Table_Add (ot_writer_ptr, type, group_name, obj_path, category_and_table_name, template_ptr)
参数 类型 说明
ot_writer_ptr OmaT_Ot_Writer * 所关注的 OT writer。
type OmaT_Ot_Table_Type 表类型,由表 175中的某个符号常量指定。
group_name const char * 该表所属的组。若不需要,传 PRGC_NIL。
obj_path const char * 该表所属对象的层次结构路径。全局表传 PRGC_NIL。
category_and_table_name const char * 表的键描述符,采用 “<category>.<table_name>” 形式(例如 “ATM.Interface Configuration”)。
template_ptr OmaT_Ot_Template * 新表要使用的模板。

返回类型

OmaT_Ot_Table *

新表。如果 writer 未定义、未指定 category_and_table_name,或无法分配表,返回 PRGC_NIL。

头文件

oma_ot.h

详情

返回的表归 writer 所有,writer 关闭时该表会被销毁。在 writer 关闭之前用 Oma_Ot_Table_Destroy() 显式销毁该表可以安全地释放数据结构,但该表仍会被包含在输出文件中。

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com