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 194 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 212 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 250 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 289 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 305 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) LcConfigFormatE [LcConfig ConfigFormatE_FromInt value:int32]
return the LcConfigFormatE from integer …
Definition at line 419 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) int32 [LcConfig ConfigFormatE_ToInt value:LcConfigFormatE]
return the LcConfigFormatE as integer …
Definition at line 506 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) string [LcConfig ConfigFormatE_ToString value:LcConfigFormatE]
return the LcConfigFormatE as string …
Definition at line 521 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) LcConfigOptionsEF [LcConfig ConfigOptionsEF_FromInt value:int32]
return the LcConfigOptionsEF from integer …
Definition at line 436 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) int32 [LcConfig ConfigOptionsEF_ToInt value:LcConfigOptionsEF]
return the LcConfigOptionsEF as integer …
Definition at line 536 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) string [LcConfig ConfigOptionsEF_ToString value:LcConfigOptionsEF]
return the LcConfigOptionsEF as string …
Definition at line 551 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) LcConfigTypeE [LcConfig ConfigTypeE_FromInt value:int32]
return the LcConfigTypeE from integer …
Definition at line 453 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) int32 [LcConfig ConfigTypeE_ToInt value:LcConfigTypeE]
return the LcConfigTypeE as integer …
Definition at line 566 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) string [LcConfig ConfigTypeE_ToString value:LcConfigTypeE]
return the LcConfigTypeE as string …
Definition at line 581 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) LcErrorE [LcConfig ErrorE_FromInt value:int32]
return the LcErrorE from integer …
Definition at line 470 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) int32 [LcConfig ErrorE_ToInt value:LcErrorE]
return the LcErrorE as integer …
Definition at line 596 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) string [LcConfig ErrorE_ToString value:LcErrorE]
return the LcErrorE as string …
Definition at line 611 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) LcErrorTypeE [LcConfig ErrorTypeE_FromInt value:int32]
return the LcErrorTypeE from integer …
Definition at line 487 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) int32 [LcConfig ErrorTypeE_ToInt value:LcErrorTypeE]
return the LcErrorTypeE as integer …
Definition at line 626 of file LibLcConfig_tcl.c.
|
static |
Tcl:
→ C-API (static) string [LcConfig ErrorTypeE_ToString value:LcErrorTypeE]
return the LcErrorTypeE as string …
Definition at line 641 of file LibLcConfig_tcl.c.
OT_OBJ_T tcllcconfig_LcConfigFormatE_ToString | ( | const enum LcConfigFormatE | type | ) |
Definition at line 121 of file LibLcConfig_tcl.c.
OT_OBJ_T tcllcconfig_LcConfigOptionsEF_ToString | ( | const enum LcConfigOptionsEF | type | ) |
Definition at line 130 of file LibLcConfig_tcl.c.
OT_OBJ_T tcllcconfig_LcConfigTypeE_ToString | ( | const enum LcConfigTypeE | type | ) |
Definition at line 148 of file LibLcConfig_tcl.c.
Definition at line 164 of file LibLcConfig_tcl.c.
OT_OBJ_T tcllcconfig_LcErrorTypeE_ToString | ( | const enum LcErrorTypeE | type | ) |
Definition at line 173 of file LibLcConfig_tcl.c.