theKernel 10.0
Loading...
Searching...
No Matches
MkKernel_Enum_RB_API

MkKernel PACKAGE - enum definition … More...

+ Collaboration diagram for MkKernel_Enum_RB_API:

Functions

static OT_ProcRet rbmkkernel_MkKernel_ErrorE_FromInt (OtClass_ARGS)
  Ruby: (static) MkErrorE MkKernel.ErrorE_FromInt(value:int32) C-API
return the MkErrorE from integer …
 
static OT_ProcRet rbmkkernel_MkKernel_IdSE_FromInt (OtClass_ARGS)
  Ruby: (static) MkIdSE MkKernel.IdSE_FromInt(value:int32) C-API
return the MkIdSE from integer …
 
static OT_ProcRet rbmkkernel_MkKernel_TimeoutE_FromInt (OtClass_ARGS)
  Ruby: (static) MkTimeoutE MkKernel.TimeoutE_FromInt(value:int32) C-API
return the MkTimeoutE from integer …
 
static OT_ProcRet rbmkkernel_MkKernel_TypeE_FromInt (OtClass_ARGS)
  Ruby: (static) MkTypeE MkKernel.TypeE_FromInt(value:int32) C-API
return the MkTypeE from integer …
 
static OT_ProcRet rbmkkernel_MkKernel_ErrorE_ToInt (OtClass_ARGS)
  Ruby: (static) int32 MkKernel.ErrorE_ToInt(value:MkErrorE) C-API
return the MkErrorE as integer …
 
static OT_ProcRet rbmkkernel_MkKernel_ErrorE_ToString (OtClass_ARGS)
  Ruby: (static) string MkKernel.ErrorE_ToString(value:MkErrorE) C-API
return the MkErrorE as string …
 
static OT_ProcRet rbmkkernel_MkKernel_IdSE_ToInt (OtClass_ARGS)
  Ruby: (static) int32 MkKernel.IdSE_ToInt(value:MkIdSE) C-API
return the MkIdSE as integer …
 
static OT_ProcRet rbmkkernel_MkKernel_IdSE_ToString (OtClass_ARGS)
  Ruby: (static) string MkKernel.IdSE_ToString(value:MkIdSE) C-API
return the MkIdSE as string …
 
static OT_ProcRet rbmkkernel_MkKernel_TimeoutE_ToInt (OtClass_ARGS)
  Ruby: (static) int32 MkKernel.TimeoutE_ToInt(value:MkTimeoutE) C-API
return the MkTimeoutE as integer …
 
static OT_ProcRet rbmkkernel_MkKernel_TimeoutE_ToString (OtClass_ARGS)
  Ruby: (static) string MkKernel.TimeoutE_ToString(value:MkTimeoutE) C-API
return the MkTimeoutE as string …
 
static OT_ProcRet rbmkkernel_MkKernel_TypeE_ToInt (OtClass_ARGS)
  Ruby: (static) int32 MkKernel.TypeE_ToInt(value:MkTypeE) C-API
return the MkTypeE as integer …
 
static OT_ProcRet rbmkkernel_MkKernel_TypeE_ToString (OtClass_ARGS)
  Ruby: (static) string MkKernel.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

◆ rbmkkernel_MkKernel_ErrorE_FromInt()

static OT_ProcRet rbmkkernel_MkKernel_ErrorE_FromInt ( OtClass_ARGS )
static

Ruby: (static) MkErrorE MkKernel.ErrorE_FromInt(value:int32) C-API
return the MkErrorE from integer …

Definition at line 363 of file LibMkKernel_rb.c.

