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

« Previous Version 2 Next »


 
Returns the numeric schemaID that uniquely identifies the schema definition instance, i.e. the instance that defines the specified Express schema in the EDMdatabase. The schema definition instance is located in the dictionary model that defines the specified Express schema in the EDMdatabase.
EXPRESS:

 
Related functions: edmiDefineSchema , edmiDeleteSchema
Header:
#include "sdai.h"
Prototype:
EdmiError edmiGetSchema(SdaiString schemaName,
                         SdaiSchema *schemaId); 
Arguments:

schemaName

Specifies the name of Express schema of interest. This Express schema must exist as a dictionary model in the EDMdatabase. Schema names are case insensitive. Schema names are unique in an EDMdatabase.

schemaId

Address of the variable that will receive the numeric schemaID that uniquely identifies the schema definition instance in the EDMdatabase that defines the specified Express schema.

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
SdaiSchema schemaId;
EdmiError rstat;
. . .
if (rstat = edmiGetSchema ("ifc151", &schemaId)) {
/* Error in operation */ 
printf("\nError: %s in edmiGetSchema\n", 
edmiGetErrorText(rstat)); 
goto error; 
}
printf ("\nSchemaId: %lu", schemaId);
. . .

  • No labels