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 Current »


This function is used for obtaining the encoding for a given model.
Header:
#include "sdai.h"
Prototype:
EdmiError edmiGetModelStringEncoding  (SdaiServerContext  serverContextId,
                                                                  SdaiModel              modelId,
                                                                  SdaiInteger            *stringEncoding,
                                                                  SdaiInvocationId    *edmiInvocationId);
Arguments:

serverContextId

Remote Server Context

modelId

A numeric modelID that uniquely identifies the model that holds the instances to be validated.
The modelID is returned from the functions: sdaiCreateModel , sdaiCreateModelBN , sdaiOpenModelBN, edmiGetModel , edmiGetModelBN , sdaiGetInstanceModel

stringEncoding

CHAR_ENCODING_UTF-8
CHAR_ENCODING_UTF-16
CHAR_ENCODING_ISO-10646-UCS-2
CHAR_ENCODING_ISO-10646-UCS-4
CHAR_ENCODING_ISO-LATIN-1
CHAR_ENCODING_ISO-LATIN-2
CHAR_ENCODING_ISO-8859-3
CHAR_ENCODING_ISO-8859-4
CHAR_ENCODING_ISO-8859-5
CHAR_ENCODING_ISO-8859-6
CHAR_ENCODING_ISO-8859-7
CHAR_ENCODING_ISO-8859-8
CHAR_ENCODING_ISO-8859-9
CHAR_ENCODING_ISO-2022-JP
CHAR_ENCODING_SHIFT_JIS
CHAR_ENCODING_EUC-JP

edmiInvocationId

When the edmiInvocationId is specified, the actual operation will be asynchronous and a handle (identifier) of the call will be returned in the edmiInvocationId argument.
This handle can be used in later operations for requesting the status (waiting, running, finished ..) and the result of the actual operation.

 
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

  • No labels