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

Version 1 Next »


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,
 i.e., to show (to mark) the start and end of 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.
This list will be in comments.

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.
The resulting longForm file will only content the "SHORT_FORM_FILE_NAMES_LIST", i.e. the same list as produced by the
INSERT_SHORT_FORM_FILE_NAMES_LIST  options.

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
will be in XML format, i.e., to be more easily handeled by applications (X-IDE)

 
 
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.

  • No labels