theLink 10.0
Loading...
Searching...
No Matches
MqMsgque_Enum_TCL_API

MqMsgque PACKAGE - enum definition … More...

+ Collaboration diagram for MqMsgque_Enum_TCL_API:

Functions

static OT_ProcRet tclmqmsgque_MqMsgque_IdentE_FromInt (OtClass_ARGS)
  Tcl: (static) MqIdentE [MqMsgque IdentE_FromInt value:int32] C-API
return the MqIdentE from integer …
 
static OT_ProcRet tclmqmsgque_MqMsgque_SlaveE_FromInt (OtClass_ARGS)
  Tcl: (static) MqSlaveE [MqMsgque SlaveE_FromInt value:int32] C-API
return the MqSlaveE from integer …
 
static OT_ProcRet tclmqmsgque_MqMsgque_StartE_FromInt (OtClass_ARGS)
  Tcl: (static) MqStartE [MqMsgque StartE_FromInt value:int32] C-API
return the MqStartE from integer …
 
static OT_ProcRet tclmqmsgque_MqMsgque_StatusIsEF_FromInt (OtClass_ARGS)
  Tcl: (static) MqStatusIsEF [MqMsgque StatusIsEF_FromInt value:int32] C-API
return the MqStatusIsEF from integer …
 
static OT_ProcRet tclmqmsgque_MqMsgque_WaitOnEventE_FromInt (OtClass_ARGS)
  Tcl: (static) MqWaitOnEventE [MqMsgque WaitOnEventE_FromInt value:int32] C-API
return the MqWaitOnEventE from integer …
 
static OT_ProcRet tclmqmsgque_MqMsgque_IdentE_ToInt (OtClass_ARGS)
  Tcl: (static) int32 [MqMsgque IdentE_ToInt value:MqIdentE] C-API
return the MqIdentE as integer …
 
static OT_ProcRet tclmqmsgque_MqMsgque_IdentE_ToString (OtClass_ARGS)
  Tcl: (static) string [MqMsgque IdentE_ToString value:MqIdentE] C-API
return the MqIdentE as string …
 
static OT_ProcRet tclmqmsgque_MqMsgque_SlaveE_ToInt (OtClass_ARGS)
  Tcl: (static) int32 [MqMsgque SlaveE_ToInt value:MqSlaveE] C-API
return the MqSlaveE as integer …
 
static OT_ProcRet tclmqmsgque_MqMsgque_SlaveE_ToString (OtClass_ARGS)
  Tcl: (static) string [MqMsgque SlaveE_ToString value:MqSlaveE] C-API
return the MqSlaveE as string …
 
static OT_ProcRet tclmqmsgque_MqMsgque_StartE_ToInt (OtClass_ARGS)
  Tcl: (static) int32 [MqMsgque StartE_ToInt value:MqStartE] C-API
return the MqStartE as integer …
 
static OT_ProcRet tclmqmsgque_MqMsgque_StartE_ToString (OtClass_ARGS)
  Tcl: (static) string [MqMsgque StartE_ToString value:MqStartE] C-API
return the MqStartE as string …
 
static OT_ProcRet tclmqmsgque_MqMsgque_StatusIsEF_ToInt (OtClass_ARGS)
  Tcl: (static) int32 [MqMsgque StatusIsEF_ToInt value:MqStatusIsEF] C-API
return the MqStatusIsEF as integer …
 
static OT_ProcRet tclmqmsgque_MqMsgque_StatusIsEF_ToString (OtClass_ARGS)
  Tcl: (static) string [MqMsgque StatusIsEF_ToString value:MqStatusIsEF] C-API
return the MqStatusIsEF as string …
 
static OT_ProcRet tclmqmsgque_MqMsgque_WaitOnEventE_ToInt (OtClass_ARGS)
  Tcl: (static) int32 [MqMsgque WaitOnEventE_ToInt value:MqWaitOnEventE] C-API
return the MqWaitOnEventE as integer …
 
static OT_ProcRet tclmqmsgque_MqMsgque_WaitOnEventE_ToString (OtClass_ARGS)
  Tcl: (static) string [MqMsgque WaitOnEventE_ToString value:MqWaitOnEventE] C-API
return the MqWaitOnEventE as string …
 

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)
 

Detailed Description

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 :

