theLink 10.0
Loading...
Searching...
No Matches
MqContextC_ClassApi_RB_API

MqContextC - access data related to the factory-type of the object … More...

+ Collaboration diagram for MqContextC_ClassApi_RB_API:

Functions

static OT_ProcRet rbmqmsgque_MqContextC_ClassFactoryGet (MqContextC_ARGS)
  Ruby: MqFactoryC ctx.ClassFactoryGet() C-API
get the MqFactoryC used by the MqContextC
 
static OT_ProcRet rbmqmsgque_MqContextC_ClassFactorySet (MqContextC_ARGS)
  Ruby: ctx.ClassFactorySet(item:MqFactoryC) C-API
link the MqContextC to a new MqFactoryC
 
static OT_ProcRet rbmqmsgque_MqContextC_ClassIdentGet (MqContextC_ARGS)
  Ruby: string ctx.ClassIdentGet() C-API
get the application-identification
 
static OT_ProcRet rbmqmsgque_MqContextC_ClassIdentSet (MqContextC_ARGS)
  Ruby: ctx.ClassIdentSet(ident:string) C-API
link the MqContextC to a new MqFactoryC identified by ident
 
static OT_ProcRet rbmqmsgque_MqContextC_ClassOriginalIdentGet (MqContextC_ARGS)
  Ruby: string ctx.ClassOriginalIdentGet() C-API
get the MqFactoryS::originalIdent from the MqContextC
 

Detailed Description

MqContextC - access data related to the factory-type of the object …

The type of an object is related to the MqFactoryC. The factory decide which class a new created object has. The factory has two identifiers:

The relevance of the MqContextC CLASS API based type system, provided by MqFactoryC, decreased with the rise of the MANAGED OBJECT technology.
The MqContextC CLASS API based type system has more influence for target-languages without reflection, like C or C++.
The factory is something like a constructor but only support the application-context MqContextC .
The MqContextC ROUTE API using the MqClassIdentGet from MqFactoryC to identify an application from remote.

Function Documentation

◆ rbmqmsgque_MqContextC_ClassFactoryGet()

static OT_ProcRet rbmqmsgque_MqContextC_ClassFactoryGet ( MqContextC_ARGS )
static

Ruby: MqFactoryC ctx.ClassFactoryGet() C-API
get the MqFactoryC used by the MqContextC

Definition at line 479 of file MqContextC_rb.c.

479 {
483 MQ_FCT retVal = MqClassFactoryGet (hdl);
484 OT_retObj_SET_FCT(retVal);
485 end: MK_UNUSED /* LONG JUMP on error */
487}
#define OT_SETUP_NOARG(d)
#define OT_retObj_RETURN
#define OT_CHECK_NOARGS
#define OT_retObj_SET_FCT(nat)
#define ClassFactoryGet_doc
#define OT_SETUP_hdl
#define MK_UNUSED
MQ_FCT const MqClassFactoryGet(MQ_CTXN const ctx)
get the MqFactoryC used by the MqContextC
data used to define a factory

◆ rbmqmsgque_MqContextC_ClassFactorySet()

static OT_ProcRet rbmqmsgque_MqContextC_ClassFactorySet ( MqContextC_ARGS )
static

Ruby: ctx.ClassFactorySet(item:MqFactoryC) C-API
link the MqContextC to a new MqFactoryC

Definition at line 492 of file MqContextC_rb.c.

492 {
495 MQ_FCT item = 0;
498 MkErrorC_Check(hdl,MqClassFactorySet (hdl, item));
500 end: MK_UNUSED /* LONG JUMP on error */
502}
#define OT_SETUP_ONEARG(d)
#define OT_CHECK_REQUIRED(val)
#define OT_retObj_SET_None
#define MkErrorC_Check(mng, PROC)
#define ClassFactorySet_doc
#define MK_NULL_NO
#define MqClassFactorySet(...)
#define OT_CHECK_FCT(val, nullB)

◆ rbmqmsgque_MqContextC_ClassIdentGet()

static OT_ProcRet rbmqmsgque_MqContextC_ClassIdentGet ( MqContextC_ARGS )
static

Ruby: string ctx.ClassIdentGet() C-API
get the application-identification

Definition at line 505 of file MqContextC_rb.c.

505 {
510 end: MK_UNUSED /* LONG JUMP on error */
512}
#define OT_retObj_SET_STR(nat)
#define ClassIdentGet_doc
MK_STRN MqClassIdentGet(MQ_CTXN const ctx)
get the application-identification …

◆ rbmqmsgque_MqContextC_ClassIdentSet()

static OT_ProcRet rbmqmsgque_MqContextC_ClassIdentSet ( MqContextC_ARGS )
static

Ruby: ctx.ClassIdentSet(ident:string) C-API
link the MqContextC to a new MqFactoryC identified by ident

Definition at line 515 of file MqContextC_rb.c.

515 {
518 MK_STRN ident = 0;
521 MkErrorC_Check(hdl,MqClassIdentSet (hdl, ident));
523 end: MK_UNUSED /* LONG JUMP on error */
525}
#define OT_CHECK_STRN(val)
#define ClassIdentSet_doc
const MK_STRB * MK_STRN
#define MqClassIdentSet(...)

◆ rbmqmsgque_MqContextC_ClassOriginalIdentGet()

static OT_ProcRet rbmqmsgque_MqContextC_ClassOriginalIdentGet ( MqContextC_ARGS )
static

Ruby: string ctx.ClassOriginalIdentGet() C-API
get the MqFactoryS::originalIdent from the MqContextC

Definition at line 528 of file MqContextC_rb.c.

528 {
533 end: MK_UNUSED /* LONG JUMP on error */
535}
#define ClassOriginalIdentGet_doc
MK_STRN MqClassOriginalIdentGet(MQ_CTXN const ctx)
get the MqFactoryS::originalIdent from the MqContextC