363 {
366 MK_I32 value = 0;
369 enum MkErrorE value_out;
371 OT_retObj_SET(OT_NEW_Mk_enum_OBJ(ErrorE,value_out));
372 end: MK_UNUSED /* LONG JUMP on error */
374}
#define OT_SETUP_hdl_static
#define ErrorE_FromInt_doc
#define OT_SETUP_ONEARG(d)
#define OT_NEW_Mk_enum_OBJ(typ, i)
#define OT_CHECK_NI4(val)
#define OT_CHECK_REQUIRED(val)
#define OT_retObj_RETURN
#define OT_retObj_SET(val)
#define OT_CHECK_NOARGS
#define MkErrorC_Check(mng, PROC)
#define MK_ERROR_FORMAT
#define MK_UNUSED
mark unnused variables and functions
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

◆ rbmkkernel_MkKernel_ErrorE_ToInt()

static OT_ProcRet rbmkkernel_MkKernel_ErrorE_ToInt ( OtClass_ARGS )
static

Ruby: (static) int32 MkKernel.ErrorE_ToInt(value:MkErrorE) C-API
return the MkErrorE as integer …

Definition at line 421 of file LibMkKernel_rb.c.

421 {
424 enum MkErrorE value = 0;
428 end: MK_UNUSED /* LONG JUMP on error */
430}
#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)

◆ rbmkkernel_MkKernel_ErrorE_ToString()

static OT_ProcRet rbmkkernel_MkKernel_ErrorE_ToString ( OtClass_ARGS )
static

Ruby: (static) string MkKernel.ErrorE_ToString(value:MkErrorE) C-API
return the MkErrorE as string …

Definition at line 433 of file LibMkKernel_rb.c.

433 {
436 enum MkErrorE value = 0;
440 end: MK_UNUSED /* LONG JUMP on error */
442}
#define ErrorE_ToString_doc
#define OT_retObj_SET_STR(nat)
MK_STRN MkErrorE_ToString(enum MkErrorE value)
return the MkErrorE as string …

◆ rbmkkernel_MkKernel_IdSE_FromInt()

static OT_ProcRet rbmkkernel_MkKernel_IdSE_FromInt ( OtClass_ARGS )
static

Ruby: (static) MkIdSE MkKernel.IdSE_FromInt(value:int32) C-API
return the MkIdSE from integer …

Definition at line 377 of file LibMkKernel_rb.c.

377 {
380 MK_I32 value = 0;
383 enum MkIdSE value_out;
384 MkErrorC_Check(MK_ERROR_FORMAT,MkIdSE_FromInt (value, &value_out));
385 OT_retObj_SET(OT_NEW_Mk_enum_OBJ(IdSE,value_out));
386 end: MK_UNUSED /* LONG JUMP on error */
388}
#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 …

◆ rbmkkernel_MkKernel_IdSE_ToInt()

static OT_ProcRet rbmkkernel_MkKernel_IdSE_ToInt ( OtClass_ARGS )
static

Ruby: (static) int32 MkKernel.IdSE_ToInt(value:MkIdSE) C-API
return the MkIdSE as integer …

Definition at line 445 of file LibMkKernel_rb.c.

445 {
448 enum MkIdSE value = 0;
452 end: MK_UNUSED /* LONG JUMP on error */
454}
#define IdSE_ToInt_doc
static MK_I32 MkIdSE_ToInt(enum MkIdSE value)
return the MkIdSE as integer …

◆ rbmkkernel_MkKernel_IdSE_ToString()

static OT_ProcRet rbmkkernel_MkKernel_IdSE_ToString ( OtClass_ARGS )
static

Ruby: (static) string MkKernel.IdSE_ToString(value:MkIdSE) C-API
return the MkIdSE as string …

Definition at line 457 of file LibMkKernel_rb.c.

457 {
460 enum MkIdSE value = 0;
464 end: MK_UNUSED /* LONG JUMP on error */
466}
#define IdSE_ToString_doc
MK_STRN MkIdSE_ToString(enum MkIdSE value)
return the MkIdSE as string …

◆ rbmkkernel_MkKernel_TimeoutE_FromInt()

