MqMsgque PACKAGE - enum definition … More...
Enum To String | |
OT_OBJ_T | tclmqmsgque_MqFactoryE_ToString (const enum MqFactoryE type) |
OT_OBJ_T | tclmqmsgque_MqHandShakeE_ToString (const enum MqHandShakeE type) |
OT_OBJ_T | tclmqmsgque_MqIdentE_ToString (const enum MqIdentE type) |
OT_OBJ_T | tclmqmsgque_MqIoComE_ToString (const enum MqIoComE type) |
OT_OBJ_T | tclmqmsgque_MqSlaveE_ToString (const enum MqSlaveE type) |
OT_OBJ_T | tclmqmsgque_MqStartE_ToString (const enum MqStartE type) |
OT_OBJ_T | tclmqmsgque_MqStatusIsEF_ToString (const enum MqStatusIsEF type) |
OT_OBJ_T | tclmqmsgque_MqTransTypeE_ToString (const enum MqTransTypeE type) |
OT_OBJ_T | tclmqmsgque_MqWaitOnEventE_ToString (const enum MqWaitOnEventE type) |
Enum From Obj | |
int | tclmqmsgque_Get_MqIdentE_FromObj (MK_RT mkrt, OT_ENV_T interp, OT_OBJ_T enumE, enum MqIdentE *ret) |
int | tclmqmsgque_Get_MqSlaveE_FromObj (MK_RT mkrt, OT_ENV_T interp, OT_OBJ_T enumE, enum MqSlaveE *ret) |
int | tclmqmsgque_Get_MqStartE_FromObj (MK_RT mkrt, OT_ENV_T interp, OT_OBJ_T enumE, enum MqStartE *ret) |
int | tclmqmsgque_Get_MqStatusIsEF_FromObj (MK_RT mkrt, OT_ENV_T interp, OT_OBJ_T enumE, enum MqStatusIsEF *ret) |
int | tclmqmsgque_Get_MqWaitOnEventE_FromObj (MK_RT mkrt, OT_ENV_T interp, OT_OBJ_T enumE, enum MqWaitOnEventE *ret) |
MqMsgque PACKAGE - enum definition …
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.
"MQ_WAIT_FOREVER"
= MQ_WAIT_FOREVER
= 3
A valid string for an enum-value is any unique abbreviation of the original enum-value:
"MQ_WAIT_FOREVER"
= "WAIT_FOREVER"
= "FOREVER"
= 3
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.
Example from Filter4.tcl
→ use ProcessEvent MQ_WAIT_FOREVER
tclmqmsgque::Main { # !!ATTENTION!! if you put the "MqFactoryC Add" outsite of "tclmqmsgque::Main" # you get a error like: "...factory identifer already in use..." # because in a "thread" startup... you try to create a factory with SAME NAME again. [MqFactoryC Add Filter4 ] Initial set srv [Filter4 new] try { $srv LinkCreate {*}$argv $srv ProcessEvent MQ_WAIT_FOREVER } on error {} { $srv ErrorCatch } finally { $srv Exit } }
read more at: MkKernel_Enum_C_API
int tclmqmsgque_Get_MqIdentE_FromObj | ( | MK_RT | mkrt, |
OT_ENV_T | interp, | ||
OT_OBJ_T | enumE, | ||
enum MqIdentE * | ret ) |
Definition at line 384 of file LibMqMsgque_tcl.c.
int tclmqmsgque_Get_MqSlaveE_FromObj | ( | MK_RT | mkrt, |
OT_ENV_T | interp, | ||
OT_OBJ_T | enumE, | ||
enum MqSlaveE * | ret ) |
Definition at line 402 of file LibMqMsgque_tcl.c.
int tclmqmsgque_Get_MqStartE_FromObj | ( | MK_RT | mkrt, |
OT_ENV_T | interp, | ||
OT_OBJ_T | enumE, | ||
enum MqStartE * | ret ) |
Definition at line 432 of file LibMqMsgque_tcl.c.
int tclmqmsgque_Get_MqStatusIsEF_FromObj | ( | MK_RT | mkrt, |
OT_ENV_T | interp, | ||
OT_OBJ_T | enumE, | ||
enum MqStatusIsEF * | ret ) |
Definition at line 456 of file LibMqMsgque_tcl.c.
int tclmqmsgque_Get_MqWaitOnEventE_FromObj | ( | MK_RT | mkrt, |
OT_ENV_T | interp, | ||
OT_OBJ_T | enumE, | ||
enum MqWaitOnEventE * | ret ) |
Definition at line 487 of file LibMqMsgque_tcl.c.
OT_OBJ_T tclmqmsgque_MqFactoryE_ToString | ( | const enum MqFactoryE | type | ) |
Definition at line 271 of file LibMqMsgque_tcl.c.
OT_OBJ_T tclmqmsgque_MqHandShakeE_ToString | ( | const enum MqHandShakeE | type | ) |
Definition at line 283 of file LibMqMsgque_tcl.c.
Definition at line 293 of file LibMqMsgque_tcl.c.
Definition at line 302 of file LibMqMsgque_tcl.c.
|
static |
Tcl:
→ C-API (static) MqIdentE [MqMsgque IdentE_FromInt value:int32]
return the MqIdentE from integer …
Definition at line 626 of file LibMqMsgque_tcl.c.
|
static |
Tcl:
→ C-API (static) int32 [MqMsgque IdentE_ToInt value:MqIdentE]
return the MqIdentE as integer …
Definition at line 713 of file LibMqMsgque_tcl.c.
|
static |
Tcl:
→ C-API (static) string [MqMsgque IdentE_ToString value:MqIdentE]
return the MqIdentE as string …
Definition at line 728 of file LibMqMsgque_tcl.c.
|
static |
Tcl:
→ C-API (static) MqSlaveE [MqMsgque SlaveE_FromInt value:int32]
return the MqSlaveE from integer …
Definition at line 643 of file LibMqMsgque_tcl.c.
|
static |
Tcl:
→ C-API (static) int32 [MqMsgque SlaveE_ToInt value:MqSlaveE]
return the MqSlaveE as integer …
Definition at line 743 of file LibMqMsgque_tcl.c.
|
static |
Tcl:
→ C-API (static) string [MqMsgque SlaveE_ToString value:MqSlaveE]
return the MqSlaveE as string …
Definition at line 758 of file LibMqMsgque_tcl.c.
|
static |
Tcl:
→ C-API (static) MqStartE [MqMsgque StartE_FromInt value:int32]
return the MqStartE from integer …
Definition at line 660 of file LibMqMsgque_tcl.c.
|
static |
Tcl:
→ C-API (static) int32 [MqMsgque StartE_ToInt value:MqStartE]
return the MqStartE as integer …
Definition at line 773 of file LibMqMsgque_tcl.c.
|
static |
Tcl:
→ C-API (static) string [MqMsgque StartE_ToString value:MqStartE]
return the MqStartE as string …
Definition at line 788 of file LibMqMsgque_tcl.c.
|
static |
Tcl:
→ C-API (static) MqStatusIsEF [MqMsgque StatusIsEF_FromInt value:int32]
return the MqStatusIsEF from integer …
Definition at line 677 of file LibMqMsgque_tcl.c.
|
static |
Tcl:
→ C-API (static) int32 [MqMsgque StatusIsEF_ToInt value:MqStatusIsEF]
return the MqStatusIsEF as integer …
Definition at line 803 of file LibMqMsgque_tcl.c.
|
static |
Tcl:
→ C-API (static) string [MqMsgque StatusIsEF_ToString value:MqStatusIsEF]
return the MqStatusIsEF as string …
Definition at line 818 of file LibMqMsgque_tcl.c.
|
static |
Tcl:
→ C-API (static) MqWaitOnEventE [MqMsgque WaitOnEventE_FromInt value:int32]
return the MqWaitOnEventE from integer …
Definition at line 694 of file LibMqMsgque_tcl.c.
|
static |
Tcl:
→ C-API (static) int32 [MqMsgque WaitOnEventE_ToInt value:MqWaitOnEventE]
return the MqWaitOnEventE as integer …
Definition at line 833 of file LibMqMsgque_tcl.c.
|
static |
Tcl:
→ C-API (static) string [MqMsgque WaitOnEventE_ToString value:MqWaitOnEventE]
return the MqWaitOnEventE as string …
Definition at line 848 of file LibMqMsgque_tcl.c.
Definition at line 314 of file LibMqMsgque_tcl.c.
Definition at line 325 of file LibMqMsgque_tcl.c.
OT_OBJ_T tclmqmsgque_MqStatusIsEF_ToString | ( | const enum MqStatusIsEF | type | ) |
Definition at line 336 of file LibMqMsgque_tcl.c.
OT_OBJ_T tclmqmsgque_MqTransTypeE_ToString | ( | const enum MqTransTypeE | type | ) |
Definition at line 350 of file LibMqMsgque_tcl.c.
OT_OBJ_T tclmqmsgque_MqWaitOnEventE_ToString | ( | const enum MqWaitOnEventE | type | ) |
Definition at line 362 of file LibMqMsgque_tcl.c.