Returns the numeric schemaMapID that uniquely identifies the schema_map_definition instance, i.e. the instance that defines the specified Express-X schema in the EDMdatabase. The schema_map_definition instance is located in the EXPRESS-X dictionary model that defines the specified Express-X schema in the EDMdatabase.
EXPRESS:
ENTITY schema_map;
name : STRING;
entities : SET OF entity_definition;
types : SET OF defined_type;
global_rules : SET OF global_rule;
user_constants : SET OF user_constant;
user_functions : SET OF user_function;
user_procedures : SET OF user_procedure;
source_schemas : SET OF schema_instance;
target_schema : schema_instance;
map_declarations : LIST OF map;
compose_declarations : LIST OF compose;
statements_declarations : LIST OF statements;
copy_model_declaration : OPTIONAL copy_model;
global_variables : OPTIONAL algorithm_head;
declarations : LIST OF DECLARATIONS;
named_instances : SET OF instance;
any_from_with_subtype : OPTIONAL BOOLEAN;
used_built_in_functions : OPTIONAL SET OF INTEGER;
END_ENTITY;
Related functions: edmiDefineSchemaMap , edmiDeleteSchemaMap
Header:
#include "sdai.h"
Prototype:
EdmiError edmiGetSchemaMap(SdaiString schemaMapName,
SdaiSchemaMap *schemaMapId);
Arguments:
schemaMapName |
Specifies the name of Express-X schema of interest. This Express-X schema must exist as an EXPRESS-X dictionary model in the EDMdatabase. Express-X schema names are case insensitive. Express-X schema names are unique in an EDMdatabase. |
schemaMapId |
Address of the variable that will receive the numeric schemaMapID that uniquely identifies the schema_map_definition instance in the EDMdatabase that defines the specified Express-X 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
SdaiSchemaMap schemaMapId;
EdmiError rstat;
. . .
if (rstat = edmiGetSchemaMap("PDM2MetaPhase", &schemaMapId)) {
/* Error in operation */
printf("\nError: %s in edmiGetSchemaMap\n",
edmiGetErrorText(rstat));
goto error;
}
printf ("\nSchemaMapId: %lu", schemaMapId);
. . .