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

tag: nhi1-release-250425 More...

+ Include dependency graph for MqDumpC_py.c:

Go to the source code of this file.

Macros

#define META_FILE_NAME   "MqDumpC_py.c"
 
#define OT_CLASS   (&NS(MqDumpCR))
 
#define OT_CLASS_NAME   "MqDumpC"
 
#define OT_LNG2META(O)
 
#define OT_retObj_CONSTR(mng)
 
#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 MqDumpCTT   MQ(MqMsgqueThreadState).MqDumpCTT
 
#define ClassInit
 
#define Error_doc   "MqDumpC MqDumpC.Error(error:MqContextC, ?dumpP_inout:MqDumpC=None?)"
 
#define Export_doc   "MqDumpC MqDumpC.Export(ctx:MqContextC, ?dumpP_inout:MqDumpC=None?)"
 
#define new_doc   "MqDumpC MqDumpC.new(ctx:MqContextC, ?dumpP_inout:MqDumpC=None?)"
 
#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 OT_OBJ_T pymqmsgque_MqDumpC_CTOR (MK_RT mkrt, OT_CLS_T type, MQ_DMP hdl)
 
static MK_PTR pymqmsgque_MqDumpC_selfCreate (MK_RT mkrt, MK_OBJ const obj, MK_PTR const env)
 
static void pymqmsgque_MqDumpC_selfDelete (MK_RT mkrt, MK_PTR self, MK_PTR const env)
 
static void pymqmsgque_MqDumpC_selfUnlink (MK_RT mkrt, MK_PTR self, MK_PTR const env)
 
static OT_ProcRet pymqmsgque_MqDumpC_HandleResolve (OtClass_ARGS)
  Python: [static] MqDumpC MqDumpC.HandleResolve(netHdl:MK_HDL) C-API
Handle-Resolve-Slot - return a MqDumpC from netHdl or None if invalid…
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet pymqmsgque_MqDumpC_HandleGet (MqDumpC_ARGS)
 
static OT_ProcRet pymqmsgque_MqDumpC_Next (MqDumpC_ARGS)
  Python: MqDumpC dmp.Next() C-API
get next instance from linked-list of MqDumpS type
 
static OT_ProcRet pymqmsgque_MqDumpC_Prev (MqDumpC_ARGS)
  Python: MqDumpC dmp.Prev() C-API
get previous instance from linked-list of MqDumpS type
 
static OT_ProcRet pymqmsgque_MqDumpC_Instances (OtClass_ARGS)
  Python: [static] MqDumpC MqDumpC.Instances() C-API
get head-instance from linked-list of MqDumpS type …
 
static OT_ProcRet pymqmsgque_MqDumpC_GetNull (OtClass_ARGS)
  Python: [static] MqDumpC MqDumpC.GetNull() C-API
Null-Slot - return a MqDumpC typed NULL instance …
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet pymqmsgque_MqDumpC_Log (MqDumpC_ARGS)
 
static OT_ProcRet pymqmsgque_MqDumpC_SizeGet (MqDumpC_ARGS)
  Python: long dump.SizeGet() C-API
report the binary data size from an MqDumpS object
 
static OT_ProcRet pymqmsgque_MqDumpC_TokenGet (MqDumpC_ARGS)
  Python: string dump.TokenGet() C-API
return the MqContextC_ServiceApi_Identifer
 
static OT_ProcRet pymqmsgque_MqDumpC_Error (OtClass_ARGS)
  Python: [constructor,static] MqDumpC MqDumpC.Error(error:MqContextC, ?dumpP_inout:MqDumpC=None?) C-API
export the context->error into the dump-package
 
static OT_ProcRet pymqmsgque_MqDumpC_Export (OtClass_ARGS)
  Python: [constructor,static] MqDumpC MqDumpC.Export(ctx:MqContextC, ?dumpP_inout:MqDumpC=None?) C-API
create a MqDumpC as export of the ctx-read-data-package
 
