theLink 10.0
Loading...
Searching...
No Matches
MqDumpC_rb.c File Reference

tag: nhi1-release-250425 More...

+ Include dependency graph for MqDumpC_rb.c:

Go to the source code of this file.

Macros

#define META_FILE_NAME   "MqDumpC_rb.c"
 
#define OT_CLASS   NS(MqDumpC)
 
#define OT_CLASS_NAME   "MqDumpC"
 
#define OT_LNG2META(O)
 
#define S_INIT   NS(sInit)(MK_RT_CALL_ONLY)
 
#define OT_SETUP_hdl   OT_SETUP_hdl_tmpl(MqDumpC);
 
#define OT_SETUP_hdl__null_allow   OT_SETUP_hdl_tmpl__null_allow(MqDumpC);
 
#define OT_SETUP_hdl_constr
 
#define OT_SETUP_hdl_destr   OT_SETUP_hdl_tmpl__null_allow(MqDumpC);
 
#define OT_SETUP_hdl_static
 
#define OT_SETUP_hdl_static_constr   OT_SETUP_hdl_static
 
#define SetupRtFromObj_X(hdl)
 
#define SetupRtFromObj_XN(hdl)
 
#define Error_doc   "MqDumpC MqDumpC.Error(error:MqContextC, ?dumpP_inout:MqDumpC=nil?)"
 
#define Export_doc   "MqDumpC MqDumpC.Export(ctx:MqContextC, ?dumpP_inout:MqDumpC=nil?)"
 
#define new_doc   "MqDumpC MqDumpC.new(ctx:MqContextC, ?dumpP_inout:MqDumpC=nil?)"
 
#define BinSet_doc   "MqDumpC MqDumpC.BinSet(data:binary)"
 
#define GetNull_doc   "MqDumpC MqDumpC.GetNull()"
 
#define HandleResolve_doc   "MqDumpC MqDumpC.HandleResolve(netHdl:MK_HDL)"
 
#define Instances_doc   "MqDumpC MqDumpC.Instances()"
 
#define Next_doc   "MqDumpC dmp.Next()"
 
#define Prev_doc   "MqDumpC dmp.Prev()"
 
#define BinGet_doc   "binary dump.BinGet() (const)"
 
#define Import_doc   "dump.Import(ctx:MqContextC)"
 
#define SizeGet_doc   "long dump.SizeGet() (const)"
 
#define TokenGet_doc   "string dump.TokenGet() (const)"
 

Functions

static void rbmqmsgque_sMark (MK_PTR)
 
static OT_OBJ_T rbmqmsgque_LNG_CONSTR (OT_CLS_T clazz, MK_MNG mng, int objc, VALUE *objv)
 
static MK_PTR rbmqmsgque_MqDumpC_selfCreate (MK_RT mkrt, MK_OBJ obj, MK_PTR envP)
 
static void rbmqmsgque_MqDumpC_selfDelete (MK_RT mkrt, MK_PTR ptr, MK_PTR envP)
 
static void rbmqmsgque_MqDumpC_selfUnlink (MK_RT mkrt, MK_PTR ptr, MK_PTR envP)
 
static void rbmqmsgque_sInit (MK_RT mkrt)
 
static OT_ProcRet rbmqmsgque_MqDumpC_HandleResolve (OtClass_ARGS)
  Ruby: (static) MqDumpC MqDumpC.HandleResolve(netHdl:MK_HDL) C-API
Handle-Resolve-Slot - return a MqDumpC from netHdl or nil if invalid…
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet rbmqmsgque_MqDumpC_HandleGet (MqDumpC_ARGS)
 
static OT_ProcRet rbmqmsgque_MqDumpC_Next (MqDumpC_ARGS)
  Ruby: MqDumpC dmp.Next() C-API
get next instance from linked-list of MqDumpS type
 
static OT_ProcRet rbmqmsgque_MqDumpC_Prev (MqDumpC_ARGS)
  Ruby: MqDumpC dmp.Prev() C-API
get previous instance from linked-list of MqDumpS type
 
