LcConfig PACKAGE - definition of the enum type … More...
Enum To String | |
OT_OBJ_T | atllcconfig_LcConfigFormatE_ToString (const enum LcConfigFormatE type) |
OT_OBJ_T | atllcconfig_LcConfigOptionsEF_ToString (const enum LcConfigOptionsEF type) |
OT_OBJ_T | atllcconfig_LcConfigTypeE_ToString (const enum LcConfigTypeE type) |
OT_OBJ_T | atllcconfig_LcErrorE_ToString (const enum LcErrorE type) |
OT_OBJ_T | atllcconfig_LcErrorTypeE_ToString (const enum LcErrorTypeE type) |
Enum From Obj | |
int | atllcconfig_Get_LcConfigFormatE_FromObj (MK_RT mkrt, OT_ENV_T interp, OT_OBJ_T enumE, enum LcConfigFormatE *ret) |
int | atllcconfig_Get_LcConfigOptionsEF_FromObj (MK_RT mkrt, OT_ENV_T interp, OT_OBJ_T enumE, enum LcConfigOptionsEF *ret) |
int | atllcconfig_Get_LcConfigTypeE_FromObj (MK_RT mkrt, OT_ENV_T interp, OT_OBJ_T enumE, enum LcConfigTypeE *ret) |
int | atllcconfig_Get_LcErrorE_FromObj (MK_RT mkrt, OT_ENV_T interp, OT_OBJ_T enumE, enum LcErrorE *ret) |
int | atllcconfig_Get_LcErrorTypeE_FromObj (MK_RT mkrt, OT_ENV_T interp, OT_OBJ_T enumE, enum LcErrorTypeE *ret) |
LcConfig PACKAGE - definition of the enum type …
read more at: MkKernel_Enum_C_API
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 atl-c-check-proc :
to return the integer identifier for an enum-definition-string or an error if string is not valid.
"CONFIG_FORMAT_DEFAULT"
= CONFIG_FORMAT_DEFAULT
= 0
A valid string for an enum-value is any unique abbreviation of the original enum-value:
"CONFIG_FORMAT_DEFAULT"
= "FORMAT_DEFAULT"
= "DEFAULT"
= 0
The atl-c-check-proc is used in a atl-c-api-wrapper like :
The usage of an enum-value in the atl-code is quite simple, just use the string.
read more at: MkKernel_Enum_C_API
int atllcconfig_Get_LcConfigFormatE_FromObj | ( | MK_RT | mkrt, |
OT_ENV_T | interp, | ||
OT_OBJ_T | enumE, | ||
enum LcConfigFormatE * | ret ) |
Definition at line 192 of file LibLcConfig_atl.c.
int atllcconfig_Get_LcConfigOptionsEF_FromObj | ( | MK_RT | mkrt, |
OT_ENV_T | interp, | ||
OT_OBJ_T | enumE, | ||
enum LcConfigOptionsEF * | ret ) |
Definition at line 210 of file LibLcConfig_atl.c.
int atllcconfig_Get_LcConfigTypeE_FromObj | ( | MK_RT | mkrt, |
OT_ENV_T | interp, | ||
OT_OBJ_T | enumE, | ||
enum LcConfigTypeE * | ret ) |
Definition at line 248 of file LibLcConfig_atl.c.
int atllcconfig_Get_LcErrorE_FromObj | ( | MK_RT | mkrt, |
OT_ENV_T | interp, | ||
OT_OBJ_T | enumE, | ||
enum LcErrorE * | ret ) |
Definition at line 287 of file LibLcConfig_atl.c.
int atllcconfig_Get_LcErrorTypeE_FromObj | ( | MK_RT | mkrt, |
OT_ENV_T | interp, | ||
OT_OBJ_T | enumE, | ||
enum LcErrorTypeE * | ret ) |
Definition at line 303 of file LibLcConfig_atl.c.
|
static |
Atl:
→ C-API (static) LcConfigFormatE [LcConfig::ConfigFormatE_FromInt value:int32]
return the LcConfigFormatE from integer …
Definition at line 417 of file LibLcConfig_atl.c.
|
static |
Atl:
→ C-API (static) int32 [LcConfig::ConfigFormatE_ToInt value:LcConfigFormatE]
return the LcConfigFormatE as integer …
Definition at line 504 of file LibLcConfig_atl.c.
|
static |
Atl:
→ C-API (static) string [LcConfig::ConfigFormatE_ToString value:LcConfigFormatE]
return the LcConfigFormatE as string …
Definition at line 519 of file LibLcConfig_atl.c.
|
static |
Atl:
→ C-API (static) LcConfigOptionsEF [LcConfig::ConfigOptionsEF_FromInt value:int32]
return the LcConfigOptionsEF from integer …
Definition at line 434 of file LibLcConfig_atl.c.
|
static |
Atl:
→ C-API (static) int32 [LcConfig::ConfigOptionsEF_ToInt value:LcConfigOptionsEF]
return the LcConfigOptionsEF as integer …
Definition at line 534 of file LibLcConfig_atl.c.
|
static |
Atl:
→ C-API (static) string [LcConfig::ConfigOptionsEF_ToString value:LcConfigOptionsEF]
return the LcConfigOptionsEF as string …
Definition at line 549 of file LibLcConfig_atl.c.
|
static |
Atl:
→ C-API (static) LcConfigTypeE [LcConfig::ConfigTypeE_FromInt value:int32]
return the LcConfigTypeE from integer …
Definition at line 451 of file LibLcConfig_atl.c.
|
static |
Atl:
→ C-API (static) int32 [LcConfig::ConfigTypeE_ToInt value:LcConfigTypeE]
return the LcConfigTypeE as integer …
Definition at line 564 of file LibLcConfig_atl.c.
|
static |
Atl:
→ C-API (static) string [LcConfig::ConfigTypeE_ToString value:LcConfigTypeE]
return the LcConfigTypeE as string …
Definition at line 579 of file LibLcConfig_atl.c.
|
static |
Atl:
→ C-API (static) LcErrorE [LcConfig::ErrorE_FromInt value:int32]
return the LcErrorE from integer …
Definition at line 468 of file LibLcConfig_atl.c.
|
static |
Atl:
→ C-API (static) int32 [LcConfig::ErrorE_ToInt value:LcErrorE]
return the LcErrorE as integer …
Definition at line 594 of file LibLcConfig_atl.c.
|
static |
Atl:
→ C-API (static) string [LcConfig::ErrorE_ToString value:LcErrorE]
return the LcErrorE as string …
Definition at line 609 of file LibLcConfig_atl.c.
|
static |
Atl:
→ C-API (static) LcErrorTypeE [LcConfig::ErrorTypeE_FromInt value:int32]
return the LcErrorTypeE from integer …
Definition at line 485 of file LibLcConfig_atl.c.
|
static |
Atl:
→ C-API (static) int32 [LcConfig::ErrorTypeE_ToInt value:LcErrorTypeE]
return the LcErrorTypeE as integer …
Definition at line 624 of file LibLcConfig_atl.c.
|
static |
Atl:
→ C-API (static) string [LcConfig::ErrorTypeE_ToString value:LcErrorTypeE]
return the LcErrorTypeE as string …
Definition at line 639 of file LibLcConfig_atl.c.
OT_OBJ_T atllcconfig_LcConfigFormatE_ToString | ( | const enum LcConfigFormatE | type | ) |
Definition at line 119 of file LibLcConfig_atl.c.
OT_OBJ_T atllcconfig_LcConfigOptionsEF_ToString | ( | const enum LcConfigOptionsEF | type | ) |
Definition at line 128 of file LibLcConfig_atl.c.
OT_OBJ_T atllcconfig_LcConfigTypeE_ToString | ( | const enum LcConfigTypeE | type | ) |
Definition at line 146 of file LibLcConfig_atl.c.
Definition at line 162 of file LibLcConfig_atl.c.
OT_OBJ_T atllcconfig_LcErrorTypeE_ToString | ( | const enum LcErrorTypeE | type | ) |
Definition at line 171 of file LibLcConfig_atl.c.