static OT_ProcRet pymqmsgque_MqDumpC_new (CONSTR_ARGS)
  Python: [constructor,static] MqDumpC MqDumpC.new(ctx:MqContextC, ?dumpP_inout:MqDumpC=None?) C-API
create a MqDumpC as export of the ctx-read-data-package
 
static OT_ProcRet pymqmsgque_MqDumpC_BinSet (OtClass_ARGS)
  Python: [constructor,static] MqDumpC MqDumpC.BinSet(data:binary) C-API
create an MqDumpS object from binary data
 
static OT_ProcRet pymqmsgque_MqDumpC_BinGet (MqDumpC_ARGS)
  Python: binary dump.BinGet() C-API
export the binary data from an MqDumpS object
 
static OT_ProcRet pymqmsgque_MqDumpC_Import (MqDumpC_ARGS)
  Python: dump.Import(ctx:MqContextC) C-API
import the dump-package into the ctx-read-data-package
 
int pymqmsgque_pMqDumpC_Init (MK_RT mkrt, OT_OBJ_T m)
 

Variables

static PyMethodDef pymqmsgque_MqDumpC_Methods []
 
OT_CLASS_TYPE_REF pymqmsgque_MqDumpCR
 

Detailed Description

tag: nhi1-release-250425

Definition in file MqDumpC_py.c.

Macro Definition Documentation

◆ BinGet_doc

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

Definition at line 114 of file MqDumpC_py.c.

◆ BinSet_doc

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

Definition at line 102 of file MqDumpC_py.c.

◆ ClassInit

#define ClassInit
Value:
/* if not already done, initialize NEW META type */ \
if (MqDumpCTT == NULL) MqDumpCTT = MqDumpSTT; \
\
/* protect against double call */ \
if (MqDumpCTT->selfCreate == NS(MqDumpC_selfCreate)) return MK_OK; \
\
/* add "selfCreate" and "selfDelete" feature to the META-Class */ \
MqDumpCTT->selfCreate = NS(MqDumpC_selfCreate); \
MqDumpCTT->selfDelete = NS(MqDumpC_selfDelete); \
MqDumpCTT->selfUnlink = NS(MqDumpC_selfUnlink); \
\
if (!PyType_HasFeature(OT_CLASS,Py_TPFLAGS_READY)) { \
NS(MqDumpCR).tp_base = MqDumpC_base; \
OtErrorCheckLng (PyType_Ready(OT_CLASS)); \
} \
OtErrorCheckLng(PyModule_AddObjectRef(m, "MqDumpC", (PyObject *)OT_CLASS)); \
\
/* define the "NULL" object */ \
MqDumpC_MK_NULL = Py_NewRef(MK(AtomCreate) (MK_RT_CALL OT_CLASS, NULL /*obj*/));
#define MK(n)
#define MqDumpC_base
#define NS(n)
#define MqDumpC_MK_NULL
#define OT_CLASS
Definition MqDumpC_py.c:16
#define MqDumpCTT
Definition MqDumpC_py.c:40
MK_OK
#define MK_RT_CALL
#define MqDumpSTT
instance-type as MkTypeS-class-type (cast from MqDumpST into MkTypeS) …
MqDumpC - the class known as dmp or dump is used to export a pymqmsgque data package as binary …

Definition at line 65 of file MqDumpC_py.c.