static OT_ProcRet rbmqmsgque_MqDumpC_Instances (OtClass_ARGS)
  Ruby: (static) MqDumpC MqDumpC.Instances() C-API
get head-instance from linked-list of MqDumpS type …
 
static OT_ProcRet rbmqmsgque_MqDumpC_GetNull (OtClass_ARGS)
  Ruby: (static) MqDumpC MqDumpC.GetNull() C-API
Null-Slot - return a MqDumpC typed NULL instance …
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet rbmqmsgque_MqDumpC_Log (MqDumpC_ARGS)
 
static OT_ProcRet rbmqmsgque_MqDumpC_SizeGet (MqDumpC_ARGS)
  Ruby: long dump.SizeGet() C-API
report the binary data size from an MqDumpS object
 
static OT_ProcRet rbmqmsgque_MqDumpC_TokenGet (MqDumpC_ARGS)
  Ruby: string dump.TokenGet() C-API
return the MqContextC_ServiceApi_Identifer
 
static OT_ProcRet rbmqmsgque_MqDumpC_Error (OtClass_ARGS)
  Ruby: (constructor,static) MqDumpC MqDumpC.Error(error:MqContextC, ?dumpP_inout:MqDumpC=nil?) C-API
export the context->error into the dump-package
 
static OT_ProcRet rbmqmsgque_MqDumpC_Export (OtClass_ARGS)
  Ruby: (constructor,static) MqDumpC MqDumpC.Export(ctx:MqContextC, ?dumpP_inout:MqDumpC=nil?) C-API
create a MqDumpC as export of the ctx-read-data-package
 
static OT_ProcRet rbmqmsgque_MqDumpC_new (CONSTR_ARGS)
  Ruby: (constructor,static) MqDumpC MqDumpC.new(ctx:MqContextC, ?dumpP_inout:MqDumpC=nil?) C-API
create a MqDumpC as export of the ctx-read-data-package
 
static OT_ProcRet rbmqmsgque_MqDumpC_BinSet (OtClass_ARGS)
  Ruby: (constructor,static) MqDumpC MqDumpC.BinSet(data:binary) C-API
create an MqDumpS object from binary data
 
static OT_ProcRet rbmqmsgque_MqDumpC_BinGet (MqDumpC_ARGS)
  Ruby: binary dump.BinGet() C-API
export the binary data from an MqDumpS object
 
static OT_ProcRet rbmqmsgque_MqDumpC_Import (MqDumpC_ARGS)
  Ruby: dump.Import(ctx:MqContextC) C-API
import the dump-package into the ctx-read-data-package
 
void rbmqmsgque_MqDumpC_Init (MK_RT mkrt, MQ_RT mqrt)
 

Variables

OT_CLS_T OT_CLASS
 
static MK_TYP MqDumpCTT = NULL
 
OT_OBJ_T rbmqmsgque_MqDumpC_MK_NULL = 0
 
static rb_data_type_t rbmqmsgque_MqDumpC_T
 

Detailed Description

tag: nhi1-release-250425

Definition in file MqDumpC_rb.c.

Macro Definition Documentation

◆ BinGet_doc

#define BinGet_doc   "binary dump.BinGet() (const)"

Definition at line 130 of file MqDumpC_rb.c.

◆ BinSet_doc

#define BinSet_doc   "MqDumpC MqDumpC.BinSet(data:binary)"

Definition at line 118 of file MqDumpC_rb.c.

◆ Error_doc

#define Error_doc   "MqDumpC MqDumpC.Error(error:MqContextC, ?dumpP_inout:MqDumpC=nil?)"

doc definition

Definition at line 113 of file MqDumpC_rb.c.

◆ Export_doc

#define Export_doc   "MqDumpC MqDumpC.Export(ctx:MqContextC, ?dumpP_inout:MqDumpC=nil?)"

Definition at line 114 of file MqDumpC_rb.c.

◆ GetNull_doc

#define GetNull_doc   "MqDumpC MqDumpC.GetNull()"

Definition at line 121 of file MqDumpC_rb.c.

