edmiGetRepositoryOpenMode
EdmiError edmiGetRepositoryOpenMode (SdaiRepository repository, SdaiAccessMode *mode);
Returns the current open mode, i.e. the current access rights to the specified repository.
Arguments
Type | Name | Comment |
SdaiRepository | repository | A numeric repositoryID that uniquely identifies the repository in the EDMdatabase . |
SdaiAccessMode | mode | Address of the variable that will receive the current open mode of the specified repository.The possible returned values are:
|
Return Value
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_EDMInterface'.
Options
Â
Example
Â
 SdaiRepository repository; SdaiAccessMode mode; EdmiError rstat; . . . if (rstat = edmiGetRepositoryOpenMode (repository, &mode)) { /* Error in operation */ printf("\nError: %s in edmiGetRepositoryOpenMode\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
There are no items with the selected labels at this time.
Â