oms_data_def_entry_insert()

Abstract

Creates a database entry (entry_name) under the category (category_name).

Syntax

oms_data_def_entry_insert (category_name, entry_name, entry_ds_ptr)

Argument Type Description
category_name char * Category name of interest. If the category does not exist, it is created. This means that the caller code does not need to create the category.
entry_name char * Name of entry to be inserted. If the entry already exists, the data is overwritten.
entry_ds_ptr void * Generic data structure pointer stored under the entry name.

Return Type

void

No return value.

Details

See oms_data_def_entry_access().

Example

Excerpt from function block of ip_attribute_definer process model

/* 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