LcConfig PACKAGE - definition of the enum type … More...
Enum To String | |
OT_OBJ_T | tcllcconfig_LcConfigFormatE_ToString (const enum LcConfigFormatE type) |
OT_OBJ_T | tcllcconfig_LcConfigOptionsEF_ToString (const enum LcConfigOptionsEF type) |
OT_OBJ_T | tcllcconfig_LcConfigTypeE_ToString (const enum LcConfigTypeE type) |
OT_OBJ_T | tcllcconfig_LcErrorE_ToString (const enum LcErrorE type) |
OT_OBJ_T | tcllcconfig_LcErrorTypeE_ToString (const enum LcErrorTypeE type) |
Enum From Obj | |
int | tcllcconfig_Get_LcConfigFormatE_FromObj (MK_RT mkrt, OT_ENV_T interp, OT_OBJ_T enumE, enum LcConfigFormatE *ret) |
int | tcllcconfig_Get_LcConfigOptionsEF_FromObj (MK_RT mkrt, OT_ENV_T interp, OT_OBJ_T enumE, enum LcConfigOptionsEF *ret) |
int | tcllcconfig_Get_LcConfigTypeE_FromObj (MK_RT mkrt, OT_ENV_T interp, OT_OBJ_T enumE, enum LcConfigTypeE *ret) |
int | tcllcconfig_Get_LcErrorE_FromObj (MK_RT mkrt, OT_ENV_T interp, OT_OBJ_T enumE, enum LcErrorE *ret) |
int | tcllcconfig_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 tcl-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 tcl-c-check-proc is used in a tcl-c-api-wrapper like :
The usage of an enum-value in the tcl-code is quite simple, just use the string.
read more at: MkKernel_Enum_C_API
int tcllcconfig_Get_LcConfigFormatE_FromObj | ( | MK_RT | mkrt, |
OT_ENV_T | interp, | ||
OT_OBJ_T | enumE, | ||
enum LcConfigFormatE * | ret ) |
Definition at line 191 of file LibLcConfig_tcl.c.
int tcllcconfig_Get_LcConfigOptionsEF_FromObj | ( | MK_RT | mkrt, |
OT_ENV_T | interp, | ||
OT_OBJ_T | enumE, | ||
enum LcConfigOptionsEF * | ret ) |
Definition at line 209 of file LibLcConfig_tcl.c.
int tcllcconfig_Get_LcConfigTypeE_FromObj | ( | MK_RT | mkrt, |
OT_ENV_T | interp, | ||
OT_OBJ_T | enumE, | ||
enum LcConfigTypeE * | ret ) |
Definition at line 247 of file LibLcConfig_tcl.c.
int tcllcconfig_Get_LcErrorE_FromObj | ( | MK_RT | mkrt, |
OT_ENV_T | interp, | ||
OT_OBJ_T | enumE, | ||
enum LcErrorE * | ret ) |
Definition at line 286 of file LibLcConfig_tcl.c.
int tcllcconfig_Get_LcErrorTypeE_FromObj | ( | MK_RT | mkrt, |
OT_ENV_T | interp, | ||
OT_OBJ_T | enumE, | ||
enum LcErrorTypeE * | ret ) |
Definition at line 302 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) LcConfigFormatE [LcConfig ConfigFormatE_FromInt value:int32]
return the LcConfigFormatE from integer …
Definition at line 416 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) int32 [LcConfig ConfigFormatE_ToInt value:LcConfigFormatE]
return the LcConfigFormatE as integer …
Definition at line 503 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) string [LcConfig ConfigFormatE_ToString value:LcConfigFormatE]
return the LcConfigFormatE as string …
Definition at line 518 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) LcConfigOptionsEF [LcConfig ConfigOptionsEF_FromInt value:int32]
return the LcConfigOptionsEF from integer …
Definition at line 433 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) int32 [LcConfig ConfigOptionsEF_ToInt value:LcConfigOptionsEF]
return the LcConfigOptionsEF as integer …
Definition at line 533 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) string [LcConfig ConfigOptionsEF_ToString value:LcConfigOptionsEF]
return the LcConfigOptionsEF as string …
Definition at line 548 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) LcConfigTypeE [LcConfig ConfigTypeE_FromInt value:int32]
return the LcConfigTypeE from integer …
Definition at line 450 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) int32 [LcConfig ConfigTypeE_ToInt value:LcConfigTypeE]
return the LcConfigTypeE as integer …
Definition at line 563 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) string [LcConfig ConfigTypeE_ToString value:LcConfigTypeE]
return the LcConfigTypeE as string …
Definition at line 578 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) LcErrorE [LcConfig ErrorE_FromInt value:int32]
return the LcErrorE from integer …
Definition at line 467 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) int32 [LcConfig ErrorE_ToInt value:LcErrorE]
return the LcErrorE as integer …
Definition at line 593 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) string [LcConfig ErrorE_ToString value:LcErrorE]
return the LcErrorE as string …
Definition at line 608 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) LcErrorTypeE [LcConfig ErrorTypeE_FromInt value:int32]
return the LcErrorTypeE from integer …
Definition at line 484 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) int32 [LcConfig ErrorTypeE_ToInt value:LcErrorTypeE]
return the LcErrorTypeE as integer …
Definition at line 623 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) string [LcConfig ErrorTypeE_ToString value:LcErrorTypeE]
return the LcErrorTypeE as string …
Definition at line 638 of file LibLcConfig_tcl.c.
OT_OBJ_T tcllcconfig_LcConfigFormatE_ToString | ( | const enum LcConfigFormatE | type | ) |
Definition at line 118 of file LibLcConfig_tcl.c.
OT_OBJ_T tcllcconfig_LcConfigOptionsEF_ToString | ( | const enum LcConfigOptionsEF | type | ) |
Definition at line 127 of file LibLcConfig_tcl.c.
OT_OBJ_T tcllcconfig_LcConfigTypeE_ToString | ( | const enum LcConfigTypeE | type | ) |
Definition at line 145 of file LibLcConfig_tcl.c.
Definition at line 161 of file LibLcConfig_tcl.c.
OT_OBJ_T tcllcconfig_LcErrorTypeE_ToString | ( | const enum LcErrorTypeE | type | ) |
Definition at line 170 of file LibLcConfig_tcl.c.