theLink 10.0
Loading...
Searching...
No Matches
MqMsgque_Enum_ATL_API

MqMsgque PACKAGE - enum definition … More...

+ Collaboration diagram for MqMsgque_Enum_ATL_API:

Functions

static OT_ProcRet atlmqmsgque_MqMsgque_IdentE_FromInt (OtClass_ARGS)
  Atl: (static) MqIdentE [MqMsgque::IdentE_FromInt value:int32] C-API
return the MqIdentE from integer …
 
static OT_ProcRet atlmqmsgque_MqMsgque_SlaveE_FromInt (OtClass_ARGS)
  Atl: (static) MqSlaveE [MqMsgque::SlaveE_FromInt value:int32] C-API
return the MqSlaveE from integer …
 
static OT_ProcRet atlmqmsgque_MqMsgque_StartE_FromInt (OtClass_ARGS)
  Atl: (static) MqStartE [MqMsgque::StartE_FromInt value:int32] C-API
return the MqStartE from integer …
 
static OT_ProcRet atlmqmsgque_MqMsgque_StatusIsEF_FromInt (OtClass_ARGS)
  Atl: (static) MqStatusIsEF [MqMsgque::StatusIsEF_FromInt value:int32] C-API
return the MqStatusIsEF from integer …
 
static OT_ProcRet atlmqmsgque_MqMsgque_WaitOnEventE_FromInt (OtClass_ARGS)
  Atl: (static) MqWaitOnEventE [MqMsgque::WaitOnEventE_FromInt value:int32] C-API
return the MqWaitOnEventE from integer …
 
static OT_ProcRet atlmqmsgque_MqMsgque_IdentE_ToInt (OtClass_ARGS)
  Atl: (static) int32 [MqMsgque::IdentE_ToInt value:MqIdentE] C-API
return the MqIdentE as integer …
 
static OT_ProcRet atlmqmsgque_MqMsgque_IdentE_ToString (OtClass_ARGS)
  Atl: (static) string [MqMsgque::IdentE_ToString value:MqIdentE] C-API
return the MqIdentE as string …
 
static OT_ProcRet atlmqmsgque_MqMsgque_SlaveE_ToInt (OtClass_ARGS)
  Atl: (static) int32 [MqMsgque::SlaveE_ToInt value:MqSlaveE] C-API
return the MqSlaveE as integer …
 
static OT_ProcRet atlmqmsgque_MqMsgque_SlaveE_ToString (OtClass_ARGS)
  Atl: (static) string [MqMsgque::SlaveE_ToString value:MqSlaveE] C-API
return the MqSlaveE as string …
 
static OT_ProcRet atlmqmsgque_MqMsgque_StartE_ToInt (OtClass_ARGS)
  Atl: (static) int32 [MqMsgque::StartE_ToInt value:MqStartE] C-API
return the MqStartE as integer …
 
static OT_ProcRet atlmqmsgque_MqMsgque_StartE_ToString (OtClass_ARGS)
  Atl: (static) string [MqMsgque::StartE_ToString value:MqStartE] C-API
return the MqStartE as string …
 
static OT_ProcRet atlmqmsgque_MqMsgque_StatusIsEF_ToInt (OtClass_ARGS)
  Atl: (static) int32 [MqMsgque::StatusIsEF_ToInt value:MqStatusIsEF] C-API
return the MqStatusIsEF as integer …
 
static OT_ProcRet atlmqmsgque_MqMsgque_StatusIsEF_ToString (OtClass_ARGS)
  Atl: (static) string [MqMsgque::StatusIsEF_ToString value:MqStatusIsEF] C-API
return the MqStatusIsEF as string …
 
static OT_ProcRet atlmqmsgque_MqMsgque_WaitOnEventE_ToInt (OtClass_ARGS)
  Atl: (static) int32 [MqMsgque::WaitOnEventE_ToInt value:MqWaitOnEventE] C-API
return the MqWaitOnEventE as integer …
 
static OT_ProcRet atlmqmsgque_MqMsgque_WaitOnEventE_ToString (OtClass_ARGS)
  Atl: (static) string [MqMsgque::WaitOnEventE_ToString value:MqWaitOnEventE] C-API
return the MqWaitOnEventE as string …
 

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)
 

Detailed Description

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 :

