theKernel 10.0
Loading...
Searching...
No Matches
MkKernel_Enum_ATL_API

MkKernel PACKAGE - enum definition … More...

+ Collaboration diagram for MkKernel_Enum_ATL_API:

Functions

static OT_ProcRet atlmkkernel_MkKernel_ErrorE_FromInt (OtClass_ARGS)
  Atl: (static) MkErrorE [MkKernel::ErrorE_FromInt value:int32] C-API
return the MkErrorE from integer …
 
static OT_ProcRet atlmkkernel_MkKernel_IdSE_FromInt (OtClass_ARGS)
  Atl: (static) MkIdSE [MkKernel::IdSE_FromInt value:int32] C-API
return the MkIdSE from integer …
 
static OT_ProcRet atlmkkernel_MkKernel_TimeoutE_FromInt (OtClass_ARGS)
  Atl: (static) MkTimeoutE [MkKernel::TimeoutE_FromInt value:int32] C-API
return the MkTimeoutE from integer …
 
static OT_ProcRet atlmkkernel_MkKernel_TypeE_FromInt (OtClass_ARGS)
  Atl: (static) MkTypeE [MkKernel::TypeE_FromInt value:int32] C-API
return the MkTypeE from integer …
 
static OT_ProcRet atlmkkernel_MkKernel_ErrorE_ToInt (OtClass_ARGS)
  Atl: (static) int32 [MkKernel::ErrorE_ToInt value:MkErrorE] C-API
return the MkErrorE as integer …
 
static OT_ProcRet atlmkkernel_MkKernel_ErrorE_ToString (OtClass_ARGS)
  Atl: (static) string [MkKernel::ErrorE_ToString value:MkErrorE] C-API
return the MkErrorE as string …
 
static OT_ProcRet atlmkkernel_MkKernel_IdSE_ToInt (OtClass_ARGS)
  Atl: (static) int32 [MkKernel::IdSE_ToInt value:MkIdSE] C-API
return the MkIdSE as integer …
 
static OT_ProcRet atlmkkernel_MkKernel_IdSE_ToString (OtClass_ARGS)
  Atl: (static) string [MkKernel::IdSE_ToString value:MkIdSE] C-API
return the MkIdSE as string …
 
static OT_ProcRet atlmkkernel_MkKernel_TimeoutE_ToInt (OtClass_ARGS)
  Atl: (static) int32 [MkKernel::TimeoutE_ToInt value:MkTimeoutE] C-API
return the MkTimeoutE as integer …
 
static OT_ProcRet atlmkkernel_MkKernel_TimeoutE_ToString (OtClass_ARGS)
  Atl: (static) string [MkKernel::TimeoutE_ToString value:MkTimeoutE] C-API
return the MkTimeoutE as string …
 
static OT_ProcRet atlmkkernel_MkKernel_TypeE_ToInt (OtClass_ARGS)
  Atl: (static) int32 [MkKernel::TypeE_ToInt value:MkTypeE] C-API
return the MkTypeE as integer …
 
static OT_ProcRet atlmkkernel_MkKernel_TypeE_ToString (OtClass_ARGS)
  Atl: (static) string [MkKernel::TypeE_ToString value:MkTypeE] C-API
return the MkTypeE as string …
 

Enum From Obj

int atlmkkernel_Get_MkErrorE_FromObj (MK_RT mkrt, OT_ENV_T interp, OT_OBJ_T enumE, enum MkErrorE *ret)
 
int atlmkkernel_Get_MkIdSE_FromObj (MK_RT mkrt, OT_ENV_T interp, OT_OBJ_T enumE, enum MkIdSE *ret)
 
int atlmkkernel_Get_MkTimeoutE_FromObj (MK_RT mkrt, OT_ENV_T interp, OT_OBJ_T enumE, enum MkTimeoutE *ret)
 
int atlmkkernel_Get_MkTypeE_FromObj (MK_RT mkrt, OT_ENV_T interp, OT_OBJ_T enumE, enum MkTypeE *ret)
 

Enum To String

OT_OBJ_T atlmkkernel_MkBoolE_ToString (const enum MkBoolE type)
 
OT_OBJ_T atlmkkernel_MkErrorE_ToString (const enum MkErrorE type)
 
