theLink
10.0
NHI1
-
theKernel
-
theLink
-
theConfig
-
theSq3Lite
-
theCompiler
-
theBrain
-
theGuard
-
theLib
-
theATL
c
-
tcl
-
atl
-
cs
-
py
-
rb
-
jv
-
cc
Loading...
Searching...
No Matches
LibMqMsgque_py.h
Go to the documentation of this file.
1
9
#pragma once
10
11
#include "
LibMkKernel_py.h
"
12
#include "
LibMqMsgque_mq.h
"
13
/*****************************************************************************/
14
/* */
15
/* Macro_API */
16
/* */
17
/*****************************************************************************/
18
19
// BEGIN-HEADER - created by 'py_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
20
21
#undef HEADER
22
#define HEADER
23
24
// If the source of libmqmsgque is direct used in an external library
25
// (without dynamic linking) and this library should *not* export
26
// the symbol's of libmqmsgque then the flag META_IGNORE_EXTERN have
27
// to be set
28
#undef MQ_PY_EXTERN
29
#if defined(META_IGNORE_EXTERN)
30
# define MQ_PY_EXTERN
31
#elif defined(PIC)
32
// does we build a DLL ?
33
# if defined(DLL_EXPORT)
34
// does we build the libmqmsgque library ?
35
# if defined(MQ_PY_BUILD_DLL)
36
# define MQ_PY_EXTERN __declspec(dllexport)
37
# else
38
# define MQ_PY_EXTERN __declspec(dllimport)
39
# endif
40
# else
41
// no DLL - architecture specific extern specifier
42
# define MQ_PY_EXTERN __attribute__ ((visibility("default")))
43
# endif
44
#else
46
# define MQ_PY_EXTERN
47
#endif
48
49
// external data lookup
50
#undef MQ_PY_EXTERN_DATA
51
#if defined(META_PRIVATE)
52
# define MQ_PY_EXTERN_DATA extern
53
#elif defined(META_IGNORE_EXTERN)
54
# define MQ_PY_EXTERN_DATA extern
55
#elif defined(PIC)
56
// does we build a DLL ?
57
# if defined(DLL_EXPORT)
58
// does we build the libmqmsgque library ?
59
# if defined(MQ_PY_BUILD_DLL)
60
# define MQ_PY_EXTERN_DATA __declspec(dllexport)
61
# else
62
# define MQ_PY_EXTERN_DATA __declspec(dllimport)
63
# endif
64
# else
65
// no DLL - architecture specific extern specifier
66
# define MQ_PY_EXTERN_DATA __attribute__ ((visibility("default"))) extern
67
# endif
68
#else
69
# define MQ_PY_EXTERN_DATA extern
70
#endif
71
72
#undef MQ
73
#define MQ(n) pymqmsgque_ ## n
74
#undef NS
75
#define NS(n) pymqmsgque_ ## n
76
77
// END-HEADER - created by 'py_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
78
79
/*****************************************************************************/
80
/* */
81
/* Module API */
82
/* */
83
/*****************************************************************************/
84
85
// BEGIN-CLASS-DEC - created by 'py_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
86
87
int
NS
(pMqFactoryC_Init) (
MK_RT_ARGS
OT_OBJ_T
) ;
88
int
NS
(pMqDumpC_Init) (
MK_RT_ARGS
OT_OBJ_T
) ;
89
int
NS
(pMqContextC_Init) (
MK_RT_ARGS
OT_OBJ_T
) ;
90
91
// END-CLASS-DEC - created by 'py_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
92
93
typedef
struct
{
94
// BEGIN-EnumThreadState - created by 'py_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
95
96
PyTypeObject*
MqIdentE
;
97
PyTypeObject*
MqSlaveE
;
98
PyTypeObject*
MqStartE
;
99
PyTypeObject*
MqStatusIsEF
;
100
PyTypeObject*
MqWaitOnEventE
;
101
102
// END-EnumThreadState - created by 'py_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
103
// BEGIN-ClassThreadState - created by 'py_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
104
105
MK_TYP
MqFactoryCTT
;
106
MK_TYP
MqDumpCTT
;
107
MK_TYP
MqContextCTT
;
108
109
// END-ClassThreadState - created by 'py_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
110
// BEGIN-ClassThreadStateNull - created by 'py_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
111
112
PyObject*
MqFactoryC_MK_NULL
;
113
PyObject*
MqDumpC_MK_NULL
;
114
PyObject*
MqContextC_MK_NULL
;
115
116
// END-ClassThreadStateNull - created by 'py_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
117
118
}
MqMsgqueThreadStateS
;
119
120
MK_PY_EXTERN_DATA
MkThreadLocal
MqMsgqueThreadStateS
MQ
(MqMsgqueThreadState);
121
122
/*****************************************************************************/
123
/* */
124
/* Class_API */
125
/* */
126
/*****************************************************************************/
127
128
// BEGIN-CLASS - created by 'py_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
129
130
// ----------------------------------------------------------------------
131
// class: MqContextC
132
133
// class struct
134
typedef
struct
MqContextC_Obj
{
135
PyObject_HEAD
136
MQ_CTX
hdl
;
137
}
MqContextC_Obj
;
138
139
MQ_PY_EXTERN_DATA
OT_CLASS_TYPE_REF
MQ
(
MqContextCR
);
140
#define MqContextC_lngO (&MQ(MqContextCR))
141
#define MqContextC_base (&MK(MkObjectCR))
142
143
// MK_NULL singelton
144
#define MqContextC_MK_NULL MQ(MqMsgqueThreadState).MqContextC_MK_NULL
145
146
// arguments
147
#define MqContextC_ARGS MqContextC_Obj *self, PyObject *objv
148
#define MqContextC_ARGS_CALL self, objv
149
150
// return object
151
#define OT_retObj_SET_CTX(nat) retObj = MQ(MqContextC_ObjNew) (MK_RT_CALL &MQ(MqContextCR),nat)
152
153
// new objec
154
#define OT_TMP_CTX_OBJ(val) MQ(MqContextC_ObjNew)(MK_RT_CALL &MQ(MqContextCR),val)
155
MK_ARTIFICIAL
156
mk_inline
OT_OBJ_T
MQ
(MqContextC_ObjNew) (
MK_RT_ARGS
OT_CLS_T
type,
MQ_CTX
hdl ) {
157
return
hdl ?
MK
(AtomObjNew)(
MK_RT_CALL
type,
MqContextC_X2obj
(hdl)) : Py_NewRef(
MqContextC_MK_NULL
);
158
}
159
160
// cast from LNG to MQ
161
#define VAL2CTX(val) ((MqContextC_Obj*) (val))->hdl
162
163
// ----------------------------------------------------------------------
164
// class: MqDumpC
165
166
// class struct
167
typedef
struct
MqDumpC_Obj
{
168
PyObject_HEAD
169
MQ_DMP
hdl
;
170
}
MqDumpC_Obj
;
171
172
MQ_PY_EXTERN_DATA
OT_CLASS_TYPE_REF
MQ
(
MqDumpCR
);
173
#define MqDumpC_lngO (&MQ(MqDumpCR))
174
#define MqDumpC_base (&MK(MkObjectCR))
175
176
// MK_NULL singelton
177
#define MqDumpC_MK_NULL MQ(MqMsgqueThreadState).MqDumpC_MK_NULL
178
179
// arguments
180
#define MqDumpC_ARGS MqDumpC_Obj *self, PyObject *objv
181
#define MqDumpC_ARGS_CALL self, objv
182
183
// return object
184
#define OT_retObj_SET_DMP(nat) retObj = MQ(MqDumpC_ObjNew) (MK_RT_CALL &MQ(MqDumpCR),nat)
185
186
// new objec
187
#define OT_TMP_DMP_OBJ(val) MQ(MqDumpC_ObjNew)(MK_RT_CALL &MQ(MqDumpCR),val)
188
MK_ARTIFICIAL
189
mk_inline
OT_OBJ_T
MQ
(MqDumpC_ObjNew) (
MK_RT_ARGS
OT_CLS_T
type,
MQ_DMP
hdl ) {
190
return
hdl ?
MK
(AtomObjNew)(
MK_RT_CALL
type,
MqDumpC_X2obj
(hdl)) : Py_NewRef(
MqDumpC_MK_NULL
);
191
}
192
193
// cast from LNG to MQ
194
#define VAL2DMP(val) ((MqDumpC_Obj*) (val))->hdl
195
196
// ----------------------------------------------------------------------
197
// class: MqFactoryC
198
199
// class struct
200
typedef
struct
MqFactoryC_Obj
{
201
PyObject_HEAD
202
MQ_FCT
hdl
;
203
}
MqFactoryC_Obj
;
204
205
MQ_PY_EXTERN_DATA
OT_CLASS_TYPE_REF
MQ
(
MqFactoryCR
);
206
#define MqFactoryC_lngO (&MQ(MqFactoryCR))
207
#define MqFactoryC_base (&MK(MkObjectCR))
208
209
// MK_NULL singelton
210
#define MqFactoryC_MK_NULL MQ(MqMsgqueThreadState).MqFactoryC_MK_NULL
211
212
// arguments
213
#define MqFactoryC_ARGS MqFactoryC_Obj *self, PyObject *objv
214
#define MqFactoryC_ARGS_CALL self, objv
215
216
// return object
217
#define OT_retObj_SET_FCT(nat) retObj = MQ(MqFactoryC_ObjNew) (MK_RT_CALL &MQ(MqFactoryCR),nat)
218
219
// new objec
220
#define OT_TMP_FCT_OBJ(val) MQ(MqFactoryC_ObjNew)(MK_RT_CALL &MQ(MqFactoryCR),val)
221
MK_ARTIFICIAL
222
mk_inline
OT_OBJ_T
MQ
(MqFactoryC_ObjNew) (
MK_RT_ARGS
OT_CLS_T
type,
MQ_FCT
hdl ) {
223
return
hdl ?
MK
(AtomObjNew)(
MK_RT_CALL
type,
MqFactoryC_X2obj
(hdl)) : Py_NewRef(
MqFactoryC_MK_NULL
);
224
}
225
226
// cast from LNG to MQ
227
#define VAL2FCT(val) ((MqFactoryC_Obj*) (val))->hdl
228
229
// END-CLASS - created by 'py_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
230
231
/*****************************************************************************/
232
/* */
233
/* check */
234
/* */
235
/*****************************************************************************/
236
237
#include "
tmpl/mq_type_S_lng.h
"
238
239
#define OT_CTX (((MqContextC_Obj*)self)->hdl)
240
#define OT_SETUP_self MqContextC_Obj* self = OT_MqCFromMqS(META_CONTEXT_S);
241
#define OT_MqCFromMqS(ctx) ((MqContextC_Obj*)(MkOBJ_R(ctx).self))
242
243
// check *********************************************************************************
244
245
#include "
tmpl/mq_misc_check_lng.h
"
246
247
// enum ******************************************************************************
248
249
#define OT_NEW_Mq_enum_OBJ(typ,val) PyObject_CallFunction((PyObject*)(Mq ## typ ## _lngO),"i",val)
250
251
// BEGIN-EnumExtern - created by 'py_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
252
253
#define MqIdentE_lngO (MQ(MqMsgqueThreadState).MqIdentE)
254
#define MqSlaveE_lngO (MQ(MqMsgqueThreadState).MqSlaveE)
255
#define MqStartE_lngO (MQ(MqMsgqueThreadState).MqStartE)
256
#define MqStatusIsEF_lngO (MQ(MqMsgqueThreadState).MqStatusIsEF)
257
#define MqWaitOnEventE_lngO (MQ(MqMsgqueThreadState).MqWaitOnEventE)
258
259
// END-EnumExtern - created by 'py_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
260
261
/*****************************************************************************/
262
/* */
263
/* debugging */
264
/* */
265
/*****************************************************************************/
266
267
#define printSelf(o) printXSObj(((MqContextC_Obj*)o)->ctx,#o,(o!=NULL?(PyObject*)o:(PyObject*)Py_None))
268
269
#undef HEADER
LibMkKernel_py.h
tag: nhi1-release-250425
MK
#define MK(n)
Definition
LibMkKernel_py.h:84
MK_PY_EXTERN_DATA
#define MK_PY_EXTERN_DATA
Definition
LibMkKernel_py.h:80
OT_CLS_T
PyTypeObject * OT_CLS_T
Definition
LibMkKernel_py.h:103
OT_OBJ_T
PyObject * OT_OBJ_T
Definition
LibMkKernel_py.h:100
OT_CLASS_TYPE_REF
#define OT_CLASS_TYPE_REF
Definition
LibMkKernel_py.h:197
LibMqMsgque_mq.h
MqContextC_MK_NULL
#define MqContextC_MK_NULL
Definition
LibMqMsgque_py.h:144
MqContextC_Obj
struct MqContextC_Obj MqContextC_Obj
MQ_PY_EXTERN_DATA
#define MQ_PY_EXTERN_DATA
Definition
LibMqMsgque_py.h:69
MqDumpC_Obj
struct MqDumpC_Obj MqDumpC_Obj
MQ
#define MQ(n)
Definition
LibMqMsgque_py.h:73
NS
#define NS(n)
Definition
LibMqMsgque_py.h:75
MqFactoryC_Obj
struct MqFactoryC_Obj MqFactoryC_Obj
MqDumpC_MK_NULL
#define MqDumpC_MK_NULL
Definition
LibMqMsgque_py.h:177
MqFactoryC_MK_NULL
#define MqFactoryC_MK_NULL
Definition
LibMqMsgque_py.h:210
mk_inline
#define mk_inline
MK_ARTIFICIAL
#define MK_ARTIFICIAL
MkThreadLocal
#define MkThreadLocal
MK_RT_CALL
#define MK_RT_CALL
MK_RT_ARGS
#define MK_RT_ARGS
MqContextC_X2obj
#define MqContextC_X2obj(x)
Definition
LibMqMsgque_mq.h:4154
MqDumpC_X2obj
#define MqDumpC_X2obj(x)
Definition
LibMqMsgque_mq.h:8697
MqFactoryC_X2obj
#define MqFactoryC_X2obj(x)
Definition
LibMqMsgque_mq.h:3208
mq_misc_check_lng.h
tag: nhi1-release-250425
mq_type_S_lng.h
tag: nhi1-release-250425
MkTypeS
MqContextC_Obj
Definition
LibMqMsgque_py.h:134
MqContextC_Obj::hdl
PyObject_HEAD MQ_CTX hdl
Definition
LibMqMsgque_py.h:136
MqContextS
PUBLIC data structure for the pymqmsgque-specific-data
Definition
LibMqMsgque_mq.h:4110
MqDumpC_Obj
Definition
LibMqMsgque_py.h:167
MqDumpC_Obj::hdl
PyObject_HEAD MQ_DMP hdl
Definition
LibMqMsgque_py.h:169
MqDumpS
MqDumpC - the class known as dmp or dump is used to export a pymqmsgque data package as binary …
Definition
LibMqMsgque_mq.h:8661
MqFactoryC_Obj
Definition
LibMqMsgque_py.h:200
MqFactoryC_Obj::hdl
PyObject_HEAD MQ_FCT hdl
Definition
LibMqMsgque_py.h:202
MqFactoryS
data used to define a factory
Definition
LibMqMsgque_mq.h:3169
MqMsgqueThreadStateS
Definition
LibMqMsgque_py.h:93
MqMsgqueThreadStateS::MqSlaveE
PyTypeObject * MqSlaveE
Definition
LibMqMsgque_py.h:97
MqMsgqueThreadStateS::MqContextCTT
MK_TYP MqContextCTT
Definition
LibMqMsgque_py.h:107
MqMsgqueThreadStateS::MqDumpC_MK_NULL
PyObject * MqDumpC_MK_NULL
Definition
LibMqMsgque_py.h:113
MqMsgqueThreadStateS::MqIdentE
PyTypeObject * MqIdentE
Definition
LibMqMsgque_py.h:96
MqMsgqueThreadStateS::MqFactoryCTT
MK_TYP MqFactoryCTT
Definition
LibMqMsgque_py.h:105
MqMsgqueThreadStateS::MqStatusIsEF
PyTypeObject * MqStatusIsEF
Definition
LibMqMsgque_py.h:99
MqMsgqueThreadStateS::MqStartE
PyTypeObject * MqStartE
Definition
LibMqMsgque_py.h:98
MqMsgqueThreadStateS::MqFactoryC_MK_NULL
PyObject * MqFactoryC_MK_NULL
Definition
LibMqMsgque_py.h:112
MqMsgqueThreadStateS::MqWaitOnEventE
PyTypeObject * MqWaitOnEventE
Definition
LibMqMsgque_py.h:100
MqMsgqueThreadStateS::MqContextC_MK_NULL
PyObject * MqContextC_MK_NULL
Definition
LibMqMsgque_py.h:114
MqMsgqueThreadStateS::MqDumpCTT
MK_TYP MqDumpCTT
Definition
LibMqMsgque_py.h:106
Generated on Thu May 29 2025 13:13:59 for theLink by
1.12.0