int MQ(Get_MqWaitOnEventE_FromObj) (MK_RT_ARGS Tcl_Interp *interp, Tcl_Obj *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 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 atl-c-check-proc is used in a atl-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 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

Function Documentation

◆ atlmqmsgque_Get_MqIdentE_FromObj()

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.

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

◆ atlmqmsgque_Get_MqSlaveE_FromObj()

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.

403 {
404 const static struct LookupEnumE keys[] = {
405 { "MAX" , MQ_SLAVE_MAX },
406 { "USER" , MQ_SLAVE_USER },
407 { "OTHER" , MQ_SLAVE_OTHER },
408 { "MASTER" , MQ_SLAVE_MASTER },
409 { "FILTER" , MQ_SLAVE_FILTER },
410 { "LOOPBACK" , MQ_SLAVE_LOOPBACK },
411 { "SLAVE_MAX" , MQ_SLAVE_MAX },
412 { "SLAVE_USER" , MQ_SLAVE_USER },
413 { "SLAVE_OTHER" , MQ_SLAVE_OTHER },
414 { "SLAVE_FILTER" , MQ_SLAVE_FILTER },
415 { "SLAVE_MASTER" , MQ_SLAVE_MASTER },
416 { "MQ_SLAVE_MAX" , MQ_SLAVE_MAX },
417 { "MQ_SLAVE_USER" , MQ_SLAVE_USER },
418 { "MQ_SLAVE_OTHER" , MQ_SLAVE_OTHER },
419 { "SLAVE_LOOPBACK" , MQ_SLAVE_LOOPBACK },
420 { "MQ_SLAVE_FILTER" , MQ_SLAVE_FILTER },
421 { "MQ_SLAVE_MASTER" , MQ_SLAVE_MASTER },
422 { "MQ_SLAVE_LOOPBACK" , MQ_SLAVE_LOOPBACK },
423 { NULL , 0 },
424 };
425
426 int index;
427 check_LNG(Tcl_GetIndexFromObjStruct (interp, enumE, &keys,
428 sizeof(struct LookupClassS), "enum", TCL_EXACT, &index)) return TCL_ERROR;
429 *ret = keys[index].val;
430 return TCL_OK;
431}
@ 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 …

◆ atlmqmsgque_Get_MqStartE_FromObj()

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.

433 {
434 const static struct LookupEnumE keys[] = {
435 { "FORK" , MQ_START_FORK },
436 { "SPAWN" , MQ_START_SPAWN },
437 { "THREAD" , MQ_START_THREAD },
438 { "DEFAULT" , MQ_START_DEFAULT },
439 { "START_FORK" , MQ_START_FORK },
440 { "START_SPAWN" , MQ_START_SPAWN },
441 { "START_THREAD" , MQ_START_THREAD },
442 { "MQ_START_FORK" , MQ_START_FORK },
443 { "START_DEFAULT" , MQ_START_DEFAULT },
444 { "MQ_START_SPAWN" , MQ_START_SPAWN },
445 { "MQ_START_THREAD" , MQ_START_THREAD },
446 { "MQ_START_DEFAULT" , MQ_START_DEFAULT },
447 { NULL , 0 },
448 };
449
450 int index;
451 check_LNG(Tcl_GetIndexFromObjStruct (interp, enumE, &keys,
452 sizeof(struct LookupClassS), "enum", TCL_EXACT, &index)) return TCL_ERROR;
453 *ret = keys[index].val;
454 return TCL_OK;
455}
@ 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

◆ atlmqmsgque_Get_MqStatusIsEF_FromObj()

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.

457 {
458 const static struct LookupEnumE keys[] = {
459 { "DUP" , MQ_STATUS_IS_DUP },
460 { "FORK" , MQ_STATUS_IS_FORK },
461 { "SPAWN" , MQ_STATUS_IS_SPAWN },
462 { "THREAD" , MQ_STATUS_IS_THREAD },
463 { "IS_DUP" , MQ_STATUS_IS_DUP },
464 { "INITIAL" , MQ_STATUS_IS_INITIAL },
465 { "IS_FORK" , MQ_STATUS_IS_FORK },
466 { "IS_SPAWN" , MQ_STATUS_IS_SPAWN },
467 { "IS_THREAD" , MQ_STATUS_IS_THREAD },
468 { "IS_INITIAL" , MQ_STATUS_IS_INITIAL },
469 { "STATUS_IS_DUP" , MQ_STATUS_IS_DUP },
470 { "STATUS_IS_FORK" , MQ_STATUS_IS_FORK },
471 { "STATUS_IS_SPAWN" , MQ_STATUS_IS_SPAWN },
472 { "MQ_STATUS_IS_DUP" , MQ_STATUS_IS_DUP },
473 { "STATUS_IS_THREAD" , MQ_STATUS_IS_THREAD },
474 { "STATUS_IS_INITIAL" , MQ_STATUS_IS_INITIAL },
475 { "MQ_STATUS_IS_FORK" , MQ_STATUS_IS_FORK },
476 { "MQ_STATUS_IS_SPAWN" , MQ_STATUS_IS_SPAWN },
477 { "MQ_STATUS_IS_THREAD" , MQ_STATUS_IS_THREAD },
478 { "MQ_STATUS_IS_INITIAL" , MQ_STATUS_IS_INITIAL },
479 { NULL , 0 },
480 };
481
482 int index;
483 check_LNG(MK(EnumFlagWorker)(MK_RT_CALL interp,keys,enumE,&index)) return TCL_ERROR;
484 *ret = (enum MqStatusIsEF) index;
485 return TCL_OK;
486}
#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

◆ atlmqmsgque_Get_MqWaitOnEventE_FromObj()

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.

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

◆ atlmqmsgque_MqFactoryE_ToString()

OT_OBJ_T atlmqmsgque_MqFactoryE_ToString ( const enum MqFactoryE type)

Definition at line 272 of file LibMqMsgque_atl.c.

273{
274 OT_OBJ_T tmpO = Tcl_NewObj();
275 if (mk_bit_compare(type,MQ_FACTORY_NEW_INIT )) ot_enum_append(tmpO,"INIT" ) ;
276 if (mk_bit_compare(type,MQ_FACTORY_NEW_CHILD )) ot_enum_append(tmpO,"CHILD" ) ;
277 if (mk_bit_compare(type,MQ_FACTORY_NEW_SLAVE )) ot_enum_append(tmpO,"SLAVE" ) ;
278 if (mk_bit_compare(type,MQ_FACTORY_NEW_FORK )) ot_enum_append(tmpO,"FORK" ) ;
279 if (mk_bit_compare(type,MQ_FACTORY_NEW_THREAD)) ot_enum_append(tmpO,"THREAD") ;
280 if (mk_bit_compare(type,MQ_FACTORY_NEW_FILTER)) ot_enum_append(tmpO,"FILTER") ;
281 return tmpO;
282}
#define ot_enum_append(_o, _s)
MOX_OBJ_T OT_OBJ_T
#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

◆ atlmqmsgque_MqHandShakeE_ToString()

OT_OBJ_T atlmqmsgque_MqHandShakeE_ToString ( const enum MqHandShakeE type)

Definition at line 284 of file LibMqMsgque_atl.c.

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

◆ atlmqmsgque_MqIdentE_ToString()

OT_OBJ_T atlmqmsgque_MqIdentE_ToString ( const enum MqIdentE type)

Definition at line 294 of file LibMqMsgque_atl.c.

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

◆ atlmqmsgque_MqIoComE_ToString()

OT_OBJ_T atlmqmsgque_MqIoComE_ToString ( const enum MqIoComE type)

Definition at line 303 of file LibMqMsgque_atl.c.

304{
305 switch (type) {
306 case MQ_IO_PIPE : return ot_fixstrobj("PIPE") ;
307 case MQ_IO_UDS : return ot_fixstrobj("UDS" ) ;
308 case MQ_IO_TCP : return ot_fixstrobj("TCP" ) ;
309 case MQ_IO_INIT : return ot_fixstrobj("INIT") ;
310 case MQ_IO_LOOP : return ot_fixstrobj("LOOP") ;
311 }
312 return ot_fixstrobj("NOTHING");
313}
@ 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

◆ atlmqmsgque_MqMsgque_IdentE_FromInt()

static OT_ProcRet atlmqmsgque_MqMsgque_IdentE_FromInt ( OtClass_ARGS )
static

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

Definition at line 580 of file LibMqMsgque_atl.c.

580 {
583 MK_I32 value = 0;
586 enum MqIdentE value_out;
588 OT_retObj_SET(OT_NEW_Mq_enum_OBJ(IdentE,value_out));
589 goto end;
590 error:
592 end:
594}
#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 …

◆ atlmqmsgque_MqMsgque_IdentE_ToInt()

static OT_ProcRet atlmqmsgque_MqMsgque_IdentE_ToInt ( OtClass_ARGS )
static

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

Definition at line 667 of file LibMqMsgque_atl.c.

667 {
670 enum MqIdentE value = 0;
674 goto end;
675 error:
677 end:
679}
#define OT_retObj_SET_I32(nat)
#define IdentE_ToInt_doc
static MK_I32 MqIdentE_ToInt(enum MqIdentE value)
return the MqIdentE as integer …

◆ atlmqmsgque_MqMsgque_IdentE_ToString()

static OT_ProcRet atlmqmsgque_MqMsgque_IdentE_ToString ( OtClass_ARGS )
static

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

Definition at line 682 of file LibMqMsgque_atl.c.

682 {
685 enum MqIdentE value = 0;
689 goto end;
690 error:
692 end:
694}
#define IdentE_ToString_doc
MK_STRN MqIdentE_ToString(enum MqIdentE value)
return the MqIdentE as string …

◆ atlmqmsgque_MqMsgque_SlaveE_FromInt()

static OT_ProcRet atlmqmsgque_MqMsgque_SlaveE_FromInt ( OtClass_ARGS )
static

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

Definition at line 597 of file LibMqMsgque_atl.c.

597 {
600 MK_I32 value = 0;
603 enum MqSlaveE value_out;
605 OT_retObj_SET(OT_NEW_Mq_enum_OBJ(SlaveE,value_out));
606 goto end;
607 error:
609 end:
611}
#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 …

◆ atlmqmsgque_MqMsgque_SlaveE_ToInt()

static OT_ProcRet atlmqmsgque_MqMsgque_SlaveE_ToInt ( OtClass_ARGS )
static

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

Definition at line 697 of file LibMqMsgque_atl.c.

697 {
700 enum MqSlaveE value = 0;
704 goto end;
705 error:
707 end:
709}
#define SlaveE_ToInt_doc
static MK_I32 MqSlaveE_ToInt(enum MqSlaveE value)
return the MqSlaveE as integer …

◆ atlmqmsgque_MqMsgque_SlaveE_ToString()

static OT_ProcRet atlmqmsgque_MqMsgque_SlaveE_ToString ( OtClass_ARGS )
static

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

Definition at line 712 of file LibMqMsgque_atl.c.

712 {
715 enum MqSlaveE value = 0;
719 goto end;
720 error:
722 end:
724}
#define SlaveE_ToString_doc
MK_STRN MqSlaveE_ToString(enum MqSlaveE value)
return the MqSlaveE as string …

◆ atlmqmsgque_MqMsgque_StartE_FromInt()

static OT_ProcRet atlmqmsgque_MqMsgque_StartE_FromInt ( OtClass_ARGS )
static

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

Definition at line 614 of file LibMqMsgque_atl.c.

614 {
617 MK_I32 value = 0;
620 enum MqStartE value_out;
622 OT_retObj_SET(OT_NEW_Mq_enum_OBJ(StartE,value_out));
623 goto end;
624 error:
626 end:
628}
#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.

◆ atlmqmsgque_MqMsgque_StartE_ToInt()

static OT_ProcRet atlmqmsgque_MqMsgque_StartE_ToInt ( OtClass_ARGS )
static

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

Definition at line 727 of file LibMqMsgque_atl.c.

727 {
730 enum MqStartE value = 0;
734 goto end;
735 error:
737 end:
739}
#define StartE_ToInt_doc
static MK_I32 MqStartE_ToInt(enum MqStartE value)
return the MqStartE as integer …

◆ atlmqmsgque_MqMsgque_StartE_ToString()

static OT_ProcRet atlmqmsgque_MqMsgque_StartE_ToString ( OtClass_ARGS )
static

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

Definition at line 742 of file LibMqMsgque_atl.c.

742 {
745 enum MqStartE value = 0;
749 goto end;
750 error:
752 end:
754}
#define StartE_ToString_doc
MK_STRN MqStartE_ToString(enum MqStartE value)
return the MqStartE as string …

◆ atlmqmsgque_MqMsgque_StatusIsEF_FromInt()

static OT_ProcRet atlmqmsgque_MqMsgque_StatusIsEF_FromInt ( OtClass_ARGS )
static

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

Definition at line 631 of file LibMqMsgque_atl.c.

631 {
634 MK_I32 value = 0;
637 enum MqStatusIsEF value_out;
639 OT_retObj_SET(OT_NEW_Mq_enum_OBJ(StatusIsEF,value_out));
640 goto end;
641 error:
643 end:
645}
#define StatusIsEF_FromInt_doc
enum MkErrorE MqStatusIsEF_FromInt(MK_I32 const value, enum MqStatusIsEF *value_out)
return the MqStatusIsEF from integer …

◆ atlmqmsgque_MqMsgque_StatusIsEF_ToInt()

static OT_ProcRet atlmqmsgque_MqMsgque_StatusIsEF_ToInt ( OtClass_ARGS )
static

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

Definition at line 757 of file LibMqMsgque_atl.c.

757 {
760 enum MqStatusIsEF value = 0;
764 goto end;
765 error:
767 end:
769}
#define StatusIsEF_ToInt_doc
static MK_I32 MqStatusIsEF_ToInt(enum MqStatusIsEF value)
return the MqStatusIsEF as integer …

◆ atlmqmsgque_MqMsgque_StatusIsEF_ToString()

static OT_ProcRet atlmqmsgque_MqMsgque_StatusIsEF_ToString ( OtClass_ARGS )
static

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

Definition at line 772 of file LibMqMsgque_atl.c.

772 {
775 enum MqStatusIsEF value = 0;
779 goto end;
780 error:
782 end:
784}
#define StatusIsEF_ToString_doc
MK_STRN MqStatusIsEF_ToString(enum MqStatusIsEF value)
return the MqStatusIsEF as string …

◆ atlmqmsgque_MqMsgque_WaitOnEventE_FromInt()

static OT_ProcRet atlmqmsgque_MqMsgque_WaitOnEventE_FromInt ( OtClass_ARGS )
static

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

Definition at line 648 of file LibMqMsgque_atl.c.

648 {
651 MK_I32 value = 0;
654 enum MqWaitOnEventE value_out;
656 OT_retObj_SET(OT_NEW_Mq_enum_OBJ(WaitOnEventE,value_out));
657 goto end;
658 error:
660 end:
662}
#define WaitOnEventE_FromInt_doc
enum MkErrorE MqWaitOnEventE_FromInt(MK_I32 const value, enum MqWaitOnEventE *value_out)
return the MqWaitOnEventE from integer …

◆ atlmqmsgque_MqMsgque_WaitOnEventE_ToInt()

static OT_ProcRet atlmqmsgque_MqMsgque_WaitOnEventE_ToInt ( OtClass_ARGS )
static

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

Definition at line 787 of file LibMqMsgque_atl.c.

787 {
790 enum MqWaitOnEventE value = 0;
794 goto end;
795 error:
797 end:
799}
#define WaitOnEventE_ToInt_doc
static MK_I32 MqWaitOnEventE_ToInt(enum MqWaitOnEventE value)
return the MqWaitOnEventE as integer …

◆ atlmqmsgque_MqMsgque_WaitOnEventE_ToString()

static OT_ProcRet atlmqmsgque_MqMsgque_WaitOnEventE_ToString ( OtClass_ARGS )
static

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

Definition at line 802 of file LibMqMsgque_atl.c.

802 {
805 enum MqWaitOnEventE value = 0;
809 goto end;
810 error:
812 end:
814}
#define WaitOnEventE_ToString_doc
MK_STRN MqWaitOnEventE_ToString(enum MqWaitOnEventE value)
return the MqWaitOnEventE as string …

◆ atlmqmsgque_MqSlaveE_ToString()

OT_OBJ_T atlmqmsgque_MqSlaveE_ToString ( const enum MqSlaveE type)

Definition at line 315 of file LibMqMsgque_atl.c.

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

◆ atlmqmsgque_MqStartE_ToString()

OT_OBJ_T atlmqmsgque_MqStartE_ToString ( const enum MqStartE type)

Definition at line 326 of file LibMqMsgque_atl.c.

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

◆ atlmqmsgque_MqStatusIsEF_ToString()

OT_OBJ_T atlmqmsgque_MqStatusIsEF_ToString ( const enum MqStatusIsEF type)

Definition at line 337 of file LibMqMsgque_atl.c.

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

◆ atlmqmsgque_MqTransTypeE_ToString()

OT_OBJ_T atlmqmsgque_MqTransTypeE_ToString ( const enum MqTransTypeE type)

Definition at line 351 of file LibMqMsgque_atl.c.

352{
353 switch (type) {
354 case MQ_TRANS_TYPE_WAIT : return ot_fixstrobj("WAIT" ) ;
355 case MQ_TRANS_TYPE_SUB : return ot_fixstrobj("SUB" ) ;
356 case MQ_TRANS_TYPE_CB : return ot_fixstrobj("CB" ) ;
357 case MQ_TRANS_TYPE_TRANS : return ot_fixstrobj("TRANS") ;
358 case MQ_TRANS_TYPE_NO : return ot_fixstrobj("NO" ) ;
359 }
360 return ot_fixstrobj("NOTHING");
361}
@ 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

◆ atlmqmsgque_MqWaitOnEventE_ToString()

OT_OBJ_T atlmqmsgque_MqWaitOnEventE_ToString ( const enum MqWaitOnEventE type)

Definition at line 363 of file LibMqMsgque_atl.c.

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