oms_data_def_entry_insert()

摘要

在类别(category_name)下创建一个数据库条目(entry_name)。

语法

oms_data_def_entry_insert (category_name, entry_name, entry_ds_ptr)

参数 类型 说明
category_name char * 所要操作的类别名。如果该类别不存在,会自动创建,因此调用方代码无需自行创建该类别。
entry_name char * 要插入的条目名。如果该条目已存在,数据会被覆盖。
entry_ds_ptr void * 存储在该条目名下的通用数据结构指针。

返回类型

void

无返回值。

详细说明

参见 oms_data_def_entry_access()。

示例

摘自 ip_attribute_definer 进程模型的函数块

/* Load the compression ratio distribution for future use. */
comp_type_ptr->comp_ratio_dist_ptr = op_dist_load (pdf_name, pdf_arg0, pdf_arg1);
/* Get the per bit delays for compression & decompression processes*/
op_ima_obj_attr_get (comp_type_objid, "Compression Delay",
&(comp_type_ptr->compression_delay));
op_ima_obj_attr_get (comp_type_objid, "Decompression Delay",
&(comp_type_ptr->decompression_delay));
/* Finally register the data into network-wide database by */
/* passing the pointer to the data structure. That makes this */
/* information accessible for all other objects in the network, */
/* whichever needs it; for instance all IP routers. */
oms_data_def_entry_insert (category_name, comp_type_ptr->name, comp_type_ptr);

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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