MkKernel PACKAGE - enum definition … More...
MkErrorE | |
enum | libmkkernel::MkErrorE { libmkkernel::MK_OK = 0 , libmkkernel::MK_CONTINUE = 1 , libmkkernel::MK_ERROR = 2 } |
collection for the different error-codes … More... | |
MK_EXTERN MK_STRN | libmkkernel::MkErrorE_ToString (enum MkErrorE value) |
return the MkErrorE as string … | |
MK_I32 | libmkkernel::MkErrorE_ToInt (enum MkErrorE value) |
return the MkErrorE as integer … | |
MK_EXTERN enum MkErrorE | libmkkernel::MkErrorE_FromInt (MK_I32 const value, enum MkErrorE *value_out) |
return the MkErrorE from integer … | |
MkTimeoutE | |
enum | libmkkernel::MkTimeoutE { libmkkernel::MK_TIMEOUT_INIT = META_TIMEOUT_REF , libmkkernel::MK_TIMEOUT_LONG = (META_TIMEOUT_REF/5) , libmkkernel::MK_TIMEOUT_NORMAL = (META_TIMEOUT_REF/10 < 1 ? 1 : META_TIMEOUT_REF/10) , libmkkernel::MK_TIMEOUT_SHORT = (META_TIMEOUT_REF/45 < 1 ? 1 : META_TIMEOUT_REF/45) , libmkkernel::MK_TIMEOUT_SOCKET = (META_TIMEOUT_REF/90 < 1 ? 1 : META_TIMEOUT_REF/90) , libmkkernel::MK_TIMEOUT_VERYSHORT = (META_TIMEOUT_REF/180 < 1 ? 1 : META_TIMEOUT_REF/180) , libmkkernel::MK_TIMEOUT_DEFAULT = -1 , libmkkernel::MK_TIMEOUT_USER = -2 , libmkkernel::MK_TIMEOUT_MAX = -3 } |
Predefined Timeout values … More... | |
MK_EXTERN MK_STRN | libmkkernel::MkTimeoutE_ToString (enum MkTimeoutE value) |
return the MkTimeoutE as string … | |
MK_I32 | libmkkernel::MkTimeoutE_ToInt (enum MkTimeoutE value) |
return the MkTimeoutE as integer … | |
MK_EXTERN enum MkErrorE | libmkkernel::MkTimeoutE_FromInt (MK_I32 const value, enum MkTimeoutE *value_out) |
return the MkTimeoutE from integer … | |
MkBoolE | |
enum | libmkkernel::MkBoolE { libmkkernel::MK_NO = 0 , libmkkernel::MK_YES = 1 } |
the internal boolean … More... | |
MK_EXTERN MK_STRN | libmkkernel::MkBoolE_ToString (enum MkBoolE value) |
return the MkBoolE as string … | |
MK_I32 | libmkkernel::MkBoolE_ToInt (enum MkBoolE value) |
return the MkBoolE as integer … | |
MK_EXTERN enum MkErrorE | libmkkernel::MkBoolE_FromInt (MK_I32 const value, enum MkBoolE *value_out) |
return the MkBoolE from integer … | |
MkNativeIsE | |
enum | libmkkernel::MkNativeIsE { libmkkernel::MK_NATIVE_IS_INITIAL = 0 , libmkkernel::MK_NATIVE_IS_STRING = 'S' , libmkkernel::MK_NATIVE_IS_LITTLE = 'L' , libmkkernel::MK_NATIVE_IS_BIG = 'B' } |
define if data is string or little or big endian … More... | |
MK_EXTERN MK_STRN | libmkkernel::MkNativeIsE_ToString (enum MkNativeIsE value) |
return the MkNativeIsE as string … | |
MK_I32 | libmkkernel::MkNativeIsE_ToInt (enum MkNativeIsE value) |
return the MkNativeIsE as integer … | |
MK_EXTERN enum MkErrorE | libmkkernel::MkNativeIsE_FromInt (MK_I32 const value, enum MkNativeIsE *value_out) |
return the MkNativeIsE from integer … | |
MkTypeE | |
enum | libmkkernel::MkTypeE { libmkkernel::MK_I8T = ((1 << MK_TYPE_SHIFT) | MK_TYPE_IS_1_I8E ) , libmkkernel::MK_BOLT = ((2 << MK_TYPE_SHIFT) | MK_TYPE_IS_1_I8E ) , libmkkernel::MK_I16T = ((3 << MK_TYPE_SHIFT) | MK_TYPE_IS_2_I8E ) , libmkkernel::MK_I32T = ((4 << MK_TYPE_SHIFT) | MK_TYPE_IS_4_I8E ) , libmkkernel::MK_FLTT = ((5 << MK_TYPE_SHIFT) | MK_TYPE_IS_4_I8E ) , libmkkernel::MK_I64T = ((6 << MK_TYPE_SHIFT) | MK_TYPE_IS_8_I8E ) , libmkkernel::MK_DBLT = ((7 << MK_TYPE_SHIFT) | MK_TYPE_IS_8_I8E ) , libmkkernel::MK_BINT = ((8 << MK_TYPE_SHIFT) ) , libmkkernel::MK_STRT = ((9 << MK_TYPE_SHIFT) ) , libmkkernel::MK_LSTT = ((10 << MK_TYPE_SHIFT) ) } |
basic data-types supported by Programming-Language-Micro-Kernel (PLMK) … More... | |
MK_EXTERN MK_STRN | libmkkernel::MkTypeE_ToString (enum MkTypeE value) |
return the MkTypeE as string … | |
MK_I32 | libmkkernel::MkTypeE_ToInt (enum MkTypeE value) |
return the MkTypeE as integer … | |
MK_EXTERN enum MkErrorE | libmkkernel::MkTypeE_FromInt (MK_I32 const value, enum MkTypeE *value_out) |
return the MkTypeE from integer … | |
#define | MK_TYPE_IS_1_I8E (1<<0) |
the type is native and has a size of 1 byte … | |
#define | MK_TYPE_IS_2_I8E (1<<1) |
the type is native and has a size of 2 bytes … | |
#define | MK_TYPE_IS_4_I8E (1<<2) |
the type is native and has a size of 4 bytes … | |
#define | MK_TYPE_IS_8_I8E (1<<3) |
the type is native and has a size of 8 bytes … | |
#define | MK_TYPE_IS_NATIVE |
the type is native … | |
#define | MK_TYPE_SHIFT 4 |
FIXED: type is only 8bit -> 4 bit=15 for type and 4 bit for flag … | |
MkKernel - MkKernel_Enum_C_API - overload | |
#define | MkBoolE_FromInt_E(...) |
#define | MkBoolE_FromInt_C(...) |
#define | MkBoolE_FromInt_e(...) |
#define | MkErrorE_FromInt_E(...) |
#define | MkErrorE_FromInt_C(...) |
#define | MkErrorE_FromInt_e(...) |
#define | MkNativeIsE_FromInt_E(...) |
#define | MkNativeIsE_FromInt_C(...) |
#define | MkNativeIsE_FromInt_e(...) |
#define | MkTimeoutE_FromInt_E(...) |
#define | MkTimeoutE_FromInt_C(...) |
#define | MkTimeoutE_FromInt_e(...) |
#define | MkTypeE_FromInt_E(...) |
#define | MkTypeE_FromInt_C(...) |
#define | MkTypeE_FromInt_e(...) |
MkKernel PACKAGE - enum definition …
A enum in the Programming-Language-Micro-Kernel (PLMK) is a enum-data-type and 3 enum-access-attributes
ENUM_ToString
→ return the string-value from the enum-value ENUM_ToInt
→ return the integer-value from the enum-value 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).
#define MK_TYPE_IS_1_I8E (1<<0) |
the type is native and has a size of 1 byte …
Definition at line 1892 of file LibMkKernel_mk.h.
#define MK_TYPE_IS_2_I8E (1<<1) |
the type is native and has a size of 2 bytes …
Definition at line 1895 of file LibMkKernel_mk.h.
#define MK_TYPE_IS_4_I8E (1<<2) |
the type is native and has a size of 4 bytes …
Definition at line 1898 of file LibMkKernel_mk.h.
#define MK_TYPE_IS_8_I8E (1<<3) |
the type is native and has a size of 8 bytes …
Definition at line 1901 of file LibMkKernel_mk.h.
#define MK_TYPE_IS_NATIVE |
the type is native …
Definition at line 1904 of file LibMkKernel_mk.h.
#define MK_TYPE_SHIFT 4 |
FIXED: type is only 8bit -> 4 bit=15 for type and 4 bit for flag …
Definition at line 1908 of file LibMkKernel_mk.h.
#define MkBoolE_FromInt_C | ( | ... | ) |
Definition at line 1317 of file kernel_overload_mk.h.
#define MkBoolE_FromInt_E | ( | ... | ) |
Definition at line 1316 of file kernel_overload_mk.h.
#define MkBoolE_FromInt_e | ( | ... | ) |
Definition at line 1318 of file kernel_overload_mk.h.
#define MkErrorE_FromInt_C | ( | ... | ) |
Definition at line 1320 of file kernel_overload_mk.h.
#define MkErrorE_FromInt_E | ( | ... | ) |
Definition at line 1319 of file kernel_overload_mk.h.
#define MkErrorE_FromInt_e | ( | ... | ) |
Definition at line 1321 of file kernel_overload_mk.h.
#define MkNativeIsE_FromInt_C | ( | ... | ) |
Definition at line 1323 of file kernel_overload_mk.h.
#define MkNativeIsE_FromInt_E | ( | ... | ) |
Definition at line 1322 of file kernel_overload_mk.h.
#define MkNativeIsE_FromInt_e | ( | ... | ) |
Definition at line 1324 of file kernel_overload_mk.h.
#define MkTimeoutE_FromInt_C | ( | ... | ) |
Definition at line 1326 of file kernel_overload_mk.h.
#define MkTimeoutE_FromInt_E | ( | ... | ) |
Definition at line 1325 of file kernel_overload_mk.h.
#define MkTimeoutE_FromInt_e | ( | ... | ) |
Definition at line 1327 of file kernel_overload_mk.h.
#define MkTypeE_FromInt_C | ( | ... | ) |
Definition at line 1329 of file kernel_overload_mk.h.
#define MkTypeE_FromInt_E | ( | ... | ) |
Definition at line 1328 of file kernel_overload_mk.h.
#define MkTypeE_FromInt_e | ( | ... | ) |
Definition at line 1330 of file kernel_overload_mk.h.
enum libmkkernel::MkBoolE |
the internal boolean …
Enumerator | |
---|---|
MK_NO | boolean NO |
MK_YES | boolean YES |
Definition at line 1819 of file LibMkKernel_mk.h.
collection for the different error-codes …
This is the default-error-indicator and the return-value from near all Programming-Language-Micro-Kernel (PLMK) functions.
Definition at line 1723 of file LibMkKernel_mk.h.
define if data is string or little or big endian …
Definition at line 1856 of file LibMkKernel_mk.h.
Predefined Timeout values …
The libmkkernel::MkTimeoutE is used wherever a "timeout" is required. As a special feature, in addition to the defined values in libmkkernel::MkTimeoutE, freely defined values as integers as seconds are also accepted.
Definition at line 1768 of file LibMkKernel_mk.h.
enum libmkkernel::MkTypeE |
basic data-types supported by Programming-Language-Micro-Kernel (PLMK) …
Definition at line 1918 of file LibMkKernel_mk.h.
MK_EXTERN enum MkErrorE libmkkernel::MkBoolE_FromInt | ( | MK_I32 const | value, |
enum MkBoolE * | value_out ) |
return the MkBoolE from integer …
return the MkBoolE as integer …
Definition at line 1834 of file LibMkKernel_mk.h.
return the MkBoolE as string …
return the MkErrorE as integer …
Definition at line 1740 of file LibMkKernel_mk.h.
MK_EXTERN enum MkErrorE libmkkernel::MkNativeIsE_FromInt | ( | MK_I32 const | value, |
enum MkNativeIsE * | value_out ) |
return the MkNativeIsE from integer …
|
inline |
return the MkNativeIsE as integer …
Definition at line 1874 of file LibMkKernel_mk.h.
MK_EXTERN MK_STRN libmkkernel::MkNativeIsE_ToString | ( | enum MkNativeIsE | value | ) |
return the MkNativeIsE as string …
MK_EXTERN enum MkErrorE libmkkernel::MkTimeoutE_FromInt | ( | MK_I32 const | value, |
enum MkTimeoutE * | value_out ) |
|
inline |
return the MkTimeoutE as integer …
Definition at line 1801 of file LibMkKernel_mk.h.
MK_EXTERN MK_STRN libmkkernel::MkTimeoutE_ToString | ( | enum MkTimeoutE | value | ) |
return the MkTypeE as integer …
Definition at line 1942 of file LibMkKernel_mk.h.