int MQ(Get_MqWaitOnEventE_FromObj) (MK_RT_ARGS OT_ENV_T interp, OT_OBJ_T enumE, enum MqWaitOnEventE *ret) {
const static struct LookupEnumE keys[] = {
{ "NO" , MQ_WAIT_NO },
{ "OWN" , MQ_WAIT_OWN },
{ "ONCE" , MQ_WAIT_ONCE },
{ "FOREVER" , MQ_WAIT_FOREVER },
{ "WAIT_NO" , MQ_WAIT_NO },
{ "WAIT_OWN" , MQ_WAIT_OWN },
{ "WAIT_ONCE" , MQ_WAIT_ONCE },
{ "MQ_WAIT_NO" , MQ_WAIT_NO },
{ "MQ_WAIT_OWN" , MQ_WAIT_OWN },
{ "WAIT_FOREVER" , MQ_WAIT_FOREVER },
{ "MQ_WAIT_ONCE" , MQ_WAIT_ONCE },
{ "MQ_WAIT_FOREVER" , MQ_WAIT_FOREVER },
{ NULL , 0 },
};
int index;
OtErrorCheckLng (Tcl_GetIndexFromObjStruct (interp, enumE, &keys,
sizeof(struct LookupClassS), "enum", TCL_EXACT, &index));
*ret = keys[index].val;
return TCL_OK;
}
#define OtErrorCheckLng(cmd)
Tcl_Interp * OT_ENV_T
Tcl_Obj * OT_OBJ_T
#define MQ(n)
#define MK_RT_ARGS
MqWaitOnEventE
wait for an event? …
@ MQ_WAIT_ONCE
Wait maximum timeout seconds for one new event, doesn't matter which context the event belongs to or ...
@ MQ_WAIT_OWN
Wait maximum timeout seconds for one new event that belongs to the current context or raise an timeou...
@ MQ_WAIT_NO
Check for one event but do not wait …
@ MQ_WAIT_FOREVER
Wait maximum timeout seconds for an event or raise an timeout-error …

to return the integer identifier for an enum-definition-string or an error if string is not valid.

A valid string for an enum-value is any unique abbreviation of the original enum-value:

The tcl-c-check-proc is used in a tcl-c-api-wrapper like :

static OT_ProcRet NS(MqMsgque_WaitOnEventE_ToString) (OtClass_ARGS) {
OT_SETUP_ONEARG(LogWaitOnEventE_doc)
enum MqWaitOnEventE val = 0;
OT_retObj_SET_STR(MqWaitOnEventE_String (val))
goto end;
end:
}
#define OT_SETUP_ONEARG(d)
#define OT_retObj_SET_Error
#define OT_CHECK_REQUIRED(val)
#define OT_CHECK_ENUM(ename, val)
#define OT_retObj_RETURN
#define OT_retObj_SET_STR(nat)
#define OT_CHECK_NOARGS
#define OT_ProcRet
#define OT_SETUP_hdl_static
#define OtClass_ARGS
#define NS(n)
#define error
Definition high_lng.h:339

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

Function Documentation

◆ tclmqmsgque_Get_MqIdentE_FromObj()

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.

384 {
385 const static struct LookupEnumE keys[] = {
386 { "PREFIX" , MQ_IDENT_PREFIX },
387 { "FACTORY" , MQ_IDENT_FACTORY },
388 { "IDENT_PREFIX" , MQ_IDENT_PREFIX },
389 { "IDENT_FACTORY" , MQ_IDENT_FACTORY },
390 { "MQ_IDENT_PREFIX" , MQ_IDENT_PREFIX },
391 { "MQ_IDENT_FACTORY" , MQ_IDENT_FACTORY },
392 { NULL , 0 },
393 };
394
395 int index;
396 OtErrorCheckLng (Tcl_GetIndexFromObjStruct (interp, enumE, &keys,
397 sizeof(struct LookupClassS), "enum", TCL_EXACT, &index));
398 *ret = keys[index].val;
399 return TCL_OK;
400}
@ MQ_IDENT_FACTORY
value from MqFactoryS::originalIdent
@ MQ_IDENT_PREFIX
value from MqConfigS::dispPrefix

◆ tclmqmsgque_Get_MqSlaveE_FromObj()

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.