65#define ClassInit \
66 /* if not already done, initialize NEW META type */ \
67 if (MqDumpCTT == NULL) MqDumpCTT = MqDumpSTT; \
68 \
69 /* protect against double call */ \
70 if (MqDumpCTT->selfCreate == NS(MqDumpC_selfCreate)) return MK_OK; \
71 \
72 /* add "selfCreate" and "selfDelete" feature to the META-Class */ \
73 MqDumpCTT->selfCreate = NS(MqDumpC_selfCreate); \
74 MqDumpCTT->selfDelete = NS(MqDumpC_selfDelete); \
75 MqDumpCTT->selfUnlink = NS(MqDumpC_selfUnlink); \
76 \
77 if (!PyType_HasFeature(OT_CLASS,Py_TPFLAGS_READY)) { \
78 NS(MqDumpCR).tp_base = MqDumpC_base; \
79 OtErrorCheckLng (PyType_Ready(OT_CLASS)); \
80 } \
81 OtErrorCheckLng(PyModule_AddObjectRef(m, "MqDumpC", (PyObject *)OT_CLASS)); \
82 \
83 /* define the "NULL" object */ \
84 MqDumpC_MK_NULL = Py_NewRef(MK(AtomCreate) (MK_RT_CALL OT_CLASS, NULL /*obj*/));

◆ Error_doc

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

doc definition

Definition at line 97 of file MqDumpC_py.c.

◆ Export_doc

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

Definition at line 98 of file MqDumpC_py.c.

◆ GetNull_doc

#define GetNull_doc   "MqDumpC MqDumpC.GetNull()"

Definition at line 105 of file MqDumpC_py.c.

◆ HandleResolve_doc

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

Definition at line 106 of file MqDumpC_py.c.

◆ Import_doc

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

Definition at line 116 of file MqDumpC_py.c.

◆ Instances_doc

#define Instances_doc   "MqDumpC MqDumpC.Instances()"

Definition at line 107 of file MqDumpC_py.c.

◆ META_FILE_NAME

#define META_FILE_NAME   "MqDumpC_py.c"

Definition at line 11 of file MqDumpC_py.c.

◆ MqDumpCTT

#define MqDumpCTT   MQ(MqMsgqueThreadState).MqDumpCTT

Definition at line 40 of file MqDumpC_py.c.

◆ new_doc

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

Definition at line 99 of file MqDumpC_py.c.

◆ Next_doc

#define Next_doc   "MqDumpC dmp.Next()"

Definition at line 110 of file MqDumpC_py.c.

◆ OT_CLASS

#define OT_CLASS   (&NS(MqDumpCR))

Definition at line 16 of file MqDumpC_py.c.

◆ OT_CLASS_NAME

#define OT_CLASS_NAME   "MqDumpC"

Definition at line 17 of file MqDumpC_py.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 19 of file MqDumpC_py.c.

◆ OT_retObj_CONSTR

#define OT_retObj_CONSTR ( mng)
Value:
OT_retObj_SET(NS(MqDumpC_CTOR)(MK_RT_CALL (PyTypeObject*)class,mng))
#define OT_retObj_SET(val)

Definition at line 21 of file MqDumpC_py.c.

◆ OT_SETUP_hdl

#define OT_SETUP_hdl   OT_SETUP_hdl_tmpl(MqDumpC)

Definition at line 23 of file MqDumpC_py.c.

◆ OT_SETUP_hdl__null_allow

#define OT_SETUP_hdl__null_allow   OT_SETUP_hdl_tmpl__null_allow(MqDumpC)

Definition at line 24 of file MqDumpC_py.c.

◆ OT_SETUP_hdl_constr

#define OT_SETUP_hdl_constr
Value:
#define AllRtSetup_NULL
#define MK_RT_UNUSED
struct MqDumpS * MQ_DMP
class-shortcut for struct MqDumpS *, all shortcut using the XX_YYY syntax (only for public API) …

Definition at line 25 of file MqDumpC_py.c.

25#define OT_SETUP_hdl_constr MK_RT_UNUSED AllRtSetup_NULL; \
26 MQ_DMP hdl = (MQ_DMP) OT_CLASS;

◆ OT_SETUP_hdl_destr

#define OT_SETUP_hdl_destr   OT_SETUP_hdl_tmpl__null_allow(MqDumpC)

Definition at line 27 of file MqDumpC_py.c.

◆ OT_SETUP_hdl_static

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

Definition at line 28 of file MqDumpC_py.c.

28#define OT_SETUP_hdl_static MK_RT_UNUSED AllRtSetup_NULL; \
29 __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 31 of file MqDumpC_py.c.

