edmiMoveModel
EdmiError edmiMoveModel(SdaiModel modelId, SdaiRepository repositoryId);
Moves the specified data model to the specified repository. The specified data model must be closed before this operation can be successfully performed. The source repository must be open and the target repository must be open for write access, before this function can be successfully performed.
Arguments
Type | Name | Comment |
SdaiModel | modelId | A numeric modelID that uniquely identifies the data model of interest in the EDMdatabase. The modelID is returned from the functions: sdaiCreateModel , sdaiCreateModelBN , sdaiOpenModelBN , edmiGetModel , edmiGetModelBN , sdaiGetInstanceModel |
SdaiRepository | repositoryId | A numeric repositoryID that uniquely identifies the target repository . The repositoryID is returned by the following operations: sdaiOpenRepository , sdaiOpenRepositoryBN ,edmiOpenRepository , edmiOpenRepositoryBN , edmiGetRepository. |
Return Value
Options
Â
Example
Â
 SdaiRepository repositoryId; SdaiModel modelId; EdmiError rstat; . . . if (rstat = edmiMoveModel (modelId, repositoryId)) { /* Error in operation */ printf("\nError: %s in edmiMoveModel \n", edmiGetErrorText(rstat)); goto error; } . . .
Â
See also
Filter by label
There are no items with the selected labels at this time.
Â