402 {
403 const static struct LookupEnumE keys[] = {
404 { "MAX" , MQ_SLAVE_MAX },
405 { "USER" , MQ_SLAVE_USER },
406 { "OTHER" , MQ_SLAVE_OTHER },
407 { "MASTER" , MQ_SLAVE_MASTER },
408 { "FILTER" , MQ_SLAVE_FILTER },
409 { "LOOPBACK" , MQ_SLAVE_LOOPBACK },
410 { "SLAVE_MAX" , MQ_SLAVE_MAX },
411 { "SLAVE_USER" , MQ_SLAVE_USER },
412 { "SLAVE_OTHER" , MQ_SLAVE_OTHER },
413 { "SLAVE_FILTER" , MQ_SLAVE_FILTER },
414 { "SLAVE_MASTER" , MQ_SLAVE_MASTER },
415 { "MQ_SLAVE_MAX" , MQ_SLAVE_MAX },
416 { "MQ_SLAVE_USER" , MQ_SLAVE_USER },
417 { "MQ_SLAVE_OTHER" , MQ_SLAVE_OTHER },
418 { "SLAVE_LOOPBACK" , MQ_SLAVE_LOOPBACK },
419 { "MQ_SLAVE_FILTER" , MQ_SLAVE_FILTER },
420 { "MQ_SLAVE_MASTER" , MQ_SLAVE_MASTER },
421 { "MQ_SLAVE_LOOPBACK" , MQ_SLAVE_LOOPBACK },
422 { NULL , 0 },
423 };
424
425 int index;
426 OtErrorCheckLng (Tcl_GetIndexFromObjStruct (interp, enumE, &keys,
427 sizeof(struct LookupClassS), "enum", TCL_EXACT, &index));
428 *ret = keys[index].val;
429 return TCL_OK;
430}
@ MQ_SLAVE_OTHER
internal: on the master-ctx get the slave-ctx and on the slave-ctx get the master-ctx
@ MQ_SLAVE_FILTER
internal: the filter-slave-id, (on a master get the filter-slave)
@ MQ_SLAVE_USER
internal: start of user-defined-slave-id
@ MQ_SLAVE_MASTER
internal: the master-slave-id, (on a slave get the master)
@ MQ_SLAVE_LOOPBACK
internal: the loopback-slave-id, (call my own services)
@ MQ_SLAVE_MAX
internal: the maximum slave-id …

◆ tclmqmsgque_Get_MqStartE_FromObj()

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.

432 {
433 const static struct LookupEnumE keys[] = {
434 { "FORK" , MQ_START_FORK },
435 { "SPAWN" , MQ_START_SPAWN },
436 { "THREAD" , MQ_START_THREAD },
437 { "DEFAULT" , MQ_START_DEFAULT },
438 { "START_FORK" , MQ_START_FORK },
439 { "START_SPAWN" , MQ_START_SPAWN },
440 { "START_THREAD" , MQ_START_THREAD },
441 { "MQ_START_FORK" , MQ_START_FORK },
442 { "START_DEFAULT" , MQ_START_DEFAULT },
443 { "MQ_START_SPAWN" , MQ_START_SPAWN },
444 { "MQ_START_THREAD" , MQ_START_THREAD },
445 { "MQ_START_DEFAULT" , MQ_START_DEFAULT },
446 { NULL , 0 },
447 };
448
449 int index;
450 OtErrorCheckLng (Tcl_GetIndexFromObjStruct (interp, enumE, &keys,
451 sizeof(struct LookupClassS), "enum", TCL_EXACT, &index));
452 *ret = keys[index].val;
453 return TCL_OK;
454}
@ MQ_START_SPAWN
create entity as spawn process
@ MQ_START_DEFAULT
use application-context default entity creation
@ MQ_START_THREAD
create entity as thread
@ MQ_START_FORK
create entity as fork

◆ tclmqmsgque_Get_MqStatusIsEF_FromObj()

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.

