theLink 10.0
Loading...
Searching...
No Matches
MqDumpC_cc.hh
Go to the documentation of this file.
1
9/* LABEL-INIT */
10
11#pragma once
12
13namespace ccmqmsgque {
14
17 typedef struct {
20 } MqDumpC_A;
21
24 class MqDumpC : public MkObjectC {
25
26 friend class MqMsgque;
27
28/* LABEL-START */
29
32
33 public:
34 static thread_local MqDumpC MK_NULL_REF;
35
36 private:
37
39 return (hdl != NULL ? static_cast<MqDumpC*>((*MqDumpC_X2obj(hdl)).self) : &MK_NULL_REF);
40 }
41
42 #ifdef MqDumpC_selfCreate_overload
43 static MK_PTR MqDumpC_selfCreate (MK_RT_ARGS MK_OBJ obj, MK_PTR const env);
44 #else
46 return new MqDumpC(obj);
47 }
48 #endif
49
50 static void MqDumpC_selfDelete (MK_RT_ARGS MK_PTR self, MK_PTR env) {
51 delete static_cast<MqDumpC*>(self);
52 }
53
54 static void MqDumpC_selfUnlink (MK_RT_ARGS MK_PTR self, MK_PTR env) {
55 MqDumpC* selfO = static_cast<MqDumpC*>(self);
56 selfO->atomUnlink();
57 }
58
60
61
65
66#ifndef META_IS_MkObjectC
67 MqDumpC (MK_OBJ obj) : MkObjectC(obj) {};
68#endif
69
70 public:
71
72#ifndef META_IS_MkObjectC
74#endif
75
80
82 MQ_DMP getDMP() const {
83 MQ_DMP ret = reinterpret_cast<MQ_DMP>(hdl);
84 if (unlikely(ret == NULL)) InstHdlIsNullError();
85 return ret;
86 };
87
90 return reinterpret_cast<MQ_DMP>(hdl);
91 };
92
94 MQ_DMPN getDMPN() const {
95 MQ_DMPN ret = reinterpret_cast<MQ_DMPN>(hdl);
96 if (unlikely(ret == NULL)) InstHdlIsNullError();
97 return ret;
98 };
99
102 return reinterpret_cast<MQ_DMPN>(hdl);
103 };
104
106 static MQ_DMP getDMP(MqDumpC* clsHdl) {
107 MQ_DMP ret = clsHdl ? reinterpret_cast<MQ_DMP>(clsHdl->hdl) : NULL;
108 if (unlikely(ret == NULL)) ClassHdlIsNullError(MqDumpC);
109 return ret;
110 };
111
114 return clsHdl ? reinterpret_cast<MQ_DMP>(clsHdl->hdl) : NULL;
115 };
116
118 static MQ_DMPN getDMPN(const MqDumpC* clsHdl) {
119 MQ_DMPN ret = clsHdl ? reinterpret_cast<MQ_DMPN>(clsHdl->hdl) : NULL;
120 if (unlikely(ret == NULL)) ClassHdlIsNullError(MqDumpC);
121 return ret;
122 };
123
125 static MQ_DMPN getDMPN__null_allow(const MqDumpC* clsHdl) {
126 return clsHdl ? reinterpret_cast<MQ_DMPN>(clsHdl->hdl) : NULL;
127 };
128
130 static MQ_DMP getDMP(const MqDumpC& clsHdl) {
131 return clsHdl.getDMP();
132 };
133
135 static MQ_DMP getDMP__null_allow(const MqDumpC& clsHdl) {
136 return clsHdl.getDMP__null_allow();
137 };
138
140 static MQ_DMPN getDMPN(const MqDumpC& clsHdl) {
141 return clsHdl.getDMPN();
142 };
143
145 static MQ_DMPN getDMPN__null_allow(const MqDumpC& clsHdl) {
146 return clsHdl.getDMPN__null_allow();
147 };
148
150 bool Check() const {
151 return (hdl && MqDmpCheck(hdl));
152 };
153
154/* LABEL-END */
155
156 private:
157
158 MqDumpC () {};
159
160 public:
161
162 // BEGIN-MqDumpC - created by 'cc_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
163
167
168 public:
169
170 // doc-key: MqDumpC,MqDumpC-Class-Export,sc_,public
171
173 static MqDumpC* HandleResolve (MK_HDL netHdl);
174
175 // doc-key: MqDumpC,MqDumpC-Class-Export,om_,public
176
177 // skip class-overload: MK_HDL HandleGet ()
178
180 // MqDumpC_Class_CC_API
181
185
186 public:
187
188 // doc-key: MqDumpC,MqDumpC-Class-Introspection,oc_,public
189
191 MqDumpC* Next ();
192
194 MqDumpC* Prev ();
195
196 // doc-key: MqDumpC,MqDumpC-Class-Introspection,sc_,public
197
199 static MqDumpC* Instances ();
200
202 // MqDumpC_Class_CC_API
203
207
208 public:
209
210 // doc-key: MqDumpC,MqDumpC-Class-Misc,sc_,public
211
213 static MqDumpC* GetNull ();
214
216 // MqDumpC_Class_CC_API
217
221
222 public:
223
224 // doc-key: MqDumpC,MqDumpC-Misc,om_,public
225
226 // skip class-overload: void Log (const MkObjectC* fmtobj = NULL, MK_I32 debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const
227
228 // skip class-overload: void Log (const MkObjectC& fmtobj, MK_I32 debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const
229
231 MK_SIZE SizeGet () const;
232
234 MK_STRN TokenGet () const;
235
237 // MqDumpC_Misc_CC_API
238
242
243 private:
244
245 // doc-key: MqDumpC,MqDumpC-TOR,sCi,private
246
248 static MK_OBJ CTOR (MqContextC* ctx, MqDumpC* dumpP_inout = NULL);
249
250 public:
251
252 // doc-key: MqDumpC,MqDumpC-TOR,sCi,public
253
255 static MqDumpC* Error (MqContextC* error, MqDumpC* dumpP_inout = NULL);
256
258 static MqDumpC* Export (MqContextC* ctx, MqDumpC* dumpP_inout = NULL);
259
261 MqDumpC (MqContextC* ctx, MqDumpC* dumpP_inout = NULL) : MkObjectC(CTOR(ctx, dumpP_inout)) {};
262
263 // doc-key: MqDumpC,MqDumpC-TOR,sCo,public
264
266 static MqDumpC* BinSet (MK_BNP data);
267
268 // doc-key: MqDumpC,MqDumpC-TOR,om_,public
269
271 MK_BNP BinGet () const;
272
274 void Import (MqContextC* ctx);
275
277 void Import (const MqContextC& ctx);
278
280 // MqDumpC_TOR_CC_API
281
282 // END-MqDumpC - created by 'cc_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
283
285 };
286
287}
PUBLIC data structure for the ccmqmsgque-specific-data → C-API: libmqmsgque::MqContextS
MqDumpC - the class known as dmp or dump is used to export a ccmqmsgque data package as binary … ...
Definition MqDumpC_cc.hh:24
MqMsgque PACKAGE - the package is the toplevel structure of the ccmqmsgque …
#define unlikely(x)
int32_t MK_HDL
int32_t MK_NUM
MK_PTRB * MK_PTR
const MK_STRB * MK_STRN
static MK_PTR atomObjCreate(MK_RT_ARGS MK_OBJ obj)
void atomInit(MK_OBJ obj)
static MK_PTR atomObjNew(MK_RT_ARGS MK_OBJ obj)
#define MK_RT_CALL
#define MK_RT_ARGS
MQ_DMP getDMP__null_allow() const
return the LibMsgqueObject from current MqDumpC instance
Definition MqDumpC_cc.hh:89
MQ_DMPN getDMPN() const
(const) return the LibMsgqueObject from current MqDumpC instance
Definition MqDumpC_cc.hh:94
MqDumpC(MK_OBJ obj)
Definition MqDumpC_cc.hh:67
static void MqDumpC_selfUnlink(MK_RT_ARGS MK_PTR self, MK_PTR env)
Definition MqDumpC_cc.hh:54
void MqDumpC_Init(MQ_DMP hdl)
Definition MqDumpC_cc.hh:59
static MQ_DMPN getDMPN__null_allow(const MqDumpC *clsHdl)
(const) return LibMsgqueObject from current MqDumpC pointer
static thread_local MqDumpC MK_NULL_REF
Definition MqDumpC_cc.hh:34
static MqDumpC * MqDumpC_ObjCreate(MK_RT_ARGS MQ_DMP hdl)
Definition MqDumpC_cc.hh:62
MQ_DMP getDMP() const
return the LibMsgqueObject from current MqDumpC instance
Definition MqDumpC_cc.hh:82
static MQ_DMP getDMP(MqDumpC *clsHdl)
return LibMsgqueObject from current MqDumpC pointer
bool Check() const
check if pointer is still valid
static MK_PTR MqDumpC_selfCreate(MK_RT_ARGS MK_OBJ obj, MK_PTR const env)
Definition MqDumpC_cc.hh:45
static MqDumpC * MqDumpC_GetSelf(MQ_DMP hdl)
Definition MqDumpC_cc.hh:38
static MQ_DMPN getDMPN(const MqDumpC &clsHdl)
(const) return LibMsgqueObject from current MqDumpC reference
static MQ_DMPN getDMPN(const MqDumpC *clsHdl)
(const) return LibMsgqueObject from current MqDumpC pointer
static void MqDumpC_selfDelete(MK_RT_ARGS MK_PTR self, MK_PTR env)
Definition MqDumpC_cc.hh:50
MQ_DMPN getDMPN__null_allow() const
(const) return the LibMsgqueObject from current MqDumpC instance
MqDumpC(MQ_DMP hdl)
Definition MqDumpC_cc.hh:73
static MQ_DMP getDMP__null_allow(MqDumpC *clsHdl)
return LibMsgqueObject from current MqDumpC pointer
static MQ_DMP getDMP(const MqDumpC &clsHdl)
return LibMsgqueObject from current MqDumpC reference
static MQ_DMP getDMP__null_allow(const MqDumpC &clsHdl)
return LibMsgqueObject from current MqDumpC reference
static MqDumpC * MqDumpC_ObjNew(MK_RT_ARGS MQ_DMP hdl)
return MqDumpC from LibMsgqueObject
Definition MqDumpC_cc.hh:77
static MQ_DMPN getDMPN__null_allow(const MqDumpC &clsHdl)
(const) return LibMsgqueObject from current MqDumpC reference
static MqDumpC * Instances()
C++: [static] MqDumpC* MqDumpC::Instances() → C-API get head-instance from linked-list of MqDump...
MqDumpC * Next()
C++: MqDumpC* dmp.Next() → C-API get next instance from linked-list of MqDumpS type
static MqDumpC * HandleResolve(MK_HDL netHdl)
C++: [static] MqDumpC* MqDumpC::HandleResolve(MK_HDL netHdl) → C-API Handle-Resolve-Slot - retur...
MqDumpC * Prev()
C++: MqDumpC* dmp.Prev() → C-API get previous instance from linked-list of MqDumpS type
static MqDumpC * GetNull()
C++: [static] MqDumpC* MqDumpC::GetNull() → C-API Null-Slot - return a MqDumpC typed NULL instan...
static bool MqDmpCheck(MK_MNGN mng)
check MqDumpS -> libmkkernel::MkObjectS::signature …
#define MqDumpC_X2obj(x)
MK_SIZE SizeGet() const
C++: MK_SIZE dump.SizeGet() → C-API report the binary data size from an MqDumpS object
MK_STRN TokenGet() const
C++: MK_STRN dump.TokenGet() → C-API return the MqContextC_ServiceApi_Identifer …
static MqDumpC * Export(MqContextC *ctx, MqDumpC *dumpP_inout=NULL)
C++: [constructor,static] MqDumpC* MqDumpC::Export(MqContextC* ctx, MqDumpC* dumpP_inout = NULL) → C...
static MqDumpC * Error(MqContextC *error, MqDumpC *dumpP_inout=NULL)
C++: [constructor,static] MqDumpC* MqDumpC::Error(MqContextC* error, MqDumpC* dumpP_inout = NULL) → ...
MK_BNP BinGet() const
C++: MK_BNP dump.BinGet() → C-API export the binary data from an MqDumpS object
void Import(MqContextC *ctx)
C++: dump.Import(MqContextC* ctx) → C-API import the dump-package into the ctx-read-data-packag...
MqDumpC(MqContextC *ctx, MqDumpC *dumpP_inout=NULL)
C++: [constructor,static] MqDumpC* MqDumpC::Export(MqContextC* ctx, MqDumpC* dumpP_inout = NULL) → C...
static MqDumpC * BinSet(MK_BNP data)
C++: [constructor,static] MqDumpC* MqDumpC::BinSet(MK_BNP data) → C-API create an MqDumpS object...
static MK_OBJ CTOR(MqContextC *ctx, MqDumpC *dumpP_inout=NULL)
C++: [constructor,static] MqDumpC* MqDumpC::Export(MqContextC* ctx, MqDumpC* dumpP_inout = NULL) → C...
std::pair< MK_SIZE, MK_BINN > MK_BNP
namespace for the CcMqMsgque "C++"-API
MqDumpC - the class known as dmp or dump is used to export a ccmqmsgque data package as binary … ...
Definition MqDumpC_cc.hh:17
MqDumpC - the class known as dmp or dump is used to export a ccmqmsgque data package as binary …