◆ HandleResolve_doc

#define HandleResolve_doc   "MqDumpC MqDumpC.HandleResolve(netHdl:MK_HDL)"

Definition at line 122 of file MqDumpC_rb.c.

◆ Import_doc

#define Import_doc   "dump.Import(ctx:MqContextC)"

Definition at line 132 of file MqDumpC_rb.c.

◆ Instances_doc

#define Instances_doc   "MqDumpC MqDumpC.Instances()"

Definition at line 123 of file MqDumpC_rb.c.

◆ META_FILE_NAME

#define META_FILE_NAME   "MqDumpC_rb.c"

Definition at line 10 of file MqDumpC_rb.c.

◆ new_doc

#define new_doc   "MqDumpC MqDumpC.new(ctx:MqContextC, ?dumpP_inout:MqDumpC=nil?)"

Definition at line 115 of file MqDumpC_rb.c.

◆ Next_doc

#define Next_doc   "MqDumpC dmp.Next()"

Definition at line 126 of file MqDumpC_rb.c.

◆ OT_CLASS

#define OT_CLASS   NS(MqDumpC)

Definition at line 14 of file MqDumpC_rb.c.

◆ OT_CLASS_NAME

#define OT_CLASS_NAME   "MqDumpC"

Definition at line 15 of file MqDumpC_rb.c.

◆ OT_LNG2META

#define OT_LNG2META ( O)
Value:
#define VAL2MNG(val)
static MQ_DMP MqDmp(MK_MNG mng)
cast a unknown-object into an MqDumpS pointer or NULL if not possible

Definition at line 17 of file MqDumpC_rb.c.

◆ OT_SETUP_hdl

#define OT_SETUP_hdl   OT_SETUP_hdl_tmpl(MqDumpC);

Definition at line 87 of file MqDumpC_rb.c.

◆ OT_SETUP_hdl__null_allow

#define OT_SETUP_hdl__null_allow   OT_SETUP_hdl_tmpl__null_allow(MqDumpC);

Definition at line 88 of file MqDumpC_rb.c.

◆ OT_SETUP_hdl_constr

#define OT_SETUP_hdl_constr
Value:
OT_OBJ_T clazz = self; \
#define OT_OBJ_T
#define AllRtSetup_NULL
#define MkERROR
#define MqDumpC_type
same as MqDumpS but useable in a class-macro as: class##_type …

Definition at line 89 of file MqDumpC_rb.c.

89#define OT_SETUP_hdl_constr AllRtSetup_NULL; \
90 OT_OBJ_T clazz = self; \
91 MqDumpC_type hdl = (MqDumpC_type) &MkERROR;

◆ OT_SETUP_hdl_destr

#define OT_SETUP_hdl_destr   OT_SETUP_hdl_tmpl__null_allow(MqDumpC);

Definition at line 92 of file MqDumpC_rb.c.

◆ OT_SETUP_hdl_static

#define OT_SETUP_hdl_static
Value:
__attribute__((unused)) MK_TYP hdl = MqDumpC##_TT;

Definition at line 93 of file MqDumpC_rb.c.

93#define OT_SETUP_hdl_static AllRtSetup_NULL; \
94 __attribute__((unused)) MK_TYP hdl = MqDumpC##_TT;

◆ OT_SETUP_hdl_static_constr

#define OT_SETUP_hdl_static_constr   OT_SETUP_hdl_static

Definition at line 95 of file MqDumpC_rb.c.

◆ Prev_doc

#define Prev_doc   "MqDumpC dmp.Prev()"

Definition at line 127 of file MqDumpC_rb.c.

◆ S_INIT

#define S_INIT   NS(sInit)(MK_RT_CALL_ONLY)

Definition at line 69 of file MqDumpC_rb.c.

◆ SetupRtFromObj_X

#define SetupRtFromObj_X ( hdl)
Value:
#define AllRtSetup_X(x)

Definition at line 98 of file MqDumpC_rb.c.

◆ SetupRtFromObj_XN