456 {
457 const static struct LookupEnumE keys[] = {
458 { "DUP" , MQ_STATUS_IS_DUP },
459 { "FORK" , MQ_STATUS_IS_FORK },
460 { "SPAWN" , MQ_STATUS_IS_SPAWN },
461 { "THREAD" , MQ_STATUS_IS_THREAD },
462 { "IS_DUP" , MQ_STATUS_IS_DUP },
463 { "INITIAL" , MQ_STATUS_IS_INITIAL },
464 { "IS_FORK" , MQ_STATUS_IS_FORK },
465 { "IS_SPAWN" , MQ_STATUS_IS_SPAWN },
466 { "IS_THREAD" , MQ_STATUS_IS_THREAD },
467 { "IS_INITIAL" , MQ_STATUS_IS_INITIAL },
468 { "STATUS_IS_DUP" , MQ_STATUS_IS_DUP },
469 { "STATUS_IS_FORK" , MQ_STATUS_IS_FORK },
470 { "STATUS_IS_SPAWN" , MQ_STATUS_IS_SPAWN },
471 { "MQ_STATUS_IS_DUP" , MQ_STATUS_IS_DUP },
472 { "STATUS_IS_THREAD" , MQ_STATUS_IS_THREAD },
473 { "STATUS_IS_INITIAL" , MQ_STATUS_IS_INITIAL },
474 { "MQ_STATUS_IS_FORK" , MQ_STATUS_IS_FORK },
475 { "MQ_STATUS_IS_SPAWN" , MQ_STATUS_IS_SPAWN },
476 { "MQ_STATUS_IS_THREAD" , MQ_STATUS_IS_THREAD },
477 { "MQ_STATUS_IS_INITIAL" , MQ_STATUS_IS_INITIAL },
478 { NULL , 0 },
479 };
480
481 int index;
482 OtErrorCheckLng(MK(EnumFlagWorker)(MK_RT_CALL interp,keys,enumE,&index));
483 *ret = (enum MqStatusIsEF) index;
484 return TCL_OK;
485}
#define MK(n)
#define MK_RT_CALL
MqStatusIsEF
Information about how the context was created.
@ MQ_STATUS_IS_FORK
context is created as a fork
@ MQ_STATUS_IS_DUP
context is created as a duplicate of an other context
@ MQ_STATUS_IS_THREAD
context is created as a thread
@ MQ_STATUS_IS_INITIAL
context is the first context
@ MQ_STATUS_IS_SPAWN
context is created as a spawn

◆ tclmqmsgque_Get_MqWaitOnEventE_FromObj()

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.

487 {
488 const static struct LookupEnumE keys[] = {
489 { "NO" , MQ_WAIT_NO },
490 { "OWN" , MQ_WAIT_OWN },
491 { "ONCE" , MQ_WAIT_ONCE },
492 { "FOREVER" , MQ_WAIT_FOREVER },
493 { "WAIT_NO" , MQ_WAIT_NO },
494 { "WAIT_OWN" , MQ_WAIT_OWN },
495 { "WAIT_ONCE" , MQ_WAIT_ONCE },
496 { "MQ_WAIT_NO" , MQ_WAIT_NO },
497 { "MQ_WAIT_OWN" , MQ_WAIT_OWN },
498 { "WAIT_FOREVER" , MQ_WAIT_FOREVER },
499 { "MQ_WAIT_ONCE" , MQ_WAIT_ONCE },
500 { "MQ_WAIT_FOREVER" , MQ_WAIT_FOREVER },
501 { NULL , 0 },
502 };
503
504 int index;
505 OtErrorCheckLng (Tcl_GetIndexFromObjStruct (interp, enumE, &keys,
506 sizeof(struct LookupClassS), "enum", TCL_EXACT, &index));
507 *ret = keys[index].val;
508 return TCL_OK;
509}

◆ tclmqmsgque_MqFactoryE_ToString()

OT_OBJ_T tclmqmsgque_MqFactoryE_ToString ( const enum MqFactoryE type)

Definition at line 271 of file LibMqMsgque_tcl.c.

272{
273 OT_OBJ_T tmpO = Tcl_NewObj();
274 if (mk_bit_compare(type,MQ_FACTORY_NEW_INIT )) ot_enum_append(tmpO,"INIT" ) ;
275 if (mk_bit_compare(type,MQ_FACTORY_NEW_CHILD )) ot_enum_append(tmpO,"CHILD" ) ;
276 if (mk_bit_compare(type,MQ_FACTORY_NEW_SLAVE )) ot_enum_append(tmpO,"SLAVE" ) ;
277 if (mk_bit_compare(type,MQ_FACTORY_NEW_FORK )) ot_enum_append(tmpO,"FORK" ) ;
278 if (mk_bit_compare(type,MQ_FACTORY_NEW_THREAD)) ot_enum_append(tmpO,"THREAD") ;
279 if (mk_bit_compare(type,MQ_FACTORY_NEW_FILTER)) ot_enum_append(tmpO,"FILTER") ;
280 return tmpO;
281}
#define ot_enum_append(_o, _s)
#define mk_bit_compare(t, f)
@ MQ_FACTORY_NEW_FILTER
create object as a filter
@ MQ_FACTORY_NEW_FORK
create object as a fork process
@ MQ_FACTORY_NEW_THREAD
create object as a thread
@ MQ_FACTORY_NEW_INIT
initial object, nothing else is known
@ MQ_FACTORY_NEW_SLAVE
create object as a slave of an other object
@ MQ_FACTORY_NEW_CHILD
create object as a child of an other object

◆ tclmqmsgque_MqHandShakeE_ToString()

OT_OBJ_T tclmqmsgque_MqHandShakeE_ToString ( const enum MqHandShakeE type)

