edmiGetModelRepository

edmiGetModelRepository

EdmiError edmiGetModelRepository(SdaiModel model, SdaiRepository *repository);

Returns the numeric repository ID that uniquely identifies the repository in the EDMdatabase that contains the specified model.

Arguments


Type

Name

Comment

SdaiModel

model

A numeric modelID that uniquely identifies the model of interest in the EDMdatabase. The modelID is returned from the functions: sdaiCreateModel , sdaiCreateModelBN , sdaiOpenModelBN , edmiGetModel , edmiGetModelBN , sdaiGetInstanceModel

SdaiRepository

repository

Address of the variable that will receive the numeric repository ID that uniquely identifies the repository in the EDMdatabase that contains the specified model.

Return Value


Options


 

Example


 

SdaiModel model; SdaiRepository repository; EdmiError rstat; . . . if (rstat = edmiGetModelRepository (model, &repository)) { /* Error in operation */ printf("\nError: %s in edmiGetModelRepository\n", edmiGetErrorText(rstat)); goto error; } printf ("\nModel: %lu is located in repository: %lu", model, repository); . . .

 

See also