OT_OBJ_T atlmkkernel_MkIdSE_ToString (const enum MkIdSE type)
 
OT_OBJ_T atlmkkernel_MkNativeIsE_ToString (const enum MkNativeIsE type)
 
OT_OBJ_T atlmkkernel_MkTimeoutE_ToString (const enum MkTimeoutE type)
 
OT_OBJ_T atlmkkernel_MkTypeE_ToString (const enum MkTypeE type)
 

Detailed Description

MkKernel PACKAGE - enum definition …

ENUM

Tcl has no build-in-enum-datatyp but theKernel support a enum using the data-type-checking API.

A C-enum like :

will be compiled into a internal tcl-c-check-proc :

int MK(Get_MkTimeoutE_FromObj) (MK_RT_ARGS OT_ENV_T interp, OT_OBJ_T enumE, enum MkTimeoutE *ret) {
const static struct LookupEnumE keys[] = {
{ "MAX" , MK_TIMEOUT_MAX },
{ "LONG" , MK_TIMEOUT_LONG },
{ "INIT" , MK_TIMEOUT_INIT },
{ "USER" , MK_TIMEOUT_USER },
{ "SHORT" , MK_TIMEOUT_SHORT },
{ "NORMAL" , MK_TIMEOUT_NORMAL },
{ "SOCKET" , MK_TIMEOUT_SOCKET },
{ "DEFAULT" , MK_TIMEOUT_DEFAULT },
{ "VERYSHORT" , MK_TIMEOUT_VERYSHORT },
{ "TIMEOUT_MAX" , MK_TIMEOUT_MAX },
{ "TIMEOUT_USER" , MK_TIMEOUT_USER },
{ "TIMEOUT_LONG" , MK_TIMEOUT_LONG },
{ "TIMEOUT_INIT" , MK_TIMEOUT_INIT },
{ "TIMEOUT_SHORT" , MK_TIMEOUT_SHORT },
{ "TIMEOUT_NORMAL" , MK_TIMEOUT_NORMAL },
{ "TIMEOUT_SOCKET" , MK_TIMEOUT_SOCKET },
{ "MK_TIMEOUT_MAX" , MK_TIMEOUT_MAX },
{ "MK_TIMEOUT_USER" , MK_TIMEOUT_USER },
{ "MK_TIMEOUT_LONG" , MK_TIMEOUT_LONG },
{ "MK_TIMEOUT_INIT" , MK_TIMEOUT_INIT },
{ "TIMEOUT_DEFAULT" , MK_TIMEOUT_DEFAULT },
{ "MK_TIMEOUT_SHORT" , MK_TIMEOUT_SHORT },
{ "MK_TIMEOUT_NORMAL" , MK_TIMEOUT_NORMAL },
{ "MK_TIMEOUT_SOCKET" , MK_TIMEOUT_SOCKET },
{ "TIMEOUT_VERYSHORT" , MK_TIMEOUT_VERYSHORT },
{ "MK_TIMEOUT_DEFAULT" , MK_TIMEOUT_DEFAULT },
{ "MK_TIMEOUT_VERYSHORT" , MK_TIMEOUT_VERYSHORT },
{ NULL , 0 },
};
int index;
check_LNG(Tcl_GetIndexFromObjStruct (interp, enumE, &keys,
sizeof(struct LookupClassS), "enum", TCL_EXACT, &index)) return TCL_ERROR;
*ret = keys[index].val;
return TCL_OK;
#define MK(n)
MOX_ENV_T OT_ENV_T
#define check_LNG(code)
MOX_OBJ_T OT_OBJ_T
MkTimeoutE
Predefined Timeout values …
@ MK_TIMEOUT_LONG
long timeout in sec (180 sec) …
@ MK_TIMEOUT_VERYSHORT
very short timeout in sec (5 sec) …
@ MK_TIMEOUT_INIT
maximum timeout in sec (900 sec) …
@ MK_TIMEOUT_MAX
request the maximum possible (infinite) timeout value …
@ MK_TIMEOUT_NORMAL
normal timeout in sec (90 sec) …
@ MK_TIMEOUT_USER
request the user defined timeout value from the –timeout configuration value …
@ MK_TIMEOUT_SOCKET
shorter timeout in sec (10 sec) … This TIMEOUT is used for socket connection with 'connect'
@ MK_TIMEOUT_SHORT
short timeout in sec (20 sec) …
@ MK_TIMEOUT_DEFAULT
request the default timeout value …
#define MK_RT_ARGS
}