Definition at line 283 of file LibMqMsgque_tcl.c.

284{
285 switch (type) {
286 case MQ_HANDSHAKE_START : return ot_fixstrobj("START") ;
287 case MQ_HANDSHAKE_OK : return ot_fixstrobj("OK" ) ;
288 case MQ_HANDSHAKE_ERROR : return ot_fixstrobj("ERROR") ;
289 }
290 return ot_fixstrobj("NOTHING");
291}
#define ot_fixstrobj(_s)
@ MQ_HANDSHAKE_OK
direction: server -> client
@ MQ_HANDSHAKE_START
direction: client -> server
@ MQ_HANDSHAKE_ERROR
direction: server -> client

◆ tclmqmsgque_MqIdentE_ToString()

OT_OBJ_T tclmqmsgque_MqIdentE_ToString ( const enum MqIdentE type)

Definition at line 293 of file LibMqMsgque_tcl.c.

294{
295 switch (type) {
296 case MQ_IDENT_PREFIX : return ot_fixstrobj("PREFIX" ) ;
297 case MQ_IDENT_FACTORY : return ot_fixstrobj("FACTORY") ;
298 }
299 return ot_fixstrobj("NOTHING");
300}

◆ tclmqmsgque_MqIoComE_ToString()

OT_OBJ_T tclmqmsgque_MqIoComE_ToString ( const enum MqIoComE type)

Definition at line 302 of file LibMqMsgque_tcl.c.

303{
304 switch (type) {
305 case MQ_IO_PIPE : return ot_fixstrobj("PIPE") ;
306 case MQ_IO_UDS : return ot_fixstrobj("UDS" ) ;
307 case MQ_IO_TCP : return ot_fixstrobj("TCP" ) ;
308 case MQ_IO_INIT : return ot_fixstrobj("INIT") ;
309 case MQ_IO_LOOP : return ot_fixstrobj("LOOP") ;
310 }
311 return ot_fixstrobj("NOTHING");
312}
@ MQ_IO_UDS
using a uds socket
@ MQ_IO_LOOP
using pipe socket as stdin and stdout
@ MQ_IO_PIPE
using a pipe socket (most internal usage)
@ MQ_IO_INIT
using stdin and stdout
@ MQ_IO_TCP
using a tcp socket

◆ tclmqmsgque_MqMsgque_IdentE_FromInt()

static OT_ProcRet tclmqmsgque_MqMsgque_IdentE_FromInt ( OtClass_ARGS )
static

Tcl: (static) MqIdentE [MqMsgque IdentE_FromInt value:int32] C-API
return the MqIdentE from integer …

Definition at line 626 of file LibMqMsgque_tcl.c.

626 {
629 MK_I32 value = 0;
632 enum MqIdentE value_out;
634 OT_retObj_SET(OT_NEW_Mq_enum_OBJ(IdentE,value_out));
635 goto end;
636 error:
638 end:
640}
#define OT_CHECK_NI4(val)
#define OT_retObj_SET(val)
#define MkErrorC_Check(mng, PROC)
#define IdentE_FromInt_doc
#define OT_NEW_Mq_enum_OBJ(typ, val)
#define MK_ERROR_FORMAT
signed int MK_I32
enum MkErrorE MqIdentE_FromInt(MK_I32 const value, enum MqIdentE *value_out)
return the MqIdentE from integer …
MqIdentE
identify the application using prefix (default) or factory …

◆ tclmqmsgque_MqMsgque_IdentE_ToInt()

static OT_ProcRet tclmqmsgque_MqMsgque_IdentE_ToInt ( OtClass_ARGS )
static

Tcl: (static) int32 [MqMsgque IdentE_ToInt value:MqIdentE] C-API
return the MqIdentE as integer …

Definition at line 713 of file LibMqMsgque_tcl.c.

713 {
716 enum MqIdentE value = 0;
720 goto end;
721 error:
723 end:
725}
#define OT_retObj_SET_I32(nat)
#define IdentE_ToInt_doc
static MK_I32 MqIdentE_ToInt(enum MqIdentE value)
return the MqIdentE as integer …

◆ tclmqmsgque_MqMsgque_IdentE_ToString()

static OT_ProcRet tclmqmsgque_MqMsgque_IdentE_ToString ( OtClass_ARGS )
static

Tcl: (static) string [MqMsgque IdentE_ToString value:MqIdentE] C-API
return the MqIdentE as string …

Definition at line 728 of file LibMqMsgque_tcl.c.

