MqMsgque PACKAGE - enum definition … More...
Enum To String | |
OT_OBJ_T | atlmqmsgque_MqFactoryE_ToString (const enum MqFactoryE type) |
OT_OBJ_T | atlmqmsgque_MqHandShakeE_ToString (const enum MqHandShakeE type) |
OT_OBJ_T | atlmqmsgque_MqIdentE_ToString (const enum MqIdentE type) |
OT_OBJ_T | atlmqmsgque_MqIoComE_ToString (const enum MqIoComE type) |
OT_OBJ_T | atlmqmsgque_MqSlaveE_ToString (const enum MqSlaveE type) |
OT_OBJ_T | atlmqmsgque_MqStartE_ToString (const enum MqStartE type) |
OT_OBJ_T | atlmqmsgque_MqStatusIsEF_ToString (const enum MqStatusIsEF type) |
OT_OBJ_T | atlmqmsgque_MqTransTypeE_ToString (const enum MqTransTypeE type) |
OT_OBJ_T | atlmqmsgque_MqWaitOnEventE_ToString (const enum MqWaitOnEventE type) |
Enum From Obj | |
int | atlmqmsgque_Get_MqIdentE_FromObj (MK_RT mkrt, OT_ENV_T interp, OT_OBJ_T enumE, enum MqIdentE *ret) |
int | atlmqmsgque_Get_MqSlaveE_FromObj (MK_RT mkrt, OT_ENV_T interp, OT_OBJ_T enumE, enum MqSlaveE *ret) |
int | atlmqmsgque_Get_MqStartE_FromObj (MK_RT mkrt, OT_ENV_T interp, OT_OBJ_T enumE, enum MqStartE *ret) |
int | atlmqmsgque_Get_MqStatusIsEF_FromObj (MK_RT mkrt, OT_ENV_T interp, OT_OBJ_T enumE, enum MqStatusIsEF *ret) |
int | atlmqmsgque_Get_MqWaitOnEventE_FromObj (MK_RT mkrt, OT_ENV_T interp, OT_OBJ_T enumE, enum MqWaitOnEventE *ret) |
MqMsgque PACKAGE - enum definition …
Atl 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.
"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 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.
Example from Filter4.atl
→ use ProcessEvent MQ_WAIT_FOREVER
MqMsgque::Main { # !!ATTENTION!! if you put the "MqFactoryC::Add" outsite of "MqMsgque::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::Initial [MqFactoryC::Add ::Filter4 ] set srv [myooX::NewN ::Filter4] try { MqContextC::LinkCreate $srv {*}$argv MqContextC::ProcessEvent $srv MQ_WAIT_FOREVER } on error {} { MqContextC::ErrorCatch $srv } finally { MqContextC::Exit $srv } }
read more at: MkKernel_Enum_C_API
int atlmqmsgque_Get_MqIdentE_FromObj | ( | MK_RT | mkrt, |
OT_ENV_T | interp, | ||
OT_OBJ_T | enumE, | ||
enum MqIdentE * | ret ) |
Definition at line 385 of file LibMqMsgque_atl.c.
int atlmqmsgque_Get_MqSlaveE_FromObj | ( | MK_RT | mkrt, |
OT_ENV_T | interp, | ||
OT_OBJ_T | enumE, | ||
enum MqSlaveE * | ret ) |
Definition at line 403 of file LibMqMsgque_atl.c.
int atlmqmsgque_Get_MqStartE_FromObj | ( | MK_RT | mkrt, |
OT_ENV_T | interp, | ||
OT_OBJ_T | enumE, | ||
enum MqStartE * | ret ) |
Definition at line 433 of file LibMqMsgque_atl.c.
int atlmqmsgque_Get_MqStatusIsEF_FromObj | ( | MK_RT | mkrt, |
OT_ENV_T | interp, | ||
OT_OBJ_T | enumE, | ||
enum MqStatusIsEF * | ret ) |
Definition at line 457 of file LibMqMsgque_atl.c.
int atlmqmsgque_Get_MqWaitOnEventE_FromObj | ( | MK_RT | mkrt, |
OT_ENV_T | interp, | ||
OT_OBJ_T | enumE, | ||
enum MqWaitOnEventE * | ret ) |
Definition at line 488 of file LibMqMsgque_atl.c.
OT_OBJ_T atlmqmsgque_MqFactoryE_ToString | ( | const enum MqFactoryE | type | ) |
Definition at line 272 of file LibMqMsgque_atl.c.
OT_OBJ_T atlmqmsgque_MqHandShakeE_ToString | ( | const enum MqHandShakeE | type | ) |
Definition at line 284 of file LibMqMsgque_atl.c.
Definition at line 294 of file LibMqMsgque_atl.c.
Definition at line 303 of file LibMqMsgque_atl.c.
|
static |
Atl:
→ C-API (static) MqIdentE [MqMsgque::IdentE_FromInt value:int32]
return the MqIdentE from integer …
Definition at line 580 of file LibMqMsgque_atl.c.
|
static |
Atl:
→ C-API (static) int32 [MqMsgque::IdentE_ToInt value:MqIdentE]
return the MqIdentE as integer …
Definition at line 667 of file LibMqMsgque_atl.c.
|
static |
Atl:
→ C-API (static) string [MqMsgque::IdentE_ToString value:MqIdentE]
return the MqIdentE as string …
Definition at line 682 of file LibMqMsgque_atl.c.
|
static |
Atl:
→ C-API (static) MqSlaveE [MqMsgque::SlaveE_FromInt value:int32]
return the MqSlaveE from integer …
Definition at line 597 of file LibMqMsgque_atl.c.
|
static |
Atl:
→ C-API (static) int32 [MqMsgque::SlaveE_ToInt value:MqSlaveE]
return the MqSlaveE as integer …
Definition at line 697 of file LibMqMsgque_atl.c.
|
static |
Atl:
→ C-API (static) string [MqMsgque::SlaveE_ToString value:MqSlaveE]
return the MqSlaveE as string …
Definition at line 712 of file LibMqMsgque_atl.c.
|
static |
Atl:
→ C-API (static) MqStartE [MqMsgque::StartE_FromInt value:int32]
return the MqStartE from integer …
Definition at line 614 of file LibMqMsgque_atl.c.
|
static |
Atl:
→ C-API (static) int32 [MqMsgque::StartE_ToInt value:MqStartE]
return the MqStartE as integer …
Definition at line 727 of file LibMqMsgque_atl.c.
|
static |
Atl:
→ C-API (static) string [MqMsgque::StartE_ToString value:MqStartE]
return the MqStartE as string …
Definition at line 742 of file LibMqMsgque_atl.c.
|
static |
Atl:
→ C-API (static) MqStatusIsEF [MqMsgque::StatusIsEF_FromInt value:int32]
return the MqStatusIsEF from integer …
Definition at line 631 of file LibMqMsgque_atl.c.
|
static |
Atl:
→ C-API (static) int32 [MqMsgque::StatusIsEF_ToInt value:MqStatusIsEF]
return the MqStatusIsEF as integer …
Definition at line 757 of file LibMqMsgque_atl.c.
|
static |
Atl:
→ C-API (static) string [MqMsgque::StatusIsEF_ToString value:MqStatusIsEF]
return the MqStatusIsEF as string …
Definition at line 772 of file LibMqMsgque_atl.c.
|
static |
Atl:
→ C-API (static) MqWaitOnEventE [MqMsgque::WaitOnEventE_FromInt value:int32]
return the MqWaitOnEventE from integer …
Definition at line 648 of file LibMqMsgque_atl.c.
|
static |
Atl:
→ C-API (static) int32 [MqMsgque::WaitOnEventE_ToInt value:MqWaitOnEventE]
return the MqWaitOnEventE as integer …
Definition at line 787 of file LibMqMsgque_atl.c.
|
static |
Atl:
→ C-API (static) string [MqMsgque::WaitOnEventE_ToString value:MqWaitOnEventE]
return the MqWaitOnEventE as string …
Definition at line 802 of file LibMqMsgque_atl.c.
Definition at line 315 of file LibMqMsgque_atl.c.
Definition at line 326 of file LibMqMsgque_atl.c.
OT_OBJ_T atlmqmsgque_MqStatusIsEF_ToString | ( | const enum MqStatusIsEF | type | ) |
Definition at line 337 of file LibMqMsgque_atl.c.
OT_OBJ_T atlmqmsgque_MqTransTypeE_ToString | ( | const enum MqTransTypeE | type | ) |
Definition at line 351 of file LibMqMsgque_atl.c.
OT_OBJ_T atlmqmsgque_MqWaitOnEventE_ToString | ( | const enum MqWaitOnEventE | type | ) |
Definition at line 363 of file LibMqMsgque_atl.c.