Ets_Shape_Attr_Get()

Note: Requires OPNET Development Kit

Abstract

Returns the value of an attribute.

Syntax

Ets_Shape_Attr_Get (shape_hndl, attr_name, 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 get.
attr_value void * Pointer to a memory location to hold the attribute value.

Return Type

EtsT_Compcode

EtsC_Compcode_Success, or EtsC_Compcode_Failure if the shape has no value associated with the requested attribute name.

ets_api_shapeset.h

Details

The memory location pointed to by attr_value must be large enough to hold the requested value. If necessary, use Ets_Shape_Attr_Type_Get() to determine the attribute type before allocating the memory.

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