728 {
731 enum MqIdentE value = 0;
735 goto end;
736 error:
738 end:
740}
#define IdentE_ToString_doc
MK_STRN MqIdentE_ToString(enum MqIdentE value)
return the MqIdentE as string …

◆ tclmqmsgque_MqMsgque_SlaveE_FromInt()

static OT_ProcRet tclmqmsgque_MqMsgque_SlaveE_FromInt ( OtClass_ARGS )
static

Tcl: (static) MqSlaveE [MqMsgque SlaveE_FromInt value:int32] C-API
return the MqSlaveE from integer …

Definition at line 643 of file LibMqMsgque_tcl.c.

643 {
646 MK_I32 value = 0;
649 enum MqSlaveE value_out;
651 OT_retObj_SET(OT_NEW_Mq_enum_OBJ(SlaveE,value_out));
652 goto end;
653 error:
655 end:
657}
#define SlaveE_FromInt_doc
MqSlaveE
predefined slave-id for well known slaves …
enum MkErrorE MqSlaveE_FromInt(MK_I32 const value, enum MqSlaveE *value_out)
return the MqSlaveE from integer …

◆ tclmqmsgque_MqMsgque_SlaveE_ToInt()

static OT_ProcRet tclmqmsgque_MqMsgque_SlaveE_ToInt ( OtClass_ARGS )
static

Tcl: (static) int32 [MqMsgque SlaveE_ToInt value:MqSlaveE] C-API
return the MqSlaveE as integer …

Definition at line 743 of file LibMqMsgque_tcl.c.

743 {
746 enum MqSlaveE value = 0;
750 goto end;
751 error:
753 end:
755}
#define SlaveE_ToInt_doc
static MK_I32 MqSlaveE_ToInt(enum MqSlaveE value)
return the MqSlaveE as integer …

◆ tclmqmsgque_MqMsgque_SlaveE_ToString()

static OT_ProcRet tclmqmsgque_MqMsgque_SlaveE_ToString ( OtClass_ARGS )
static

Tcl: (static) string [MqMsgque SlaveE_ToString value:MqSlaveE] C-API
return the MqSlaveE as string …

Definition at line 758 of file LibMqMsgque_tcl.c.

758 {
761 enum MqSlaveE value = 0;
765 goto end;
766 error:
768 end:
770}
#define SlaveE_ToString_doc
MK_STRN MqSlaveE_ToString(enum MqSlaveE value)
return the MqSlaveE as string …

◆ tclmqmsgque_MqMsgque_StartE_FromInt()

static OT_ProcRet tclmqmsgque_MqMsgque_StartE_FromInt ( OtClass_ARGS )
static

Tcl: (static) MqStartE [MqMsgque StartE_FromInt value:int32] C-API
return the MqStartE from integer …

Definition at line 660 of file LibMqMsgque_tcl.c.

660 {
663 MK_I32 value = 0;
666 enum MqStartE value_out;
668 OT_retObj_SET(OT_NEW_Mq_enum_OBJ(StartE,value_out));
669 goto end;
670 error:
672 end:
674}
#define StartE_FromInt_doc
enum MkErrorE MqStartE_FromInt(MK_I32 const value, enum MqStartE *value_out)
return the MqStartE from integer …
MqStartE
User preferences on HOWTO start a new entity.

◆ tclmqmsgque_MqMsgque_StartE_ToInt()

static OT_ProcRet tclmqmsgque_MqMsgque_StartE_ToInt ( OtClass_ARGS )
static

Tcl: (static) int32 [MqMsgque StartE_ToInt value:MqStartE] C-API
return the MqStartE as integer …

Definition at line 773 of file LibMqMsgque_tcl.c.

773 {
776 enum MqStartE value = 0;
780 goto end;
781 error:
783 end:
785}
#define StartE_ToInt_doc
static MK_I32 MqStartE_ToInt(enum MqStartE value)
return the MqStartE as integer …

◆ tclmqmsgque_MqMsgque_StartE_ToString()

static OT_ProcRet tclmqmsgque_MqMsgque_StartE_ToString ( OtClass_ARGS )
static

Tcl: (static) string [MqMsgque StartE_ToString value:MqStartE] C-API
return the MqStartE as string …

Definition at line 788 of file LibMqMsgque_tcl.c.

788 {
791 enum MqStartE value = 0;
795 goto end;
796 error:
798 end:
800}
#define StartE_ToString_doc
MK_STRN MqStartE_ToString(enum MqStartE value)
return the MqStartE as string …

◆ tclmqmsgque_MqMsgque_StatusIsEF_FromInt()

