edmiChangeOpenMode


 

EdmiError edmiChangeOpenMode(SdaiInstance   currInst,
                             SdaiAccessMode openMode);


Changes a models or a repository open mode.  Use this function to avoid flushing data to the file system when working with big models.

Arguments


TypeNameComment
SdaiInstance

CurrInst

A numeric instanceID that identifies a model or a repository in the EDMdatabase for which open mode is to be changed.

SdaiAccessMode

OpenMode

The new open mode of the model or repository. Valid modes are: sdaiRO, sdaiRW, sdaiERW and sdaiNOACCESS

Return Value


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_EDMInterface'.

 

Options


  

 

Example


 

EdmiError rstat;
 SdaiModel modelId;
 SdaiAccessMode openMode;
 . . .
 edmiGetModelOpenMode(modelId, &openMode);
 if (openMode != sdaiRW && openMode != sdaiERW) {
 if (rstat = edmiChangeOpenMode(modelId, sdaiRW)) {
 printf("\nERROR in edmiChangeOpenMode(): %s"  
 edmiGetErrorText(rstat)); 
 } 
 }

 

See also

Filter by label

There are no items with the selected labels at this time.