Ema_Model_Read()
Abstract
Reads in the specified Riverbed model file, creating a new model that can be manipulated within EMA.
Syntax
Ema_Model_Read (model_type, model_name)
| Argument | Type | Description |
|---|---|---|
model_type |
EmaT_Model_Type |
model type code |
model_name |
char* |
base name of model file to be read [This name references an Riverbed model file that will be read in from a 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_Model_Id
numeric model ID of the new model
[The special value represented by the symbolic constant EMAC_NULL_MOD_ID will be returned if the read operation fails.]
Header
ema.h
Details
This function implements the read operator for models. If the specified model file is not found, an error will occur within the function and will be handled according to the current EMA error mode.