theKernel 10.0
Loading...
Searching...
No Matches
MkKernel_Enum_PY_API

MkKernel PACKAGE - enum definition … More...

+ Collaboration diagram for MkKernel_Enum_PY_API:

Functions

static OT_ProcRet pymkkernel_MkKernel_ErrorE_FromInt (OtClass_ARGS)
  Python: [static] MkErrorE ErrorE_FromInt(value:int32) C-API
return the MkErrorE from integer …
 
static OT_ProcRet pymkkernel_MkKernel_IdSE_FromInt (OtClass_ARGS)
  Python: [static] MkIdSE IdSE_FromInt(value:int32) C-API
return the MkIdSE from integer …
 
static OT_ProcRet pymkkernel_MkKernel_TimeoutE_FromInt (OtClass_ARGS)
  Python: [static] MkTimeoutE TimeoutE_FromInt(value:int32) C-API
return the MkTimeoutE from integer …
 
static OT_ProcRet pymkkernel_MkKernel_TypeE_FromInt (OtClass_ARGS)
  Python: [static] MkTypeE TypeE_FromInt(value:int32) C-API
return the MkTypeE from integer …
 
static OT_ProcRet pymkkernel_MkKernel_ErrorE_ToInt (OtClass_ARGS)
  Python: [static] int32 ErrorE_ToInt(value:MkErrorE) C-API
return the MkErrorE as integer …
 
static OT_ProcRet pymkkernel_MkKernel_ErrorE_ToString (OtClass_ARGS)
  Python: [static] string ErrorE_ToString(value:MkErrorE) C-API
return the MkErrorE as string …
 
static OT_ProcRet pymkkernel_MkKernel_IdSE_ToInt (OtClass_ARGS)
  Python: [static] int32 IdSE_ToInt(value:MkIdSE) C-API
return the MkIdSE as integer …
 
static OT_ProcRet pymkkernel_MkKernel_IdSE_ToString (OtClass_ARGS)
  Python: [static] string IdSE_ToString(value:MkIdSE) C-API
return the MkIdSE as string …
 
static OT_ProcRet pymkkernel_MkKernel_TimeoutE_ToInt (OtClass_ARGS)
  Python: [static] int32 TimeoutE_ToInt(value:MkTimeoutE) C-API
return the MkTimeoutE as integer …
 
static OT_ProcRet pymkkernel_MkKernel_TimeoutE_ToString (OtClass_ARGS)
  Python: [static] string TimeoutE_ToString(value:MkTimeoutE) C-API
return the MkTimeoutE as string …
 
static OT_ProcRet pymkkernel_MkKernel_TypeE_ToInt (OtClass_ARGS)
  Python: [static] int32 TypeE_ToInt(value:MkTypeE) C-API
return the MkTypeE as integer …
 
static OT_ProcRet pymkkernel_MkKernel_TypeE_ToString (OtClass_ARGS)
  Python: [static] string TypeE_ToString(value:MkTypeE) C-API
return the MkTypeE as string …
 

Detailed Description

MkKernel PACKAGE - enum definition …

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

◆ pymkkernel_MkKernel_ErrorE_FromInt()

static OT_ProcRet pymkkernel_MkKernel_ErrorE_FromInt ( OtClass_ARGS )
static

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

Definition at line 511 of file LibMkKernel_py.c.

511 {
514 MK_I32 value = 0;
517 enum MkErrorE value_out;
519 OT_retObj_SET(OT_NEW_Mk_enum_OBJ(ErrorE,value_out));
520 goto end;
521 error:
523 end:
525}
#define OT_SETUP_hdl_static
#define ErrorE_FromInt_doc
#define OT_SETUP_ONEARG(d)
#define OT_CHECK_NI4(val)
#define OT_retObj_SET_Error
#define OT_CHECK_REQUIRED(val)
#define OT_retObj_RETURN
#define OT_NEW_Mk_enum_OBJ(typ, val)
#define OT_retObj_SET(val)
#define OT_CHECK_NOARGS
#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

◆ pymkkernel_MkKernel_ErrorE_ToInt()

static OT_ProcRet pymkkernel_MkKernel_ErrorE_ToInt ( OtClass_ARGS )
static

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

Definition at line 581 of file LibMkKernel_py.c.

581 {
584 enum MkErrorE value = 0;
588 goto end;
589 error:
591 end:
593}
#define ErrorE_ToInt_doc
#define OT_retObj_SET_I32(nat)
static MK_I32 MkErrorE_ToInt(enum MkErrorE value)
return the MkErrorE as integer …
#define OT_CHECK_ENUM(ename, val)

◆ pymkkernel_MkKernel_ErrorE_ToString()

static OT_ProcRet pymkkernel_MkKernel_ErrorE_ToString ( OtClass_ARGS )
static

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

Definition at line 596 of file LibMkKernel_py.c.