static OT_ProcRet rbmkkernel_MkKernel_TimeoutE_FromInt ( OtClass_ARGS )
static

Ruby: (static) MkTimeoutE MkKernel.TimeoutE_FromInt(value:int32) C-API
return the MkTimeoutE from integer …

Definition at line 391 of file LibMkKernel_rb.c.

391 {
394 MK_I32 value = 0;
397 enum MkTimeoutE value_out;
399 OT_retObj_SET(OT_NEW_Mk_enum_OBJ(TimeoutE,value_out));
400 end: MK_UNUSED /* LONG JUMP on error */
402}
#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 …

◆ rbmkkernel_MkKernel_TimeoutE_ToInt()

static OT_ProcRet rbmkkernel_MkKernel_TimeoutE_ToInt ( OtClass_ARGS )
static

Ruby: (static) int32 MkKernel.TimeoutE_ToInt(value:MkTimeoutE) C-API
return the MkTimeoutE as integer …

Definition at line 469 of file LibMkKernel_rb.c.

469 {
472 enum MkTimeoutE value = 0;
476 end: MK_UNUSED /* LONG JUMP on error */
478}
#define TimeoutE_ToInt_doc
static MK_I32 MkTimeoutE_ToInt(enum MkTimeoutE value)
return the MkTimeoutE as integer …

◆ rbmkkernel_MkKernel_TimeoutE_ToString()

static OT_ProcRet rbmkkernel_MkKernel_TimeoutE_ToString ( OtClass_ARGS )
static

Ruby: (static) string MkKernel.TimeoutE_ToString(value:MkTimeoutE) C-API
return the MkTimeoutE as string …

Definition at line 481 of file LibMkKernel_rb.c.

481 {
484 enum MkTimeoutE value = 0;
488 end: MK_UNUSED /* LONG JUMP on error */
490}
#define TimeoutE_ToString_doc
MK_STRN MkTimeoutE_ToString(enum MkTimeoutE value)
return the MkTimeoutE as string …

◆ rbmkkernel_MkKernel_TypeE_FromInt()

static OT_ProcRet rbmkkernel_MkKernel_TypeE_FromInt ( OtClass_ARGS )
static

Ruby: (static) MkTypeE MkKernel.TypeE_FromInt(value:int32) C-API
return the MkTypeE from integer …

Definition at line 405 of file LibMkKernel_rb.c.

405 {
408 MK_I32 value = 0;
411 enum MkTypeE value_out;
413 OT_retObj_SET(OT_NEW_Mk_enum_OBJ(TypeE,value_out));
414 end: MK_UNUSED /* LONG JUMP on error */
416}
#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) …

◆ rbmkkernel_MkKernel_TypeE_ToInt()

static OT_ProcRet rbmkkernel_MkKernel_TypeE_ToInt ( OtClass_ARGS )
static

Ruby: (static) int32 MkKernel.TypeE_ToInt(value:MkTypeE) C-API
return the MkTypeE as integer …

Definition at line 493 of file LibMkKernel_rb.c.

493 {
496 enum MkTypeE value = 0;
500 end: MK_UNUSED /* LONG JUMP on error */
502}
#define TypeE_ToInt_doc
static MK_I32 MkTypeE_ToInt(enum MkTypeE value)
return the MkTypeE as integer …

◆ rbmkkernel_MkKernel_TypeE_ToString()

static OT_ProcRet rbmkkernel_MkKernel_TypeE_ToString ( OtClass_ARGS )
static

Ruby: (static) string MkKernel.TypeE_ToString(value:MkTypeE) C-API
return the MkTypeE as string …

Definition at line 505 of file LibMkKernel_rb.c.

505 {
508 enum MkTypeE value = 0;
512 end: MK_UNUSED /* LONG JUMP on error */
514}
#define TypeE_ToString_doc
MK_STRN MkTypeE_ToString(enum MkTypeE value)
return the MkTypeE as string …