static OT_ProcRet tclmqmsgque_MqMsgque_StatusIsEF_FromInt ( OtClass_ARGS )
static

Tcl: (static) MqStatusIsEF [MqMsgque StatusIsEF_FromInt value:int32] C-API
return the MqStatusIsEF from integer …

Definition at line 677 of file LibMqMsgque_tcl.c.

677 {
680 MK_I32 value = 0;
683 enum MqStatusIsEF value_out;
685 OT_retObj_SET(OT_NEW_Mq_enum_OBJ(StatusIsEF,value_out));
686 goto end;
687 error:
689 end:
691}
#define StatusIsEF_FromInt_doc
enum MkErrorE MqStatusIsEF_FromInt(MK_I32 const value, enum MqStatusIsEF *value_out)
return the MqStatusIsEF from integer …

◆ tclmqmsgque_MqMsgque_StatusIsEF_ToInt()

static OT_ProcRet tclmqmsgque_MqMsgque_StatusIsEF_ToInt ( OtClass_ARGS )
static

Tcl: (static) int32 [MqMsgque StatusIsEF_ToInt value:MqStatusIsEF] C-API
return the MqStatusIsEF as integer …

Definition at line 803 of file LibMqMsgque_tcl.c.

803 {
806 enum MqStatusIsEF value = 0;
810 goto end;
811 error:
813 end:
815}
#define StatusIsEF_ToInt_doc
static MK_I32 MqStatusIsEF_ToInt(enum MqStatusIsEF value)
return the MqStatusIsEF as integer …

◆ tclmqmsgque_MqMsgque_StatusIsEF_ToString()

static OT_ProcRet tclmqmsgque_MqMsgque_StatusIsEF_ToString ( OtClass_ARGS )
static

Tcl: (static) string [MqMsgque StatusIsEF_ToString value:MqStatusIsEF] C-API
return the MqStatusIsEF as string …

Definition at line 818 of file LibMqMsgque_tcl.c.

818 {
821 enum MqStatusIsEF value = 0;
825 goto end;
826 error:
828 end:
830}
#define StatusIsEF_ToString_doc
MK_STRN MqStatusIsEF_ToString(enum MqStatusIsEF value)
return the MqStatusIsEF as string …

◆ tclmqmsgque_MqMsgque_WaitOnEventE_FromInt()

static OT_ProcRet tclmqmsgque_MqMsgque_WaitOnEventE_FromInt ( OtClass_ARGS )
static

Tcl: (static) MqWaitOnEventE [MqMsgque WaitOnEventE_FromInt value:int32] C-API
return the MqWaitOnEventE from integer …

Definition at line 694 of file LibMqMsgque_tcl.c.

694 {
697 MK_I32 value = 0;
700 enum MqWaitOnEventE value_out;
702 OT_retObj_SET(OT_NEW_Mq_enum_OBJ(WaitOnEventE,value_out));
703 goto end;
704 error:
706 end:
708}
#define WaitOnEventE_FromInt_doc
enum MkErrorE MqWaitOnEventE_FromInt(MK_I32 const value, enum MqWaitOnEventE *value_out)
return the MqWaitOnEventE from integer …

◆ tclmqmsgque_MqMsgque_WaitOnEventE_ToInt()

static OT_ProcRet tclmqmsgque_MqMsgque_WaitOnEventE_ToInt ( OtClass_ARGS )
static

Tcl: (static) int32 [MqMsgque WaitOnEventE_ToInt value:MqWaitOnEventE] C-API
return the MqWaitOnEventE as integer …

Definition at line 833 of file LibMqMsgque_tcl.c.

833 {
836 enum MqWaitOnEventE value = 0;
840 goto end;
841 error:
843 end:
845}
#define WaitOnEventE_ToInt_doc
static MK_I32 MqWaitOnEventE_ToInt(enum MqWaitOnEventE value)
return the MqWaitOnEventE as integer …

◆ tclmqmsgque_MqMsgque_WaitOnEventE_ToString()

static OT_ProcRet tclmqmsgque_MqMsgque_WaitOnEventE_ToString ( OtClass_ARGS )
static

Tcl: (static) string [MqMsgque WaitOnEventE_ToString value:MqWaitOnEventE] C-API
return the MqWaitOnEventE as string …

Definition at line 848 of file LibMqMsgque_tcl.c.

848 {
851 enum MqWaitOnEventE value = 0;
855 goto end;
856 error:
858 end:
860}
#define WaitOnEventE_ToString_doc
MK_STRN MqWaitOnEventE_ToString(enum MqWaitOnEventE value)
return the MqWaitOnEventE as string …

