This function makes a long form schema from the specified EDMcompilerProject file specified in the parameter "expressXprojectFile". The resulting long form schema will be written to the file specified in the "expressXlongFormFile" parameter. See also EDMcompilerProject, EDMcompiler directives
Header:
#include "sdai.h"
Prototype:
edmiMakeExpressXlongForm (SdaiInteger schemaType,
SdaiString expressXprojectFile,
SdaiString diagnosticFile,
SdaiInteger options,
SdaiString expressXlongFormFile);
Arguments:
Argument NameDefinition
schemaTypeMust be one of the following:
•MAPPING_SCHEMA_TYPE (alias is: EXPRESS_X_SCHEMA_TYPE)
•QUERY_SCHEMA_TYPE
•RULE_SCHEMA_TYPE
expressXprojectFileThe EDMcompilerProject file.
diagnosticFileThe file name for the diagnostic file
optionssee below
expressXlongFormFileThe resulting long form schema file
Options: Descriptions:
INSERT_FILE_BEGINNING_ENDING_MARK |
The resulting longForm file will contain a "FILE_BEGINNING" and a "FILE_END" mark as comment for each shortForm file, |
INSERT_LONG_FORM_LINE_NUMBERS |
The resulting longForm file will have line numbers as comment |
INSERT_SHORT_FORM_LINE_NUMBERS |
The resulting longForm file will have line numbers starting from line number 1 for each shortForm file. |
INSERT_SHORT_FORM_FILE_NAMES_LIST |
The resulting longForm file will have a an ordered list of all shortFiles that constitutes the longForm file. |
INSERT_PROJECT_FILE |
The actual project file will be listed as comments in the beginning of the resulting longForm file. |
MAKE_SHORT_FORM_FILE_NAMES_LIST |
When this option is enabled, all other options will be overruled, i.e. they will have no effect. |
DIAGNOSTICS_IN_XML_FORMAT |
The actual dignosticFile will be in XML format that is specified by the X-IDE application. |
GET_METHODS_SIGNATURE |
Only valid for EDM internal use. |
METHODS_SIGNATURE_IN_XML |
Used in the edmiGetSourceMethodSignatures() and edmiRemoteGetSourceMethodSignatures() to specify that the resulting method signatures |
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.