to return the integer identifier for an enum-definition-string or an error if string is not valid.

A valid string for an enum-value is any unique abbreviation of the original enum-value:

The tcl-c-check-proc is used in a tcl-c-api-wrapper like :

static OT_ProcRet NS(MkKernel_LogTimeoutE) (OtClass_ARGS) {
OT_SETUP_ONEARG(LogTimeoutE_doc)
OT_CHECK_REQUIRED(OT_CHECK_ENUM (MkTimeoutE,val)) // <- tcl-c-check-proc
OT_retObj_SET_STR(MkLogTimeoutE (val))
goto end;
error:
end:
}
#define OT_SETUP_hdl_static
#define OtClass_ARGS
#define OT_SETUP_ONEARG(d)
#define OT_retObj_SET_Error
#define OT_CHECK_REQUIRED(val)
#define NS(n)
#define OT_CHECK_ENUM(ename, val)
#define OT_retObj_RETURN
#define OT_retObj_SET_STR(nat)
#define OT_CHECK_NOARGS
#define OT_ProcRet

The usage of an enum-value in the tcl-code is quite simple, just use the string.

package require atlmkkernel
puts [ MkKernel::LogTimeoutE TIMEOUT_SOCKET ]

A enum in the Programming-Language-Micro-Kernel (PLMK) is a enum-data-type and 3 enum-access-attributes

  1. ENUM_ToString → return the string-value from the enum-value
  2. ENUM_ToInt → return the integer-value from the enum-value
  3. ENUM_FromInt → create an enum-value from an integer-value.