◆ tclmqmsgque_MqSlaveE_ToString()

OT_OBJ_T tclmqmsgque_MqSlaveE_ToString ( const enum MqSlaveE type)

Definition at line 314 of file LibMqMsgque_tcl.c.

315{
316 switch (type) {
317 case MQ_SLAVE_LOOPBACK : return ot_fixstrobj("LOOPBACK") ;
318 case MQ_SLAVE_FILTER : return ot_fixstrobj("FILTER" ) ;
319 case MQ_SLAVE_USER : return ot_fixstrobj("USER" ) ;
320 case MQ_SLAVE_MAX : return ot_fixstrobj("MAX" ) ;
321 }
322 return ot_fixstrobj("NOTHING");
323}

◆ tclmqmsgque_MqStartE_ToString()

OT_OBJ_T tclmqmsgque_MqStartE_ToString ( const enum MqStartE type)

Definition at line 325 of file LibMqMsgque_tcl.c.

326{
327 switch (type) {
328 case MQ_START_DEFAULT : return ot_fixstrobj("DEFAULT") ;
329 case MQ_START_FORK : return ot_fixstrobj("FORK" ) ;
330 case MQ_START_THREAD : return ot_fixstrobj("THREAD" ) ;
331 case MQ_START_SPAWN : return ot_fixstrobj("SPAWN" ) ;
332 }
333 return ot_fixstrobj("NOTHING");
334}

◆ tclmqmsgque_MqStatusIsEF_ToString()

OT_OBJ_T tclmqmsgque_MqStatusIsEF_ToString ( const enum MqStatusIsEF type)

Definition at line 336 of file LibMqMsgque_tcl.c.

337{
338 if (type == MQ_STATUS_IS_INITIAL) {
339 return ot_fixstrobj("INITIAL");
340 } else {
341 OT_OBJ_T tmpO = Tcl_NewObj();
342 if (mk_bit_compare(type,MQ_STATUS_IS_DUP )) ot_enum_append(tmpO,"DUP" ) ;
343 if (mk_bit_compare(type,MQ_STATUS_IS_THREAD )) ot_enum_append(tmpO,"THREAD" ) ;
344 if (mk_bit_compare(type,MQ_STATUS_IS_FORK )) ot_enum_append(tmpO,"FORK" ) ;
345 if (mk_bit_compare(type,MQ_STATUS_IS_SPAWN )) ot_enum_append(tmpO,"SPAWN" ) ;
346 return tmpO;
347 }
348}

◆ tclmqmsgque_MqTransTypeE_ToString()

OT_OBJ_T tclmqmsgque_MqTransTypeE_ToString ( const enum MqTransTypeE type)

Definition at line 350 of file LibMqMsgque_tcl.c.

351{
352 switch (type) {
353 case MQ_TRANS_TYPE_WAIT : return ot_fixstrobj("WAIT" ) ;
354 case MQ_TRANS_TYPE_SUB : return ot_fixstrobj("SUB" ) ;
355 case MQ_TRANS_TYPE_CB : return ot_fixstrobj("CB" ) ;
356 case MQ_TRANS_TYPE_TRANS : return ot_fixstrobj("TRANS") ;
357 case MQ_TRANS_TYPE_NO : return ot_fixstrobj("NO" ) ;
358 }
359 return ot_fixstrobj("NOTHING");
360}
@ MQ_TRANS_TYPE_WAIT
'W' = MqSendEND_AND_WAIT
@ MQ_TRANS_TYPE_SUB
'S' = MqSendEND_AND_SUB
@ MQ_TRANS_TYPE_CB
'C' = MqSendEND_AND_CALLBACK
@ MQ_TRANS_TYPE_NO
'N' = MqSendEND
@ MQ_TRANS_TYPE_TRANS
'T' = MqSendEND_AND_TRANSACTION

◆ tclmqmsgque_MqWaitOnEventE_ToString()

OT_OBJ_T tclmqmsgque_MqWaitOnEventE_ToString ( const enum MqWaitOnEventE type)

Definition at line 362 of file LibMqMsgque_tcl.c.

363{
364 switch (type) {
365 case MQ_WAIT_NO : return ot_fixstrobj("NO" ) ;
366 case MQ_WAIT_ONCE : return ot_fixstrobj("ONCE" ) ;
367 case MQ_WAIT_OWN : return ot_fixstrobj("OWN" ) ;
368 case MQ_WAIT_FOREVER : return ot_fixstrobj("FOREVER") ;
369 }
370 return ot_fixstrobj("NOTHING");
371}