theLink 10.0
Loading...
Searching...
No Matches
LibMqMsgque_rb.h
Go to the documentation of this file.
1
9#pragma once
10
11#include "LibMkKernel_rb.h"
12#include "LibMqMsgque_mq.h"
13
14/*****************************************************************************/
15/* */
16/* Macro_API */
17/* */
18/*****************************************************************************/
19
20// BEGIN-HEADER - created by 'rb_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
21
22#undef HEADER
23#define HEADER
24
25// If the source of libmqmsgque is direct used in an external library
26// (without dynamic linking) and this library should *not* export
27// the symbol's of libmqmsgque then the flag META_IGNORE_EXTERN have
28// to be set
29#undef MQ_RB_EXTERN
30#if defined(META_IGNORE_EXTERN)
31# define MQ_RB_EXTERN
32#elif defined(PIC)
33 // does we build a DLL ?
34# if defined(DLL_EXPORT)
35 // does we build the libmqmsgque library ?
36# if defined(MQ_RB_BUILD_DLL)
37# define MQ_RB_EXTERN __declspec(dllexport)
38# else
39# define MQ_RB_EXTERN __declspec(dllimport)
40# endif
41# else
42 // no DLL - architecture specific extern specifier
43# define MQ_RB_EXTERN __attribute__ ((visibility("default")))
44# endif
45#else
47# define MQ_RB_EXTERN
48#endif
49
50// external data lookup
51#undef MQ_RB_EXTERN_DATA
52#if defined(META_PRIVATE)
53# define MQ_RB_EXTERN_DATA extern
54#elif defined(META_IGNORE_EXTERN)
55# define MQ_RB_EXTERN_DATA extern
56#elif defined(PIC)
57 // does we build a DLL ?
58# if defined(DLL_EXPORT)
59 // does we build the libmqmsgque library ?
60# if defined(MQ_RB_BUILD_DLL)
61# define MQ_RB_EXTERN_DATA __declspec(dllexport)
62# else
63# define MQ_RB_EXTERN_DATA __declspec(dllimport)
64# endif
65# else
66 // no DLL - architecture specific extern specifier
67# define MQ_RB_EXTERN_DATA __attribute__ ((visibility("default"))) extern
68# endif
69#else
70# define MQ_RB_EXTERN_DATA extern
71#endif
72
73#undef MQ
74#define MQ(n) rbmqmsgque_ ## n
75#undef NS
76#define NS(n) rbmqmsgque_ ## n
77
78// END-HEADER - created by 'rb_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
79
80#undef OT_PKG
81#define OT_PKG MQ(MqMsgque)
82
83#include "tmpl/mq_type_S_lng.h"
85
86/*****************************************************************************/
87/* */
88/* Class_API */
89/* */
90/*****************************************************************************/
91
93
94// BEGIN-CLASS - created by 'rb_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
95
96// ----------------------------------------------------------------------
97// class: MqContextC
98
100 #define MqContextC_lngO MQ(MqContextC)
101 #define MqContextC_base MK(MkObjectC)
102
103 // MK_NULL singelton
105 #define MqContextC_MK_NULL MQ(MqContextC_MK_NULL)
106
107 // arguments
108 #define MqContextC_ARGS LNG_ARGS
109 #define MqContextC_ARGS_CALL LNG_ARGS_CALL
110
111 // return object
112 #define OT_retObj_SET_CTX(nat) retObj = MQ(MqContextC_ObjNew) (MK_RT_CALL nat)
113
114 // new object
115 #define OT_TMP_CTX_OBJ(val) MQ(MqContextC_ObjNew)(MK_RT_CALL val)
117 mk_inline OT_OBJ_T MQ(MqContextC_ObjNew) (MK_RT_ARGS MqContextC_type hdl) {
118 return hdl ? MK(AtomObjNew) (MK_RT_CALL MqContextC_X2obj(hdl)) : MqContextC_MK_NULL;
119 }
120
121 // cast from LNG to MQ
122 #define VAL2CTX(val) ((MQ_CTX)DATA_PTR(val))
123
124// ----------------------------------------------------------------------
125// class: MqDumpC
126
128 #define MqDumpC_lngO MQ(MqDumpC)
129 #define MqDumpC_base MK(MkObjectC)
130
131 // MK_NULL singelton
133 #define MqDumpC_MK_NULL MQ(MqDumpC_MK_NULL)
134
135 // arguments
136 #define MqDumpC_ARGS LNG_ARGS
137 #define MqDumpC_ARGS_CALL LNG_ARGS_CALL
138
139 // return object
140 #define OT_retObj_SET_DMP(nat) retObj = MQ(MqDumpC_ObjNew) (MK_RT_CALL nat)
141
142 // new object
143 #define OT_TMP_DMP_OBJ(val) MQ(MqDumpC_ObjNew)(MK_RT_CALL val)
146 return hdl ? MK(AtomObjNew) (MK_RT_CALL MqDumpC_X2obj(hdl)) : MqDumpC_MK_NULL;
147 }
148
149 // cast from LNG to MQ
150 #define VAL2DMP(val) ((MQ_DMP)DATA_PTR(val))
151
152// ----------------------------------------------------------------------
153// class: MqFactoryC
154
156 #define MqFactoryC_lngO MQ(MqFactoryC)
157 #define MqFactoryC_base MK(MkObjectC)
158
159 // MK_NULL singelton
161 #define MqFactoryC_MK_NULL MQ(MqFactoryC_MK_NULL)
162
163 // arguments
164 #define MqFactoryC_ARGS LNG_ARGS
165 #define MqFactoryC_ARGS_CALL LNG_ARGS_CALL
166
167 // return object
168 #define OT_retObj_SET_FCT(nat) retObj = MQ(MqFactoryC_ObjNew) (MK_RT_CALL nat)
169
170 // new object
171 #define OT_TMP_FCT_OBJ(val) MQ(MqFactoryC_ObjNew)(MK_RT_CALL val)
173 mk_inline OT_OBJ_T MQ(MqFactoryC_ObjNew) (MK_RT_ARGS MqFactoryC_type hdl) {
174 return hdl ? MK(AtomObjNew) (MK_RT_CALL MqFactoryC_X2obj(hdl)) : MqFactoryC_MK_NULL;
175 }
176
177 // cast from LNG to MQ
178 #define VAL2FCT(val) ((MQ_FCT)DATA_PTR(val))
179
180// END-CLASS - created by 'rb_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
181
182/*****************************************************************************/
183/* */
184/* lng_basic */
185/* */
186/*****************************************************************************/
187
188#define OT_GET_CTX(hdl) MkObjGetContext(hdl)
189
190// enums ******************************************************************************
191
192#define OT_NEW_Mq_enum_OBJ(typ,i) MK(OtNewInstanceWithOneArg)(MQ(Mq##typ),INT2VAL(i))
193
194// BEGIN-enum - created by 'rb_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
195
201
202// END-enum - created by 'rb_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
203
204/*****************************************************************************/
205/* */
206/* Misc's */
207/* */
208/*****************************************************************************/
209
210#undef HEADER
tag: nhi1-release-250425
#define MK(n)
#define OT_CLS_T
#define OT_OBJ_T
#define MqContextC_MK_NULL
#define MQ_RB_EXTERN_DATA
#define MQ(n)
#define MqDumpC_MK_NULL
#define MqFactoryC_MK_NULL
#define mk_inline
#define MK_ARTIFICIAL
#define MK_RT_CALL
#define MK_RT_ARGS
#define MqContextC_type
same as MqContextS but useable in a class-macro as: class##_type …
#define MqContextC_X2obj(x)
#define MqDumpC_X2obj(x)
#define MqDumpC_type
same as MqDumpS but useable in a class-macro as: class##_type …
#define MqFactoryC_X2obj(x)
#define MqFactoryC_type
same as MqFactoryS but useable in a class-macro as: class##_type …
MqWaitOnEventE
wait for an event? …
MqSlaveE
predefined slave-id for well known slaves …
MqIdentE
identify the application using prefix (default) or factory …
MqStartE
User preferences on HOWTO start a new entity.
MqStatusIsEF
Information about how the context was created.
tag: nhi1-release-250425
tag: nhi1-release-250425