596 {
599 enum MkErrorE value = 0;
603 goto end;
604 error:
606 end:
608}
#define ErrorE_ToString_doc
#define OT_retObj_SET_STR(nat)
MK_STRN MkErrorE_ToString(enum MkErrorE value)
return the MkErrorE as string …

◆ pymkkernel_MkKernel_IdSE_FromInt()

static OT_ProcRet pymkkernel_MkKernel_IdSE_FromInt ( OtClass_ARGS )
static

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

Definition at line 528 of file LibMkKernel_py.c.

528 {
531 MK_I32 value = 0;
534 enum MkIdSE value_out;
535 MkErrorC_Check(MK_ERROR_FORMAT,MkIdSE_FromInt (value, &value_out));
536 OT_retObj_SET(OT_NEW_Mk_enum_OBJ(IdSE,value_out));
537 goto end;
538 error:
540 end:
542}
#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 …

◆ pymkkernel_MkKernel_IdSE_ToInt()

static OT_ProcRet pymkkernel_MkKernel_IdSE_ToInt ( OtClass_ARGS )
static

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

Definition at line 611 of file LibMkKernel_py.c.

611 {
614 enum MkIdSE value = 0;
618 goto end;
619 error:
621 end:
623}
#define IdSE_ToInt_doc
static MK_I32 MkIdSE_ToInt(enum MkIdSE value)
return the MkIdSE as integer …

◆ pymkkernel_MkKernel_IdSE_ToString()

static OT_ProcRet pymkkernel_MkKernel_IdSE_ToString ( OtClass_ARGS )
static

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

Definition at line 626 of file LibMkKernel_py.c.

626 {
629 enum MkIdSE value = 0;
633 goto end;
634 error:
636 end:
638}
#define IdSE_ToString_doc
MK_STRN MkIdSE_ToString(enum MkIdSE value)
return the MkIdSE as string …

◆ pymkkernel_MkKernel_TimeoutE_FromInt()

static OT_ProcRet pymkkernel_MkKernel_TimeoutE_FromInt ( OtClass_ARGS )
static

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

Definition at line 545 of file LibMkKernel_py.c.

545 {
548 MK_I32 value = 0;
551 enum MkTimeoutE value_out;
553 OT_retObj_SET(OT_NEW_Mk_enum_OBJ(TimeoutE,value_out));
554 goto end;
555 error:
557 end:
559}
#define TimeoutE_FromInt_doc
MkTimeoutE
Predefined Timeout values …
enum MkErrorE MkTimeoutE_FromInt(MK_I32 const value, enum MkTimeoutE *value_out)
return the MkTimeoutE from integer …

◆ pymkkernel_MkKernel_TimeoutE_ToInt()

static OT_ProcRet pymkkernel_MkKernel_TimeoutE_ToInt ( OtClass_ARGS )
static

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

Definition at line 641 of file LibMkKernel_py.c.

641 {
644 enum MkTimeoutE value = 0;
648 goto end;
649 error:
651 end:
653}
#define TimeoutE_ToInt_doc
static MK_I32 MkTimeoutE_ToInt(enum MkTimeoutE value)
return the MkTimeoutE as integer …

◆ pymkkernel_MkKernel_TimeoutE_ToString()

static OT_ProcRet pymkkernel_MkKernel_TimeoutE_ToString ( OtClass_ARGS )
static

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

Definition at line 656 of file LibMkKernel_py.c.

656 {
659 enum MkTimeoutE value = 0;
663 goto end;
664 error:
666 end:
668}
#define TimeoutE_ToString_doc
MK_STRN MkTimeoutE_ToString(enum MkTimeoutE value)
return the MkTimeoutE as string …

◆ pymkkernel_MkKernel_TypeE_FromInt()

static OT_ProcRet pymkkernel_MkKernel_TypeE_FromInt ( OtClass_ARGS )
static

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

Definition at line 562 of file LibMkKernel_py.c.

562 {
565 MK_I32 value = 0;
568 enum MkTypeE value_out;
570 OT_retObj_SET(OT_NEW_Mk_enum_OBJ(TypeE,value_out));
571 goto end;
572 error:
574 end:
576}
#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) …

◆ pymkkernel_MkKernel_TypeE_ToInt()

static OT_ProcRet pymkkernel_MkKernel_TypeE_ToInt ( OtClass_ARGS )
static

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

Definition at line 671 of file LibMkKernel_py.c.

671 {
674 enum MkTypeE value = 0;
678 goto end;
679 error:
681 end:
683}
#define TypeE_ToInt_doc
static MK_I32 MkTypeE_ToInt(enum MkTypeE value)
return the MkTypeE as integer …

◆ pymkkernel_MkKernel_TypeE_ToString()

static OT_ProcRet pymkkernel_MkKernel_TypeE_ToString ( OtClass_ARGS )
static

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

Definition at line 686 of file LibMkKernel_py.c.

686 {
689 enum MkTypeE value = 0;
693 goto end;
694 error:
696 end:
698}
#define TypeE_ToString_doc
MK_STRN MkTypeE_ToString(enum MkTypeE value)
return the MkTypeE as string …