#define SetupRtFromObj_XN ( hdl)
Value:
#define AllRtSetup_XN(x)

Definition at line 99 of file MqDumpC_rb.c.

◆ SizeGet_doc

#define SizeGet_doc   "long dump.SizeGet() (const)"

Definition at line 134 of file MqDumpC_rb.c.

◆ TokenGet_doc

#define TokenGet_doc   "string dump.TokenGet() (const)"

Definition at line 135 of file MqDumpC_rb.c.

Function Documentation

◆ rbmqmsgque_LNG_CONSTR()

static OT_OBJ_T rbmqmsgque_LNG_CONSTR ( OT_CLS_T clazz,
MK_MNG mng,
int objc,
VALUE * objv )
inlinestatic

Definition at line 46 of file MqDumpC_rb.c.

46 {
47 return MK(AtomObjCrt)(clazz,&NS(MqDumpC_T),mng,objc,objv);
48}
#define MK(n)
#define NS(n)
#define MqDumpC_T
class as MkTypeDefS-class-type, useable in a class-macro as: class##_T …

◆ rbmqmsgque_MqDumpC_Init()

void rbmqmsgque_MqDumpC_Init ( MK_RT mkrt,
MQ_RT mqrt )

Definition at line 380 of file MqDumpC_rb.c.

380 {
381
382 // init type
384 S_INIT;
385
386// BEGIN-CLASS - created by 'rb_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
387
388// doc-key: MqDumpC,MqDump,sCi
389OT_METH_S ( MqDumpC, Error, MqDumpC_Error )
390OT_METH_S ( MqDumpC, Export, MqDumpC_Export )
391OT_METH_C ( MqDumpC, new, MqDumpC_new )
392
393// doc-key: MqDumpC,MqDump,sCo
394OT_METH_S ( MqDumpC, BinSet, MqDumpC_BinSet )
395
396// doc-key: MqDumpC,MqDump,sc_
397OT_METH_O ( MqDumpC, GetNull, MqDumpC_GetNull )
398OT_METH_S ( MqDumpC, GetNull, MqDumpC_GetNull )
399OT_METH_O ( MqDumpC, HandleResolve, MqDumpC_HandleResolve )
400OT_METH_S ( MqDumpC, HandleResolve, MqDumpC_HandleResolve )
401OT_METH_O ( MqDumpC, Instances, MqDumpC_Instances )
402OT_METH_S ( MqDumpC, Instances, MqDumpC_Instances )
403
404// END-CLASS - created by 'rb_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
405
406// BEGIN-OBJ - created by 'rb_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
407
408// doc-key: MqDumpC,MqDump,oc_
409OT_METH_O ( MqDumpC, Next, MqDumpC_Next )
410OT_METH_O ( MqDumpC, Prev, MqDumpC_Prev )
411
412// doc-key: MqDumpC,MqDump,om_
413OT_METH_O ( MqDumpC, BinGet, MqDumpC_BinGet )
414// skip class-overload: MqDumpHandleGet → HandleGet, MqDumpC_HandleGet
415OT_METH_O ( MqDumpC, Import, MqDumpC_Import )
416// skip class-overload: MqDumpLog → Log, MqDumpC_Log
417OT_METH_O ( MqDumpC, SizeGet, MqDumpC_SizeGet )
418OT_METH_O ( MqDumpC, TokenGet, MqDumpC_TokenGet )
419
420// END-OBJ - created by 'rb_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
421}
#define OT_METH_S(c, s, f)
#define OT_METH_O(c, s, f)
#define OT_METH_C(c, s, f)
static MK_TYP MqDumpCTT
Definition MqDumpC_rb.c:22
#define S_INIT
Definition MqDumpC_rb.c:69
#define MqDumpC_TT
class as MkTypeS-class-type, useable in a class-macro as: class##_TT …

◆ rbmqmsgque_MqDumpC_selfCreate()

static MK_PTR rbmqmsgque_MqDumpC_selfCreate ( MK_RT mkrt,
MK_OBJ obj,
MK_PTR envP )
static

