theLink 10.0
Loading...
Searching...
No Matches
MqFactoryC_TOR_RB_API

MqFactoryC - various functions to create, initialize and destroy a factoryMore...

+ Collaboration diagram for MqFactoryC_TOR_RB_API:

Functions

static OT_ProcRet rbmqmsgque_MqFactoryC_Dup2 (MqFactoryC_ARGS)
  Ruby: (constructor) MqFactoryC fct.Dup2(ident:string) C-API
create a duplicate of the singleton object MqFactoryC using a new factory-identifer
 
static OT_ProcRet rbmqmsgque_MqFactoryC_Add (OtClass_ARGS)
  Ruby: (constructor,static) MqFactoryC MqFactoryC.Add(constructor:class, ?ident:string="MK_NULL"?) C-API
Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor
 
static OT_ProcRet rbmqmsgque_MqFactoryC_new (CONSTR_ARGS)
  Ruby: (constructor,static) MqFactoryC MqFactoryC.new(constructor:class, ?ident:string="MK_NULL"?) C-API
Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor
 

Detailed Description

MqFactoryC - various functions to create, initialize and destroy a factory

Function Documentation

◆ rbmqmsgque_MqFactoryC_Add()

static OT_ProcRet rbmqmsgque_MqFactoryC_Add ( OtClass_ARGS )
static

Ruby: (constructor,static) MqFactoryC MqFactoryC.Add(constructor:class, ?ident:string="MK_NULL"?) C-API
Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor

Definition at line 535 of file MqFactoryC_rb.c.

535 {
538 MK_CCP constructor = 0;
540 MK_STRN ident = NULL;
543 if (MkSysStringIsNULL(ident)) {ident = OT_GET_CONSTR_NAME(constructor);}
544 MQ_FCT retVal = MqFactoryAdd (NULL, NS(sFactoryCTor), constructor, NS(sFactoryDataFree), NS(sFactoryDataCopy), NS(sFactoryDTor), NULL, NULL, NULL, ident);
545 if (retVal == NULL) {
546 OT_ERROR_CONSTRUCTOR(MqFactoryC);
547 }
548 OT_CONSTRUCTOR_POST(retVal)
549 OT_retObj_SET_FCT(retVal);
550 end: MK_UNUSED /* LONG JUMP on error */
552}
#define OT_SETUP_VARARGS(min, max, d)
#define OT_CONSTRUCTOR_POST(x)
#define OT_CHECK_REQUIRED(val)
#define OT_retObj_RETURN
#define OT_ERROR_CONSTRUCTOR(clazz)
#define OT_CHECK_OPTIONAL(val)
#define OT_GET_CONSTR_NAME(ctor)
#define OT_CHECK_NOARGS
#define OT_CHECK_STRN(val)
#define NS(n)
#define OT_retObj_SET_FCT(nat)
#define OT_SETUP_hdl_static_constr
#define Add_doc
#define MK_UNUSED
const MK_STRB * MK_STRN
MK_PTRB * MK_CCP
static bool MkSysStringIsNULL(MK_STRN str)
#define MqFactoryAdd(...)
#define OT_CHECK_CONSTRUCTOR(val)
data used to define a factory

◆ rbmqmsgque_MqFactoryC_Dup2()

static OT_ProcRet rbmqmsgque_MqFactoryC_Dup2 ( MqFactoryC_ARGS )
static

Ruby: (constructor) MqFactoryC fct.Dup2(ident:string) C-API
create a duplicate of the singleton object MqFactoryC using a new factory-identifer

Definition at line 517 of file MqFactoryC_rb.c.

517 {
520 MK_STRN ident = 0;
523 MQ_FCT retVal = MqFactoryDup2 (hdl, ident);
524 if (retVal == NULL) {
525 OT_ERROR_CONSTRUCTOR(MqFactoryC);
526 }
527 OT_retObj_SET_FCT(retVal);
528 end: MK_UNUSED /* LONG JUMP on error */
530}
#define OT_SETUP_ONEARG(d)
#define OT_SETUP_hdl
#define Dup2_doc
#define MqFactoryDup2(...)

◆ rbmqmsgque_MqFactoryC_new()

static OT_ProcRet rbmqmsgque_MqFactoryC_new ( CONSTR_ARGS )
static

Ruby: (constructor,static) MqFactoryC MqFactoryC.new(constructor:class, ?ident:string="MK_NULL"?) C-API
Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor

Definition at line 555 of file MqFactoryC_rb.c.

555 {
558 MK_CCP constructor = 0;
560 MK_STRN ident = NULL;
562 if (MkSysStringIsNULL(ident)) {ident = OT_GET_CONSTR_NAME(constructor);}
563 MQ_FCT retVal = MqFactoryAdd (NULL, NS(sFactoryCTor), constructor, NS(sFactoryDataFree), NS(sFactoryDataCopy), NS(sFactoryDTor), NULL, NULL, NULL, ident);
564 if (retVal == NULL) {
565 OT_ERROR_CONSTRUCTOR(MqFactoryC);
566 }
567 OT_CONSTRUCTOR_POST(retVal)
568 OT_retObj_CONSTR(retVal);
569 end: MK_UNUSED /* LONG JUMP on error */
571}
#define OT_retObj_CONSTR(mng)
#define OT_SETUP_CONSTRUCTOR_ARGS(min, max, d)
#define OT_SETUP_hdl_constr
#define new_doc