theLink 10.0
Loading...
Searching...
No Matches
MqMsgque_TCL_API

MqMsgque PACKAGE - the package is the toplevel structure of the tclmqmsgqueMore...

+ Collaboration diagram for MqMsgque_TCL_API:

Topics

 MqMsgque_Main_TCL_API
 MqMsgque PACKAGE - the package-main is a single piece of code evaluated only once at application startup …
 
 MqMsgque_Init_TCL_API
 MqMsgque PACKAGE - initialize the MqContextC startup and/or external-object-link
 
 MqMsgque_Item_TCL_API
 MqMsgque PACKAGE - the package-item is a class-object and must use the MqContextC as the base-class
 
 MqMsgque_Help_TCL_API
 MqMsgque PACKAGE - access to a qualified help-message
 
 MqMsgque_Enum_TCL_API
 MqMsgque PACKAGE - enum definition …
 
 MqMsgque_Setup_TCL_API
 MqMsgque PACKAGE - setup und cleanup the tclmqmsgque
 

Functions

static int tclmqmsgque_Support_Class_Cmd (OtClass_ARGS)
  bool [tclmqmsgque::support thread|fork]
 

Detailed Description

MqMsgque PACKAGE - the package is the toplevel structure of the tclmqmsgque

The tclmqmsgque package is loaded with:

and is a composition of one or more package-item and exact one package-main.

The tclmqmsgque package add the following classes into MkObjectC_C_API :

Object C-Short Description
MqContextC MQ_CTX MqContextC - the class known as ctx or context is the application-handle of the application-server and also the main data-handle
MqDumpC MQ_DMP MqDumpC - the class known as dmp or dump is used to export a tclmqmsgque data package as binary
MqFactoryC MQ_FCT MqFactoryC - the class known as fct or factory is used to provide an interface to create one or more new MqContextC

The tclmqmsgque package add the following types into MkObjectC_C_API :

ABSTRACT: MkTypeSTT (TypeTypeType = type of a TypeType)
|
|- ABSTRACT: MqTypeCtxC_TT (TypeType = type of a Type)
|  |
|  |- MqContextC_T
|
|- ABSTRACT: MkTypeDefSTT (TypeType = type of a Type)
   |
   |- MqFactoryST, MqDumpST

Function Documentation

◆ tclmqmsgque_Support_Class_Cmd()

static int tclmqmsgque_Support_Class_Cmd ( OtClass_ARGS )
static

bool [tclmqmsgque::support thread|fork]

Definition at line 556 of file LibMqMsgque_tcl.c.

557{
559 int index;
560
561 OT_OBJ_T Obj = NULL;
562
563 static const char *constant[] = {
564 "thread", "fork", NULL
565 };
566 enum constants {
567 THREAD, FORK,
568 };
569
570 WNA(1,1,"(thread|fork)")
571
572 // get the Index
573 OtErrorCheckLng (Tcl_GetIndexFromObj (interp, objv[__skip], constant, "configuration", 0, &index));
574
575 // do the work
576 switch ((enum constants) index) {
577 case THREAD:
578#if META_HAS_THREAD
579 Obj = Tcl_NewBooleanObj (1);
580#else
581 Obj = Tcl_NewBooleanObj (0);
582#endif
583 break;
584 case FORK:
585#if defined(HAVE_FORK)
586 Obj = Tcl_NewBooleanObj (1);
587#else
588 Obj = Tcl_NewBooleanObj (0);
589#endif
590 break;
591 }
592
593 Tcl_SetObjResult (interp, Obj);
594 return TCL_OK;
595}
#define WNA(min, max, txt)
#define OtErrorCheckLng(cmd)
Tcl_Obj * OT_OBJ_T
#define OT_SETUP_hdl_static
switch(call)
Definition high_lng.h:349