◆ Prev_doc

#define Prev_doc   "MqDumpC dmp.Prev()"

Definition at line 111 of file MqDumpC_py.c.

◆ SetupRtFromObj_X

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

Definition at line 34 of file MqDumpC_py.c.

◆ SetupRtFromObj_XN

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

Definition at line 35 of file MqDumpC_py.c.

◆ SizeGet_doc

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

Definition at line 118 of file MqDumpC_py.c.

◆ TokenGet_doc

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

Definition at line 119 of file MqDumpC_py.c.

Function Documentation

◆ pymqmsgque_MqDumpC_CTOR()

static OT_OBJ_T pymqmsgque_MqDumpC_CTOR ( MK_RT mkrt,
OT_CLS_T type,
MQ_DMP hdl )
inlinestatic

Definition at line 44 of file MqDumpC_py.c.

44 {
45 return MK(AtomCreate)(MK_RT_CALL type,MqDumpC_X2obj(hdl));
46}
#define MqDumpC_X2obj(x)

◆ pymqmsgque_MqDumpC_selfCreate()

static MK_PTR pymqmsgque_MqDumpC_selfCreate ( MK_RT mkrt,
MK_OBJ const obj,
MK_PTR const env )
static

Definition at line 51 of file MqDumpC_py.c.

51 {
52 return MK(AtomCreate) (MK_RT_CALL OT_CLASS,obj);
53}
MK_OBJ const obj
Definition high_lng.h:136

◆ pymqmsgque_MqDumpC_selfDelete()

static void pymqmsgque_MqDumpC_selfDelete ( MK_RT mkrt,
MK_PTR self,
MK_PTR const env )
static

Definition at line 55 of file MqDumpC_py.c.

55 {
56 MK(AtomDeleteHard) (MK_RT_CALL OT_SELF);
57}
#define OT_SELF

◆ pymqmsgque_MqDumpC_selfUnlink()

static void pymqmsgque_MqDumpC_selfUnlink ( MK_RT mkrt,
MK_PTR self,
MK_PTR const env )
static

Definition at line 59 of file MqDumpC_py.c.

59 {
60 MkObjectC_Obj *selfO = (MkObjectC_Obj*) self;
61 selfO->hdl = NULL;
62}
PyObject_HEAD MK_OBJ hdl

◆ pymqmsgque_pMqDumpC_Init()

int pymqmsgque_pMqDumpC_Init ( MK_RT mkrt,
OT_OBJ_T m )

Public API

Definition at line 457 of file MqDumpC_py.c.

457 {
459
461
462 return 0;
463error:
464 return -1;
465}
#define ClassInit
Definition MqDumpC_py.c:65
#define error
Definition high_lng.h:339
#define MQ_STATIC_RT

Variable Documentation

◆ pymqmsgque_MqDumpC_Methods

PyMethodDef pymqmsgque_MqDumpC_Methods[]
static

Object definition

Definition at line 400 of file MqDumpC_py.c.