Definition at line 55 of file MqDumpC_rb.c.

55 {
56 OT_OBJ_T self = NS(LNG_CONSTR) (OT_CLASS, obj, 0, NULL);
57 return VAL2PTR(self);
58}
#define VAL2PTR(val)
#define OT_CLASS
Definition MqDumpC_rb.c:14
MK_OBJ const obj
Definition high_lng.h:136

◆ rbmqmsgque_MqDumpC_selfDelete()

static void rbmqmsgque_MqDumpC_selfDelete ( MK_RT mkrt,
MK_PTR ptr,
MK_PTR envP )
static

Definition at line 60 of file MqDumpC_rb.c.

60 {
62}
#define PTR2VAL(nat)
#define OT_OBJECT_DELETE_HARD(obj)
MK_STRN ptr
Definition high_lng.h:130

◆ rbmqmsgque_MqDumpC_selfUnlink()

static void rbmqmsgque_MqDumpC_selfUnlink ( MK_RT mkrt,
MK_PTR ptr,
MK_PTR envP )
static

Definition at line 64 of file MqDumpC_rb.c.

64 {
65 OT_OBJ_T self = PTR2VAL(ptr);
66 RDATA(self)->data = NULL;
67}

◆ rbmqmsgque_sInit()

static void rbmqmsgque_sInit ( MK_RT mkrt)
static

Definition at line 70 of file MqDumpC_rb.c.

70 {
71
72 // add "selfCreate" and "selfDelete" feature to the MQ-MqDumpC-Type
73 MqDumpCTT->selfCreate = NS(MqDumpC_selfCreate);
74 MqDumpCTT->selfDelete = NS(MqDumpC_selfDelete);
75 MqDumpCTT->selfUnlink = NS(MqDumpC_selfUnlink);
76
77 // create the RUBY class
78 OT_CLASS = rb_define_class_under(OT_PKG, "MqDumpC", MK_BASE_CLASS);
79 rb_undef_alloc_func(OT_CLASS);
80
81 /* define the "NULL" object */
82 VALUE nullO = TypedData_Wrap_Struct (OT_CLASS, &NS(MqDumpC_T), MK_NULL);
83 NS(MqDumpC_MK_NULL) = nullO;
85}
#define MK_BASE_CLASS
#define INCR_REF(valP)
#define OT_PKG
#define MqDumpC_MK_NULL
#define MK_NULL
MkSelfUnlinkF selfUnlink
MkSelfDeleteF selfDelete
MkSelfCreateF selfCreate

◆ rbmqmsgque_sMark()

static void rbmqmsgque_sMark ( MK_PTR mng)
static

Definition at line 377 of file MqDumpC_rb.c.

377 {
378}

Variable Documentation

◆ MqDumpCTT

MK_TYP MqDumpCTT = NULL
static

Definition at line 22 of file MqDumpC_rb.c.

◆ OT_CLASS

OT_CLS_T OT_CLASS

Definition at line 19 of file MqDumpC_rb.c.

◆ rbmqmsgque_MqDumpC_MK_NULL

OT_OBJ_T rbmqmsgque_MqDumpC_MK_NULL = 0

Definition at line 23 of file MqDumpC_rb.c.

◆ rbmqmsgque_MqDumpC_T

rb_data_type_t rbmqmsgque_MqDumpC_T
static
Initial value:
= {
"MqDumpC",
{
0,
0,
},
NULL,
NULL,
RUBY_TYPED_FREE_IMMEDIATELY
}
static void rbmkkernel_AtomDeleteSoft(MK_MNG)
static void rbmqmsgque_sMark(MK_PTR)
Definition MqDumpC_rb.c:377

Definition at line 29 of file MqDumpC_rb.c.

29 {
30 "MqDumpC",
31 {
32 NS(sMark),
33 MK(AtomDeleteSoft),
34 0, /* dsize */
35 0, /* reserved[1] */
36 },
37 NULL, /* parent */
38 NULL, /* data */
39 RUBY_TYPED_FREE_IMMEDIATELY
40};