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
Header
ets_api_ma.h
Details
This function does the following:
- Reads the contents of all blocks in the file with the specified block name.
- Creates a list of name-value pairs, which are of type
PrgT_File_Parse_Name_Value_Pair*. - 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.