Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagecpp
themeConfluence
EdmiError edmiGetModelOpenMode(SdaiModel      model,
                                SdaiAccessMode *mode);

Returns the current open mode, i.e. the current access rights to the specified model.

...

Arguments

...


TypeNameComment
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

SdaiAccessMode

mode

Address of the variable that will receive the current open mode of the specified model.

...

The possible returned values are:

  • sdaiRO  - model open for read only access.
  • sdaiRW  - model open for read and write access.
  • sdaiNOACCESS - model is closed, no access to the model is permitted.

Return Value

...

Insert excerpt
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

Options

...

 

Example

...

 

Code Block
languagecpp
 SdaiModel model;
 SdaiAccessMode mode;
 EdmiError rstat;
 . . .
 if (rstat = edmiGetModelOpenMode(model, &mode)) {
 /* Error in operation */ 
 printf("\nError: %s in edmiGetModelOpenMode\n",

...

 
 edmiGetErrorText(rstat));

...

 
 goto error;

...

 
 }
 switch (mode) {

...


 case sdaiRO:

...

 
 . . . /* READ ONLY access */

...

 
 break;

...

 
 case sdaiRW:

...

 
 . . . /* READ and WRITE access */

...

 
 break;

...

 
 case sdaiNOACCESS:

...

 
 . . . /* No access, i.e., model is closed */

...

 
 break;

...

 
 default:

...

 
 /* unknown value */

...

 
 }
 . . .

 

See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "model" and parent = "6062220"