Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »


 
Deletes the content of the specified model, i.e., the actual model will have exactly the same contents after this function is executed as immediately after the model is created by any of the following operations: sdaiCreateModel , sdaiCreateModelBN , edmiCreateModel or edmiCreateModelBN.
This function is only applicable to data models.
The actual data model must be open for write access before this command can be successfully executed.
Related functions: edmiDeleteModelContents , sdaiCreateModel , sdaiCreateModelBN , edmiCreateModel , edmiCreateModelBN , sdaiDeleteModel , edmiDeleteModel , edmiDeleteModelBN .
Header:
#include "sdai.h"
Prototype:
EdmiError edmiDeleteModelContentsBN(SdaiString repositoryName,
                                     SdaiString modelName); 
Arguments:

repositoryName

Specifies the name of the data repository that hosts the data model to delete the contents of. Repository names are case sensitive.

modelName

Specifies the name of the model to delete the contents of. Model names are case sensitive. A model name is unique in a repository, hence the combination of the arguments <repositoryName> and <modelName> uniquely identifies a model in an EDMdatabase.

Returns:
A completion code of datatype EdmiError is the returned function value. The completion code has the following values:
Completion code = 0 : Operation successfully performed.
Completion code != 0: Error in operation. Completion code is an EDMinterface error code. Use edmiGetErrorText to get the error text corresponding to the error code.
EXAMPLE
EdmiError rstat;
SdaiModel model;
...
if (rstat = edmiDeleteModelContentsBN ("DataRepository",
"Bumper_AAXC956H")) { 
/* Error in operation */ 
printf("\nError in edmiDeleteModelContentsBN: %s\n", 
edmiGetErrorText(rstat)); 
goto error; 
}
. . .

  • No labels