Ets_Ma_Block_Read()

Note: Requires OPNET Development Kit

Abstract

Provides a mechanism for extracting the relevant information from an assistant file.

Syntax

Ets_Ma_Block_Read (filename, block_name, name_value_lptr)
Argument Type Description
filename const char* Name of the model assistant file
block_name const char* Name of the block within the assistant file
name_value_lptr PrgT_List* Pointer to a name/value list.

Return Type

EtsT_Compcode

ets_api_ma.h

Details

This function does the following:

  1. Reads the contents of all blocks in the file with the specified block name.
  2. Creates a list of name-value pairs, which are of type PrgT_File_Parse_Name_Value_Pair*.
  3. Appends this list to the list referenced by the <name_value_lptr> argument. You should initialize <name_value_lptr> before you pass it to this function.

To extract the same block from multiple files and create one list of block data, call this function with multiple files and the same list pointer.

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