Ema_Model_Write()

Abstract

Writes the specified EMA model out as a model file within the primary model directory.

Syntax

Ema_Model_Write (model_id, model_name)
Argument Type Description
model_id EmaT_Model_Id numeric model ID of the model-of-interest [This value is a numeric identifier that references a model. Use the functions Ema_Model_Create(), Ema_Model_Copy(), or Ema_Model_Read() to obtain a model ID.]
model_name char* base name of model file to be written [This name references an Riverbed model file that will be written to the primary model directory; the path to the file and the file type suffix should not be included in this argument, since they will be automatically appended to generate the full file path.]

Return Type

EmaT_Compcode

Completion code indicating whether the write operation completed successfully

[This code can be compared to the two symbolic constants EMAC_COMPCODE_SUCCESS and EMAC_COMPCODE_FAILURE.]

ema.h

Details

This function implements the write operator for models. If the specified model file cannot be written, an error will occur within the function and will be handled according to the current EMA error mode.

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