The enum-data-type and the 3 enum-access-attributes are defined in all target-languages (C,C++,C#,VB.NET,Java,Python,Ruby,Perl,PHP,Tcl or GO).

Function Documentation

◆ atlmkkernel_Get_MkErrorE_FromObj()

int atlmkkernel_Get_MkErrorE_FromObj ( MK_RT mkrt,
OT_ENV_T interp,
OT_OBJ_T enumE,
enum MkErrorE * ret )

Definition at line 1066 of file LibMkKernel_atl.c.

1066 {
1067 const static struct LookupEnumE keys[] = {
1068 { "OK" , MK_OK },
1069 { "MK_OK" , MK_OK },
1070 { "ERROR" , MK_ERROR },
1071 { "CONTINUE" , MK_CONTINUE },
1072 { "MK_ERROR" , MK_ERROR },
1073 { "MK_CONTINUE" , MK_CONTINUE },
1074 { NULL , 0 },
1075 };
1076
1077 int index;
1078 check_LNG(Tcl_GetIndexFromObjStruct (interp, enumE, &keys,
1079 sizeof(struct LookupClassS), "enum", TCL_EXACT, &index)) return TCL_ERROR;
1080 *ret = keys[index].val;
1081 return TCL_OK;
1082}
@ MK_ERROR
(persistent) raise an error-event, the calling-fucntion is interrupted.
@ MK_CONTINUE
(transient) raise an continue-event, the calling-function must handle this.
@ MK_OK
(persistent) everything is OK.

◆ atlmkkernel_Get_MkIdSE_FromObj()

int atlmkkernel_Get_MkIdSE_FromObj ( MK_RT mkrt,
OT_ENV_T interp,
OT_OBJ_T enumE,
enum MkIdSE * ret )

Definition at line 1084 of file LibMkKernel_atl.c.

1084 {
1085 const static struct LookupEnumE keys[] = {
1086 { "UNUSED" , MK_ID_UNUSED },
1087 { "THREAD" , MK_ID_THREAD },
1088 { "PROCESS" , MK_ID_PROCESS },
1089 { "ID_UNUSED" , MK_ID_UNUSED },
1090 { "ID_THREAD" , MK_ID_THREAD },
1091 { "ID_PROCESS" , MK_ID_PROCESS },
1092 { "MK_ID_THREAD" , MK_ID_THREAD },
1093 { "MK_ID_UNUSED" , MK_ID_UNUSED },
1094 { "MK_ID_PROCESS" , MK_ID_PROCESS },
1095 { NULL , 0 },
1096 };
1097
1098 int index;
1099 check_LNG(Tcl_GetIndexFromObjStruct (interp, enumE, &keys,
1100 sizeof(struct LookupClassS), "enum", TCL_EXACT, &index)) return TCL_ERROR;
1101 *ret = keys[index].val;
1102 return TCL_OK;
1103}
@ MK_ID_THREAD
val has a thread handle
@ MK_ID_PROCESS
val has a process handle
@ MK_ID_UNUSED
empty struct

◆ atlmkkernel_Get_MkTimeoutE_FromObj()

int atlmkkernel_Get_MkTimeoutE_FromObj ( MK_RT mkrt,
OT_ENV_T interp,
OT_OBJ_T enumE,
enum MkTimeoutE * ret )

Definition at line 1105 of file LibMkKernel_atl.c.

1105 {
1106 const static struct LookupEnumE keys[] = {
1107 { "MAX" , MK_TIMEOUT_MAX },
1108 { "LONG" , MK_TIMEOUT_LONG },
1109 { "INIT" , MK_TIMEOUT_INIT },
1110 { "USER" , MK_TIMEOUT_USER },
1111 { "SHORT" , MK_TIMEOUT_SHORT },
1112 { "NORMAL" , MK_TIMEOUT_NORMAL },
1113 { "SOCKET" , MK_TIMEOUT_SOCKET },
1114 { "DEFAULT" , MK_TIMEOUT_DEFAULT },
1115 { "VERYSHORT" , MK_TIMEOUT_VERYSHORT },
1116 { "TIMEOUT_MAX" , MK_TIMEOUT_MAX },
1117 { "TIMEOUT_USER" , MK_TIMEOUT_USER },
1118 { "TIMEOUT_LONG" , MK_TIMEOUT_LONG },
1119 { "TIMEOUT_INIT" , MK_TIMEOUT_INIT },
1120 { "TIMEOUT_SHORT" , MK_TIMEOUT_SHORT },
1121 { "TIMEOUT_NORMAL" , MK_TIMEOUT_NORMAL },
1122 { "TIMEOUT_SOCKET" , MK_TIMEOUT_SOCKET },
1123 { "MK_TIMEOUT_MAX" , MK_TIMEOUT_MAX },
1124 { "MK_TIMEOUT_USER" , MK_TIMEOUT_USER },
1125 { "MK_TIMEOUT_LONG" , MK_TIMEOUT_LONG },
1126 { "MK_TIMEOUT_INIT" , MK_TIMEOUT_INIT },
1127 { "TIMEOUT_DEFAULT" , MK_TIMEOUT_DEFAULT },
1128 { "MK_TIMEOUT_SHORT" , MK_TIMEOUT_SHORT },
1129 { "MK_TIMEOUT_NORMAL" , MK_TIMEOUT_NORMAL },
1130 { "MK_TIMEOUT_SOCKET" , MK_TIMEOUT_SOCKET },
1131 { "TIMEOUT_VERYSHORT" , MK_TIMEOUT_VERYSHORT },
1132 { "MK_TIMEOUT_DEFAULT" , MK_TIMEOUT_DEFAULT },
1133 { "MK_TIMEOUT_VERYSHORT" , MK_TIMEOUT_VERYSHORT },
1134 { NULL , 0 },
1135 };
1136
1137 int index;
1138 check_LNG(Tcl_GetIndexFromObjStruct (interp, enumE, &keys,
1139 sizeof(struct LookupClassS), "enum", TCL_EXACT, &index)) return TCL_ERROR;
1140 *ret = keys[index].val;
1141 return TCL_OK;
1142}

◆ atlmkkernel_Get_MkTypeE_FromObj()

int atlmkkernel_Get_MkTypeE_FromObj ( MK_RT mkrt,
OT_ENV_T interp,
OT_OBJ_T enumE,
enum MkTypeE * ret )

Definition at line 1144 of file LibMkKernel_atl.c.

1144 {
1145 const static struct LookupEnumE keys[] = {
1146 { "I8T" , MK_I8T },
1147 { "BOLT" , MK_BOLT },
1148 { "STRT" , MK_STRT },
1149 { "DBLT" , MK_DBLT },
1150 { "LSTT" , MK_LSTT },
1151 { "I32T" , MK_I32T },
1152 { "FLTT" , MK_FLTT },
1153 { "I16T" , MK_I16T },
1154 { "BINT" , MK_BINT },
1155 { "I64T" , MK_I64T },
1156 { "MK_I8T" , MK_I8T },
1157 { "MK_BOLT" , MK_BOLT },
1158 { "MK_STRT" , MK_STRT },
1159 { "MK_DBLT" , MK_DBLT },
1160 { "MK_LSTT" , MK_LSTT },
1161 { "MK_I32T" , MK_I32T },
1162 { "MK_FLTT" , MK_FLTT },
1163 { "MK_I16T" , MK_I16T },
1164 { "MK_BINT" , MK_BINT },
1165 { "MK_I64T" , MK_I64T },
1166 { NULL , 0 },
1167 };
1168
1169 int index;
1170 check_LNG(Tcl_GetIndexFromObjStruct (interp, enumE, &keys,
1171 sizeof(struct LookupClassS), "enum", TCL_EXACT, &index)) return TCL_ERROR;
1172 *ret = keys[index].val;
1173 return TCL_OK;
1174}
@ MK_I8T
Y: 1 byte 'byte' type.
@ MK_I64T
W: 8 byte 'long long int' type.
@ MK_FLTT
F: 4 byte 'float' type.
@ MK_BINT
B: X byte 'byte-array' type.
@ MK_I16T
S: 2 byte 'short' type.
@ MK_BOLT
O: 1 byte 'boolean' type.
@ MK_DBLT
D: 8 byte 'double' type.
@ MK_I32T
I: 4 byte 'int' type.
@ MK_STRT
C: X byte 'string' type (e.g. with a \0 at the end)
@ MK_LSTT
L: X byte 'list' type.

◆ atlmkkernel_MkBoolE_ToString()

OT_OBJ_T atlmkkernel_MkBoolE_ToString ( const enum MkBoolE type)

Definition at line 1552 of file LibMkKernel_atl.c.

1553{
1554 switch (type) {
1555 case MK_NO : return ot_fixstrobj("NO" ) ;
1556 case MK_YES : return ot_fixstrobj("YES") ;
1557 }
1558 return ot_fixstrobj("NOTHING");
1559}
#define ot_fixstrobj(_s)
@ MK_YES
boolean YES
@ MK_NO
boolean NO

◆ atlmkkernel_MkErrorE_ToString()

OT_OBJ_T atlmkkernel_MkErrorE_ToString ( const enum MkErrorE type)

Definition at line 1561 of file LibMkKernel_atl.c.

1562{
1563 switch (type) {
1564 case MK_OK : return ot_fixstrobj("OK" ) ;
1565 case MK_CONTINUE : return ot_fixstrobj("CONTINUE") ;
1566 case MK_ERROR : return ot_fixstrobj("ERROR" ) ;
1567 }
1568 return ot_fixstrobj("NOTHING");
1569}

◆ atlmkkernel_MkIdSE_ToString()

OT_OBJ_T atlmkkernel_MkIdSE_ToString ( const enum MkIdSE type)

Definition at line 1571 of file LibMkKernel_atl.c.

1572{
1573 switch (type) {
1574 case MK_ID_UNUSED : return ot_fixstrobj("UNUSED" ) ;
1575 case MK_ID_PROCESS : return ot_fixstrobj("PROCESS") ;
1576 case MK_ID_THREAD : return ot_fixstrobj("THREAD" ) ;
1577 }
1578 return ot_fixstrobj("NOTHING");
1579}

◆ atlmkkernel_MkKernel_ErrorE_FromInt()

static OT_ProcRet atlmkkernel_MkKernel_ErrorE_FromInt ( OtClass_ARGS )
static

Atl: (static) MkErrorE [MkKernel::ErrorE_FromInt value:int32] C-API
return the MkErrorE from integer …

Definition at line 1638 of file LibMkKernel_atl.c.

1638 {
1641 MK_I32 value = 0;
1644 enum MkErrorE value_out;
1645 MkErrorC_Check(MK_ERROR_FORMAT,MkErrorE_FromInt (value, &value_out));
1646 OT_retObj_SET(OT_NEW_Mk_enum_OBJ(ErrorE,value_out));
1647 goto end;
1648 error:
1650 end:
1652}
#define ErrorE_FromInt_doc
#define OT_CHECK_NI4(val)
#define OT_NEW_Mk_enum_OBJ(typ, val)
#define OT_retObj_SET(val)
#define MkErrorC_Check(mng, PROC)
#define MK_ERROR_FORMAT
enum MkErrorE MkErrorE_FromInt(MK_I32 const value, enum MkErrorE *value_out)
return the MkErrorE from integer …
MkErrorE
collection for the different error-codes …
signed int MK_I32
4 byte integer data-type

◆ atlmkkernel_MkKernel_ErrorE_ToInt()

static OT_ProcRet atlmkkernel_MkKernel_ErrorE_ToInt ( OtClass_ARGS )
static

Atl: (static) int32 [MkKernel::ErrorE_ToInt value:MkErrorE] C-API
return the MkErrorE as integer …

Definition at line 1708 of file LibMkKernel_atl.c.

1708 {
1711 enum MkErrorE value = 0;
1715 goto end;
1716 error:
1718 end:
1720}
#define ErrorE_ToInt_doc
#define OT_retObj_SET_I32(nat)
static MK_I32 MkErrorE_ToInt(enum MkErrorE value)
return the MkErrorE as integer …

◆ atlmkkernel_MkKernel_ErrorE_ToString()

static OT_ProcRet atlmkkernel_MkKernel_ErrorE_ToString ( OtClass_ARGS )
static

Atl: (static) string [MkKernel::ErrorE_ToString value:MkErrorE] C-API
return the MkErrorE as string …

Definition at line 1723 of file LibMkKernel_atl.c.

1723 {
1726 enum MkErrorE value = 0;
1730 goto end;
1731 error:
1733 end:
1735}
#define ErrorE_ToString_doc
MK_STRN MkErrorE_ToString(enum MkErrorE value)
return the MkErrorE as string …

◆ atlmkkernel_MkKernel_IdSE_FromInt()

static OT_ProcRet atlmkkernel_MkKernel_IdSE_FromInt ( OtClass_ARGS )
static

Atl: (static) MkIdSE [MkKernel::IdSE_FromInt value:int32] C-API
return the MkIdSE from integer …

Definition at line 1655 of file LibMkKernel_atl.c.

1655 {
1658 MK_I32 value = 0;
1661 enum MkIdSE value_out;
1662 MkErrorC_Check(MK_ERROR_FORMAT,MkIdSE_FromInt (value, &value_out));
1663 OT_retObj_SET(OT_NEW_Mk_enum_OBJ(IdSE,value_out));
1664 goto end;
1665 error:
1667 end:
1669}
#define IdSE_FromInt_doc
enum MkErrorE MkIdSE_FromInt(MK_I32 const value, enum MkIdSE *value_out)
return the MkIdSE from integer …
MkIdSE
signal type of the MkIdS data val …

◆ atlmkkernel_MkKernel_IdSE_ToInt()

static OT_ProcRet atlmkkernel_MkKernel_IdSE_ToInt ( OtClass_ARGS )
static

Atl: (static) int32 [MkKernel::IdSE_ToInt value:MkIdSE] C-API
return the MkIdSE as integer …

Definition at line 1738 of file LibMkKernel_atl.c.

1738 {
1741 enum MkIdSE value = 0;
1745 goto end;
1746 error:
1748 end:
1750}
#define IdSE_ToInt_doc
static MK_I32 MkIdSE_ToInt(enum MkIdSE value)
return the MkIdSE as integer …

◆ atlmkkernel_MkKernel_IdSE_ToString()

static OT_ProcRet atlmkkernel_MkKernel_IdSE_ToString ( OtClass_ARGS )
static

Atl: (static) string [MkKernel::IdSE_ToString value:MkIdSE] C-API
return the MkIdSE as string …

Definition at line 1753 of file LibMkKernel_atl.c.

1753 {
1756 enum MkIdSE value = 0;
1760 goto end;
1761 error:
1763 end:
1765}
#define IdSE_ToString_doc
MK_STRN MkIdSE_ToString(enum MkIdSE value)
return the MkIdSE as string …

◆ atlmkkernel_MkKernel_TimeoutE_FromInt()

static OT_ProcRet atlmkkernel_MkKernel_TimeoutE_FromInt ( OtClass_ARGS )
static

Atl: (static) MkTimeoutE [MkKernel::TimeoutE_FromInt value:int32] C-API
return the MkTimeoutE from integer …

Definition at line 1672 of file LibMkKernel_atl.c.

1672 {
1675 MK_I32 value = 0;
1678 enum MkTimeoutE value_out;
1680 OT_retObj_SET(OT_NEW_Mk_enum_OBJ(TimeoutE,value_out));
1681 goto end;
1682 error:
1684 end:
1686}
#define TimeoutE_FromInt_doc
enum MkErrorE MkTimeoutE_FromInt(MK_I32 const value, enum MkTimeoutE *value_out)
return the MkTimeoutE from integer …

◆ atlmkkernel_MkKernel_TimeoutE_ToInt()

static OT_ProcRet atlmkkernel_MkKernel_TimeoutE_ToInt ( OtClass_ARGS )
static

Atl: (static) int32 [MkKernel::TimeoutE_ToInt value:MkTimeoutE] C-API
return the MkTimeoutE as integer …

Definition at line 1768 of file LibMkKernel_atl.c.

1768 {
1771 enum MkTimeoutE value = 0;
1775 goto end;
1776 error:
1778 end:
1780}
#define TimeoutE_ToInt_doc
static MK_I32 MkTimeoutE_ToInt(enum MkTimeoutE value)
return the MkTimeoutE as integer …

◆ atlmkkernel_MkKernel_TimeoutE_ToString()

static OT_ProcRet atlmkkernel_MkKernel_TimeoutE_ToString ( OtClass_ARGS )
static

Atl: (static) string [MkKernel::TimeoutE_ToString value:MkTimeoutE] C-API
return the MkTimeoutE as string …

Definition at line 1783 of file LibMkKernel_atl.c.

1783 {
1786 enum MkTimeoutE value = 0;
1790 goto end;
1791 error:
1793 end:
1795}
#define TimeoutE_ToString_doc
MK_STRN MkTimeoutE_ToString(enum MkTimeoutE value)
return the MkTimeoutE as string …

◆ atlmkkernel_MkKernel_TypeE_FromInt()

static OT_ProcRet atlmkkernel_MkKernel_TypeE_FromInt ( OtClass_ARGS )
static

Atl: (static) MkTypeE [MkKernel::TypeE_FromInt value:int32] C-API
return the MkTypeE from integer …

Definition at line 1689 of file LibMkKernel_atl.c.

1689 {
1692 MK_I32 value = 0;
1695 enum MkTypeE value_out;
1696 MkErrorC_Check(MK_ERROR_FORMAT,MkTypeE_FromInt (value, &value_out));
1697 OT_retObj_SET(OT_NEW_Mk_enum_OBJ(TypeE,value_out));
1698 goto end;
1699 error:
1701 end:
1703}
#define TypeE_FromInt_doc
enum MkErrorE MkTypeE_FromInt(MK_I32 const value, enum MkTypeE *value_out)
return the MkTypeE from integer …
MkTypeE
basic data-types supported by Programming-Language-Micro-Kernel (PLMK) …

◆ atlmkkernel_MkKernel_TypeE_ToInt()

static OT_ProcRet atlmkkernel_MkKernel_TypeE_ToInt ( OtClass_ARGS )
static

Atl: (static) int32 [MkKernel::TypeE_ToInt value:MkTypeE] C-API
return the MkTypeE as integer …

Definition at line 1798 of file LibMkKernel_atl.c.

1798 {
1801 enum MkTypeE value = 0;
1805 goto end;
1806 error:
1808 end:
1810}
#define TypeE_ToInt_doc
static MK_I32 MkTypeE_ToInt(enum MkTypeE value)
return the MkTypeE as integer …

◆ atlmkkernel_MkKernel_TypeE_ToString()

static OT_ProcRet atlmkkernel_MkKernel_TypeE_ToString ( OtClass_ARGS )
static

Atl: (static) string [MkKernel::TypeE_ToString value:MkTypeE] C-API
return the MkTypeE as string …

Definition at line 1813 of file LibMkKernel_atl.c.

1813 {
1816 enum MkTypeE value = 0;
1820 goto end;
1821 error:
1823 end:
1825}
#define TypeE_ToString_doc
MK_STRN MkTypeE_ToString(enum MkTypeE value)
return the MkTypeE as string …

◆ atlmkkernel_MkNativeIsE_ToString()

OT_OBJ_T atlmkkernel_MkNativeIsE_ToString ( const enum MkNativeIsE type)

Definition at line 1581 of file LibMkKernel_atl.c.

1582{
1583 switch (type) {
1584 case MK_NATIVE_IS_INITIAL : return ot_fixstrobj("INITIAL") ;
1585 case MK_NATIVE_IS_STRING : return ot_fixstrobj("STRING" ) ;
1586 case MK_NATIVE_IS_LITTLE : return ot_fixstrobj("LITTLE" ) ;
1587 case MK_NATIVE_IS_BIG : return ot_fixstrobj("BIG" ) ;
1588 }
1589 return ot_fixstrobj("NOTHING");
1590}
@ MK_NATIVE_IS_INITIAL
0 = initial value
@ MK_NATIVE_IS_STRING
S = using of the string protocol.
@ MK_NATIVE_IS_LITTLE
L = using if the binary protocoll, data in little-edian.
@ MK_NATIVE_IS_BIG
B = using if the binary protocoll, data in big-endian.

◆ atlmkkernel_MkTimeoutE_ToString()

OT_OBJ_T atlmkkernel_MkTimeoutE_ToString ( const enum MkTimeoutE type)

Definition at line 1592 of file LibMkKernel_atl.c.

1593{
1594 switch (type) {
1595 case MK_TIMEOUT_INIT : return ot_fixstrobj("INIT" ) ;
1596 case MK_TIMEOUT_LONG : return ot_fixstrobj("LONG" ) ;
1597 case MK_TIMEOUT_NORMAL : return ot_fixstrobj("NORMAL" ) ;
1598 case MK_TIMEOUT_SHORT : return ot_fixstrobj("SHORT" ) ;
1599 case MK_TIMEOUT_SOCKET : return ot_fixstrobj("SOCKET" ) ;
1600 case MK_TIMEOUT_VERYSHORT : return ot_fixstrobj("VERYSHORT") ;
1601 case MK_TIMEOUT_DEFAULT : return ot_fixstrobj("DEFAULT" ) ;
1602 case MK_TIMEOUT_USER : return ot_fixstrobj("USER" ) ;
1603 case MK_TIMEOUT_MAX : return ot_fixstrobj("MAX" ) ;
1604 }
1605 return ot_fixstrobj("NOTHING");
1606}

◆ atlmkkernel_MkTypeE_ToString()

OT_OBJ_T atlmkkernel_MkTypeE_ToString ( const enum MkTypeE type)

Definition at line 1608 of file LibMkKernel_atl.c.

1609{
1610 switch (type) {
1611 case MK_I8T : return ot_fixstrobj("I8T" ) ;
1612 case MK_BOLT : return ot_fixstrobj("BOLT") ;
1613 case MK_I16T : return ot_fixstrobj("I16T") ;
1614 case MK_I32T : return ot_fixstrobj("I32T") ;
1615 case MK_FLTT : return ot_fixstrobj("FLTT") ;
1616 case MK_I64T : return ot_fixstrobj("I64T") ;
1617 case MK_DBLT : return ot_fixstrobj("DBLT") ;
1618 case MK_BINT : return ot_fixstrobj("BINT") ;
1619 case MK_STRT : return ot_fixstrobj("STRT") ;
1620 case MK_LSTT : return ot_fixstrobj("LSTT") ;
1621 }
1622 return ot_fixstrobj("NOTHING");
1623}