Ets_Shape_Attr_Add()

Note: Requires OPNET Development Kit

Abstract

Adds or updates an attribute on a shape.

Syntax

Ets_Shape_Attr_Add (shape_hndl, attr_name, attr_type, attr_value)
Argument Type Description
shape_hndl EtsT_Shape_Handle Handle to the shape of interest.
attr_name const char * The name of the attribute to add.
attr_type EtsT_Attr_Type The type of the attribute to add (use the attribute type constants in Table 26).
attr_value const void * Pointer to the attribute value.

Return Type

EtsT_Compcode

EtsC_Compcode_Success or EtsC_Compcode_Failure.

ets_api_shapeset.h

Details

This function adds an attribute of the given name and type to the specified shape. If the attribute already exists, the function replaces the type and value of the existing attribute with those specified by attr_type and attr_value.

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