400 {
401
402 // BEGIN-CLASS - created by 'py_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
403
404 // doc-key: MqDumpC,MqDump,sCi
405 { "Error" , (PyCFunction) NS(MqDumpC_Error) , METH_VARARGS|METH_CLASS , Error_doc },
406 { "Export" , (PyCFunction) NS(MqDumpC_Export) , METH_VARARGS|METH_CLASS , Export_doc },
407
408 // doc-key: MqDumpC,MqDump,sCo
409 { "BinSet" , (PyCFunction) NS(MqDumpC_BinSet) , METH_O|METH_CLASS , BinSet_doc },
410
411 // doc-key: MqDumpC,MqDump,sc_
412 { "GetNull" , (PyCFunction) NS(MqDumpC_GetNull) , METH_NOARGS|METH_CLASS , GetNull_doc },
413 { "HandleResolve" , (PyCFunction) NS(MqDumpC_HandleResolve) , METH_O|METH_CLASS , HandleResolve_doc },
414 { "Instances" , (PyCFunction) NS(MqDumpC_Instances) , METH_NOARGS|METH_CLASS , Instances_doc },
415
416 // END-CLASS - created by 'py_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
417
418 // BEGIN-OBJ - created by 'py_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
419
420 // doc-key: MqDumpC,MqDump,oc_
421 { "Next" , (PyCFunction) NS(MqDumpC_Next) , METH_NOARGS , Next_doc },
422 { "Prev" , (PyCFunction) NS(MqDumpC_Prev) , METH_NOARGS , Prev_doc },
423
424 // doc-key: MqDumpC,MqDump,om_
425 { "BinGet" , (PyCFunction) NS(MqDumpC_BinGet) , METH_NOARGS , BinGet_doc },
426 // skip class-overload: MqDumpHandleGet → HandleGet, NS(MqDumpC_HandleGet)
427 { "Import" , (PyCFunction) NS(MqDumpC_Import) , METH_O , Import_doc },
428 // skip class-overload: MqDumpLog → Log, NS(MqDumpC_Log)
429 { "SizeGet" , (PyCFunction) NS(MqDumpC_SizeGet) , METH_NOARGS , SizeGet_doc },
430 { "TokenGet" , (PyCFunction) NS(MqDumpC_TokenGet) , METH_NOARGS , TokenGet_doc },
431
432 // END-OBJ - created by 'py_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
433
434 {NULL, NULL, 0, NULL} /* Sentinel */
435};
#define Instances_doc
Definition MqDumpC_py.c:107
#define Import_doc
Definition MqDumpC_py.c:116
#define GetNull_doc
Definition MqDumpC_py.c:105
#define Next_doc
Definition MqDumpC_py.c:110
#define Error_doc
Definition MqDumpC_py.c:97
#define HandleResolve_doc
Definition MqDumpC_py.c:106
#define Prev_doc
Definition MqDumpC_py.c:111
#define Export_doc
Definition MqDumpC_py.c:98
#define SizeGet_doc
Definition MqDumpC_py.c:118
#define TokenGet_doc
Definition MqDumpC_py.c:119
#define BinSet_doc
Definition MqDumpC_py.c:102
#define BinGet_doc
Definition MqDumpC_py.c:114

◆ pymqmsgque_MqDumpCR

OT_CLASS_TYPE_REF pymqmsgque_MqDumpCR
Initial value:
= {
PyVarObject_HEAD_INIT(NULL, 0)
.tp_name = "pymqmsgque.MqDumpC",
.tp_doc = "PyMqMsgque MqDumpC Type",
.tp_basicsize = sizeof(MqDumpC_Obj),
.tp_itemsize = 0,
.tp_new = (newfunc) pymqmsgque_MqDumpC_new ,
.tp_flags = Py_TPFLAGS_DEFAULT,
.tp_base = NULL
}
struct MqDumpC_Obj MqDumpC_Obj
static PyMethodDef pymqmsgque_MqDumpC_Methods[]
Definition MqDumpC_py.c:400
static OT_ProcRet pymqmsgque_MqDumpC_new(CONSTR_ARGS)
Python: [constructor,static] MqDumpC MqDumpC.new(ctx:MqContextC, ?dumpP_inout:MqDumpC=None?...
Definition MqDumpC_py.c:321

Definition at line 438 of file MqDumpC_py.c.

438 {
439 PyVarObject_HEAD_INIT(NULL, 0)
440 .tp_name = "pymqmsgque.MqDumpC",
441 .tp_doc = "PyMqMsgque MqDumpC Type",
442 .tp_basicsize = sizeof(MqDumpC_Obj),
443 .tp_itemsize = 0,
444 .tp_new = (newfunc) NS(MqDumpC_new),
445 .tp_methods = NS(MqDumpC_Methods),
446 .tp_flags = Py_TPFLAGS_DEFAULT,
447 .tp_base = NULL
448};