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  (SdaiMode         modelId,
                                                                SdaiInteger       *stringEncoding);
Arguments:

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

 
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