theKernel 10.0
Loading...
Searching...
No Matches
MkObjectC_inline_cc.hh
Go to the documentation of this file.
1
9/* LABEL-NO */
10
11/*****************************************************************************/
12/* */
13/* context */
14/* */
15/*****************************************************************************/
16
17#define MkObjectErrorCatchTmpl(hd,...) MkExceptionC::Catch(static_cast<MK_MNGN>(hd),__VA_ARGS__)
18#define MkObjectToNameOfClassTmpl(...) MkObjectToNameOfClass(__VA_ARGS__)
19#define MkDbgDumpTmpl(...) MkDbgDump(__VA_ARGS__)
20
21#include "MkCall_cc.hh"
22
23namespace ccmkkernel {
24
25 // ----------------------------------------------------------------------------------------
26
27 // BEGIN-MkObjectC - created by 'cc_MqC.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
28
32
33 // doc-key: MkObjectC,MkObjectC-Class-Export,sc_
34
38 MK_OBJ __retVal__L = MkObjectHandleResolve(netHdl);
39 return MkObjectC::MkObjectC_ObjNew(MK_RT_CALL __retVal__L);
40 }
41
42 // doc-key: MkObjectC,MkObjectC-Class-Export,om_
43
45 inline void MkObjectC::HandleDelete () {
46 MK_UNUSED auto netObj = getOBJ();
48 }
49
52 MK_UNUSED auto obj = getOBJ__null_allow();
53 MK_BOOL __retVal__L = MkObjectHandleExists(obj);
54 return __retVal__L;
55 }
56
59 MK_UNUSED auto obj = getOBJ__null_allow();
60 MK_HDL __retVal__L = MkObjectHandleGet(obj);
61 return __retVal__L;
62 }
63
66 MK_UNUSED auto obj = getOBJ();
67 MK_HDL __retVal__L = MkObjectHandleGetOfType(obj);
68 return __retVal__L;
69 }
70
73 MK_UNUSED auto obj = getOBJ__null_allow();
74 MK_HDL __retVal__L = MkObjectHandleGetOr0(obj);
75 return __retVal__L;
76 }
77
78 // doc-key: MkObjectC,MkObjectC-Class-Export,sm_
79
85
87 // MkObjectC_Class_CC_API
88
92
93 // doc-key: MkObjectC,MkObjectC-Class-Introspection,oc_
94
97 MK_UNUSED auto obj = getOBJ();
98 MK_OBJ __retVal__L = MkObjectNext(obj);
99 return MkObjectC::MkObjectC_ObjNew(MK_RT_CALL __retVal__L);
100 }
101
104 MK_UNUSED auto obj = getOBJ();
105 MK_OBJ __retVal__L = MkObjectPrev(obj);
106 return MkObjectC::MkObjectC_ObjNew(MK_RT_CALL __retVal__L);
107 }
108
109 // doc-key: MkObjectC,MkObjectC-Class-Introspection,sc_
110
114 MK_OBJ __retVal__L = MkObjectInstances();
115 return MkObjectC::MkObjectC_ObjNew(MK_RT_CALL __retVal__L);
116 }
117
119 // MkObjectC_Class_CC_API
120
124
125 // doc-key: MkObjectC,MkObjectC-Class-Misc,sc_
126
130 MK_OBJ __retVal__L = MkObjectGetNull();
131 return MkObjectC::MkObjectC_ObjNew(MK_RT_CALL __retVal__L);
132 }
133
135 // MkObjectC_Class_CC_API
136
140
141 // doc-key: MkObjectC,MkObjectC-Dbg,om_
142
144 inline void MkObjectC::DbgDump (MK_STRN message, MK_STRN callfunc) const {
145 MK_UNUSED auto obj = getOBJN();
146 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
147 enum MkErrorE errVal = MkDbgDumpTmpl(obj, message, callfunc);
148 MkErrorC_Check(obj, errVal);
149 }
150
152 inline void MkObjectC::DbgL (MK_STRN message, MK_DBG debug, MK_STRN callfunc, MK_I32 lvl) const {
153 MK_UNUSED auto fmtobj = getOBJN__null_allow();
154 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
155 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
156 MkDbgL(fmtobj, message, debug, callfunc, lvl);
157 }
158
160 inline void MkObjectC::DbgL (const std::string& message, MK_DBG debug, MK_STRN callfunc, MK_I32 lvl) const {
161 MK_UNUSED auto fmtobj = getOBJN__null_allow();
162 const MK_STRN message_hdl = message.c_str();
163 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
164 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
165 MkDbgL(fmtobj, message_hdl, debug, callfunc, lvl);
166 }
167
169 inline void MkObjectC::DbgLogC (MK_STRN callfunc) const {
170 MK_UNUSED auto obj = getOBJN();
171 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
172 MkDbgLogC(obj, callfunc);
173 }
174
176 inline void MkObjectC::DbgO (MK_STRN callfunc) const {
177 MK_UNUSED auto obj = getOBJN();
178 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
179 MkDbgO(obj, callfunc);
180 }
181
183 inline void MkObjectC::DbgSTACK (MK_I32 skip, MK_I32 num, MK_STRN callfunc) const {
184 MK_UNUSED auto fmtobj = getOBJN__null_allow();
185 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
186 MkDbgSTACK(fmtobj, skip, num, callfunc);
187 }
188
189 // doc-key: MkObjectC,MkObjectC-Dbg,sm_
190
192 inline void MkObjectC::DbgM (MK_STRN message, MK_DBG debug, MK_STRN callfunc, MK_I32 lvl) {
194 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
195 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
196 MkDbgM(message, debug, callfunc, lvl);
197 }
198
200 inline void MkObjectC::DbgM (const std::string& message, MK_DBG debug, MK_STRN callfunc, MK_I32 lvl) {
202 const MK_STRN message_hdl = message.c_str();
203 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
204 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
205 MkDbgM(message_hdl, debug, callfunc, lvl);
206 }
207
209 // MkObjectC_Dbg_CC_API
210
214
215 // doc-key: MkObjectC,MkObjectC-Log,om_
216
218 inline void MkObjectC::LogC (MK_STRN message, MK_DBG debug, MK_STRN callfunc) const {
219 MK_UNUSED auto fmtobj = getOBJN__null_allow();
220 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
221 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
222 MkLogC(fmtobj, message, debug, callfunc);
223 }
224
226 inline void MkObjectC::LogC (const std::string& message, MK_DBG debug, MK_STRN callfunc) const {
227 MK_UNUSED auto fmtobj = getOBJN__null_allow();
228 const MK_STRN message_hdl = message.c_str();
229 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
230 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
231 MkLogC(fmtobj, message_hdl, debug, callfunc);
232 }
233
235 inline void MkObjectC::LogHEX (MK_STRN callfunc, MK_BNP data) const {
236 MK_UNUSED auto fmtobj = getOBJN__null_allow();
237 const MkBinaryR data_ref = MkBinaryCreate(data.first,data.second);
238 MkLogHEX(fmtobj, callfunc, data_ref);
239 }
240
242 inline void MkObjectC::LogHEX (const std::string& callfunc, MK_BNP data) const {
243 MK_UNUSED auto fmtobj = getOBJN__null_allow();
244 const MK_STRN callfunc_hdl = callfunc.c_str();
245 const MkBinaryR data_ref = MkBinaryCreate(data.first,data.second);
246 MkLogHEX(fmtobj, callfunc_hdl, data_ref);
247 }
248
250 inline void MkObjectC::LogV (MK_STRN callfunc, MK_DBG debug, MK_FST printfmt, ... ) const {
251 MK_UNUSED auto fmtobj = getOBJN__null_allow();
252 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
253 va_list ap;
254 va_start (ap, printfmt);
255 MkLogVL(fmtobj, callfunc, debug, printfmt, ap);
256 va_end (ap);
257 }
258
260 inline void MkObjectC::LogV (const std::string& callfunc, MK_DBG debug, MK_FST printfmt, ... ) const {
261 MK_UNUSED auto fmtobj = getOBJN__null_allow();
262 const MK_STRN callfunc_hdl = callfunc.c_str();
263 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
264 va_list ap;
265 va_start (ap, printfmt);
266 MkLogVL(fmtobj, callfunc_hdl, debug, printfmt, ap);
267 va_end (ap);
268 }
269
271 inline void MkObjectC::LogVL (MK_STRN callfunc, MK_DBG debug, MK_FST printfmt, va_list var_list) const {
272 MK_UNUSED auto fmtobj = getOBJN__null_allow();
273 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
274 MkLogVL(fmtobj, callfunc, debug, printfmt, var_list);
275 }
276
278 inline void MkObjectC::LogVL (const std::string& callfunc, MK_DBG debug, MK_FST printfmt, va_list var_list) const {
279 MK_UNUSED auto fmtobj = getOBJN__null_allow();
280 const MK_STRN callfunc_hdl = callfunc.c_str();
281 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
282 MkLogVL(fmtobj, callfunc_hdl, debug, printfmt, var_list);
283 }
284
286 inline void MkObjectC::Log (const MkObjectC* fmtobj, MK_DBG debug, MK_STRN callfunc, MK_I32 lvl) const {
287 MK_UNUSED auto obj = getOBJN();
288 MK_OBJN fmtobj_hdl = MkObjectC::getOBJN__null_allow(fmtobj);
289 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
290 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
291 MkObjectLog(obj, fmtobj_hdl, debug, callfunc, lvl);
292 }
293
295 inline void MkObjectC::Log (const MkObjectC& fmtobj, MK_DBG debug, MK_STRN callfunc, MK_I32 lvl) const {
296 MK_UNUSED auto obj = getOBJN();
297 const MK_OBJN fmtobj_hdl = MkObjectC::getOBJN(fmtobj);
298 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
299 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
300 MkObjectLog(obj, fmtobj_hdl, debug, callfunc, lvl);
301 }
302
304 inline void MkObjectC::LogLong (const MkObjectC* fmtobj, MK_DBG debug, MK_STRN callfunc, MK_I32 lvl) const {
305 MK_UNUSED auto obj = getOBJN();
306 MK_OBJN fmtobj_hdl = MkObjectC::getOBJN__null_allow(fmtobj);
307 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
308 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
309 MkObjectLogLong(obj, fmtobj_hdl, debug, callfunc, lvl);
310 }
311
313 inline void MkObjectC::LogLong (const MkObjectC& fmtobj, MK_DBG debug, MK_STRN callfunc, MK_I32 lvl) const {
314 MK_UNUSED auto obj = getOBJN();
315 const MK_OBJN fmtobj_hdl = MkObjectC::getOBJN(fmtobj);
316 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
317 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
318 MkObjectLogLong(obj, fmtobj_hdl, debug, callfunc, lvl);
319 }
320
322 inline void MkObjectC::LogShort (const MkObjectC* fmtobj, MK_DBG debug, MK_STRN callfunc, MK_I32 lvl) const {
323 MK_UNUSED auto obj = getOBJN();
324 MK_OBJN fmtobj_hdl = MkObjectC::getOBJN__null_allow(fmtobj);
325 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
326 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
327 MkObjectLogShort(obj, fmtobj_hdl, debug, callfunc, lvl);
328 }
329
331 inline void MkObjectC::LogShort (const MkObjectC& fmtobj, MK_DBG debug, MK_STRN callfunc, MK_I32 lvl) const {
332 MK_UNUSED auto obj = getOBJN();
333 const MK_OBJN fmtobj_hdl = MkObjectC::getOBJN(fmtobj);
334 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
335 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
336 MkObjectLogShort(obj, fmtobj_hdl, debug, callfunc, lvl);
337 }
338
340 inline void MkObjectC::LogType (const MkObjectC* fmtobj, MK_DBG debug, MK_STRN callfunc, MK_I32 lvl) const {
341 MK_UNUSED auto obj = getOBJN();
342 MK_OBJN fmtobj_hdl = MkObjectC::getOBJN__null_allow(fmtobj);
343 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
344 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
345 MkObjectLogType(obj, fmtobj_hdl, debug, callfunc, lvl);
346 }
347
349 inline void MkObjectC::LogType (const MkObjectC& fmtobj, MK_DBG debug, MK_STRN callfunc, MK_I32 lvl) const {
350 MK_UNUSED auto obj = getOBJN();
351 const MK_OBJN fmtobj_hdl = MkObjectC::getOBJN(fmtobj);
352 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
353 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
354 MkObjectLogType(obj, fmtobj_hdl, debug, callfunc, lvl);
355 }
356
358 // MkObjectC_Log_CC_API
359
363
364 // doc-key: MkObjectC,MkObjectC-Misc,oc_
365
367 inline MkErrorC* MkObjectC::ErrorCatch (std::exception* exception, MK_STRN callfunc) const {
368 MK_UNUSED auto obj = getOBJN();
369 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
370 MK_ERR __retVal__L = MkObjectErrorCatchTmpl(obj, exception, callfunc);
371 return MkErrorC::MkErrorC_ObjNew(MK_RT_CALL __retVal__L);
372 }
373
375 inline MkErrorC* MkObjectC::ErrorCatch (const std::exception& exception, MK_STRN callfunc) const {
376 MK_UNUSED auto obj = getOBJN();
377 const std::exception* exception_hdl = &exception;
378 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
379 MK_ERR __retVal__L = MkObjectErrorCatchTmpl(obj, exception_hdl, callfunc);
380 return MkErrorC::MkErrorC_ObjNew(MK_RT_CALL __retVal__L);
381 }
382
385 MK_UNUSED auto obj = getOBJ();
386 MK_ERR __retVal__L = MkObjectToError(obj);
387 return MkErrorC::MkErrorC_ObjNew(MK_RT_CALL __retVal__L);
388 }
389
390 // doc-key: MkObjectC,MkObjectC-Misc,om_
391
394 MK_UNUSED auto obj = getOBJ__null_allow();
395 MK_BOOL __retVal__L = MkObjectIsNull(obj);
396 return __retVal__L;
397 }
398
400 inline MK_STRN MkObjectC::ToName () const {
401 MK_UNUSED auto obj = getOBJN__null_allow();
402 MK_STRN __retVal__L = MkObjectToName(obj);
403 return __retVal__L;
404 }
405
408 MK_UNUSED auto obj = getOBJ();
409 MK_STRN __retVal__L = MkObjectToNameOfClassTmpl(obj);
410 return __retVal__L;
411 }
412
415 MK_UNUSED auto obj = getOBJN();
416 MK_STRN __retVal__L = MkObjectToNameOfType(obj);
417 return __retVal__L;
418 }
419
421 inline MK_STRN MkObjectC::ToString () const {
422 MK_UNUSED auto inst = getOBJN__null_allow();
423 MK_STRN __retVal__L = MkObjectToString(inst);
424 return __retVal__L;
425 }
426
428 // MkObjectC_Misc_CC_API
429
433
434 // doc-key: MkObjectC,MkObjectC-Obj,om_
435
438 MK_UNUSED auto obj = getOBJ();
439 MK_I32 __retVal__L = MkRefGet(obj);
440 return __retVal__L;
441 }
442
444 // MkObjectC_Obj_CC_API
445
449
450 // doc-key: MkObjectC,MkObjectC-Sys,om_
451
453 inline void MkObjectC::SysKill (MK_I32 pid, MK_I32 signal) const {
454 MK_UNUSED auto fmtobj = getOBJN__null_allow();
455 enum MkErrorE errVal = MkSysKill(fmtobj, pid, signal);
456 MkErrorC_Check(fmtobj, errVal);
457 }
458
459 // doc-key: MkObjectC,MkObjectC-Sys,omo
460
462 inline MK_I32 MkObjectC::SysGetPid () const {
463 MK_UNUSED auto fmtobj = getOBJN__null_allow();
464 MK_I32 pid_out;
465 enum MkErrorE errVal = MkSysGetPid(fmtobj, &pid_out);
466 MkErrorC_Check(fmtobj, errVal);
467 return pid_out;
468 }
469
470 // doc-key: MkObjectC,MkObjectC-Sys,sm_
471
475 MK_I32 __retVal__L = MkSysHashI32(key, length);
476 return __retVal__L;
477 }
478
480 inline MK_I32 MkObjectC::SysHashI32 (const std::string& key, MK_NUM length) {
482 const MK_STRN key_hdl = key.c_str();
483 MK_I32 __retVal__L = MkSysHashI32(key_hdl, length);
484 return __retVal__L;
485 }
486
490 MK_STRN __retVal__L = MkSysHashSTR(key, length);
491 return __retVal__L;
492 }
493
495 inline MK_STRN MkObjectC::SysHashSTR (const std::string& key, MK_NUM length) {
497 const MK_STRN key_hdl = key.c_str();
498 MK_STRN __retVal__L = MkSysHashSTR(key_hdl, length);
499 return __retVal__L;
500 }
501
503 // MkObjectC_Sys_CC_API
504
508
509 // doc-key: MkObjectC,MkObjectC-TOR,od_
510
512 inline void MkObjectC::Dispose () {
513 MK_UNUSED auto obj = getOBJ();
514 MkObjectDispose(hdl); // need 'hdl' to be set to NULL
515 }
516
517 // doc-key: MkObjectC,MkObjectC-TOR,oD_
518
520 inline void MkObjectC::Delete () {
521 MK_UNUSED auto obj = getOBJ();
522 delete this;
523 }
524
525 // doc-key: MkObjectC,MkObjectC-TOR,sm_
526
532
534 inline void MkObjectC::DeleteCallbackCleanup (const std::string& ident) {
536 const MK_STRN ident_hdl = ident.c_str();
538 }
539
541 inline void MkObjectC::DeleteCallbackSetup (MK_STRN ident, MkObjectDeleteCCB callback, MK_STRN filter) {
544 auto callback_ptr = MkObjectDeleteCallbackC::Create(MK_RT_CALL callback, this);
545 if (callback_ptr == NULL) fCall = NULL;
546 enum MkErrorE errVal = MkObjectDeleteCallbackSetup(ident, fCall, callback_ptr, MkObjectDeleteCallbackC::Free, filter);
547 MkErrorC_Check(NULL, errVal);
548 }
549
551 inline void MkObjectC::DeleteCallbackSetup (const std::string& ident, MkObjectDeleteCCB callback, MK_STRN filter) {
554 const MK_STRN ident_hdl = ident.c_str();
555 auto callback_ptr = MkObjectDeleteCallbackC::Create(MK_RT_CALL callback, this);
556 if (callback_ptr == NULL) fCall = NULL;
557 enum MkErrorE errVal = MkObjectDeleteCallbackSetup(ident_hdl, fCall, callback_ptr, MkObjectDeleteCallbackC::Free, filter);
558 MkErrorC_Check(NULL, errVal);
559 }
560
562 inline void MkObjectC::DeleteCallbackSetup (MK_STRN ident, MkObjectDeleteICB callback, MK_STRN filter) {
565 auto callback_ptr = MkObjectDeleteCallbackC::Create(MK_RT_CALL callback, this);
566 if (callback_ptr == NULL) fCall = NULL;
567 enum MkErrorE errVal = MkObjectDeleteCallbackSetup(ident, fCall, callback_ptr, MkObjectDeleteCallbackC::Free, filter);
568 MkErrorC_Check(NULL, errVal);
569 }
570
572 inline void MkObjectC::DeleteCallbackSetup (const std::string& ident, MkObjectDeleteICB callback, MK_STRN filter) {
575 const MK_STRN ident_hdl = ident.c_str();
576 auto callback_ptr = MkObjectDeleteCallbackC::Create(MK_RT_CALL callback, this);
577 if (callback_ptr == NULL) fCall = NULL;
578 enum MkErrorE errVal = MkObjectDeleteCallbackSetup(ident_hdl, fCall, callback_ptr, MkObjectDeleteCallbackC::Free, filter);
579 MkErrorC_Check(NULL, errVal);
580 }
581
583 inline void MkObjectC::DeleteCallbackSetup (MK_STRN ident, MkObjectDeleteSCB callback, MK_STRN filter) {
586 auto callback_ptr = MkObjectDeleteCallbackC::Create(MK_RT_CALL callback, NULL);
587 if (callback_ptr == NULL) fCall = NULL;
588 enum MkErrorE errVal = MkObjectDeleteCallbackSetup(ident, fCall, callback_ptr, MkObjectDeleteCallbackC::Free, filter);
589 MkErrorC_Check(NULL, errVal);
590 }
591
593 inline void MkObjectC::DeleteCallbackSetup (const std::string& ident, MkObjectDeleteSCB callback, MK_STRN filter) {
596 const MK_STRN ident_hdl = ident.c_str();
597 auto callback_ptr = MkObjectDeleteCallbackC::Create(MK_RT_CALL callback, NULL);
598 if (callback_ptr == NULL) fCall = NULL;
599 enum MkErrorE errVal = MkObjectDeleteCallbackSetup(ident_hdl, fCall, callback_ptr, MkObjectDeleteCallbackC::Free, filter);
600 MkErrorC_Check(NULL, errVal);
601 }
602
604 // MkObjectC_TOR_CC_API
605
606 // END-MkObjectC - created by 'cc_MqC.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
607
608// ########################################################################################
609// OVERLOAD
610
611/*
612 inline MK_PTR MkObjectC::MkObjectC_selfCreate (MK_RT_ARGS MK_OBJ obj, MK_PTR const env) {
613 return new MkObjectC(obj);
614 }
615*/
616
617} // END - namespace "ccmkkernel"
tag: nhi1-release-250425
#define MkErrorC_Check(errObj, errVal)
#define MkObjectErrorCatchTmpl(hd,...)
#define MkObjectToNameOfClassTmpl(...)
#define MkDbgDumpTmpl(...)
The data-type to store and handle the error-condition … → C-API: libmkkernel::MkErrorS
object header … → C-API: libmkkernel::MkObjectS
static MkErrorC * MkErrorC_ObjNew(MK_RT_ARGS MK_ERR hdl)
return MkErrorC from LibMsgqueObject
static MkBinaryR MkBinaryCreate(MK_SIZE size, MK_BINN data)
create a binary from data and size ...
#define MK_UNUSED
mark unnused variables and functions
MkErrorE
collection for the different error-codes …
MK_STRB const * MK_FST
const format string pointer data-type
bool MK_BOOL
real bool data-type
int32_t MK_HDL
4 byte int handle data-type
int32_t MK_NUM
array size data-type ('num' items in array …
int MK_DBG
debug-level data-type …
signed int MK_I32
4 byte integer data-type
const MK_STRB * MK_STRN
constant string pointer data-type
MK_OBJ getOBJ() const
return the LibMsgqueObject from current MkObjectC instance
MK_OBJN getOBJN__null_allow() const
(const) return the LibMsgqueObject from current MkObjectC instance
MK_OBJ getOBJ__null_allow() const
return the LibMsgqueObject from current MkObjectC instance
MK_OBJN getOBJN() const
(const) return the LibMsgqueObject from current MkObjectC instance
static MkObjectC * MkObjectC_ObjNew(MK_RT_ARGS MK_OBJ hdl)
return MkObjectC from LibMsgqueObject
MkObjectC * Next()
C++: MkObjectC* obj.Next() → C-API get next instance from linked-list of MkObjectS type
MkObjectC * Prev()
C++: MkObjectC* obj.Prev() → C-API get previous instance from linked-list of MkObjectS type
MK_HDL HandleGetOfType()
C++: MK_HDL obj.HandleGetOfType() → C-API Export-Slot - returns typeHdl of the obj .
MK_HDL HandleGet()
C++: MK_HDL obj.HandleGet() → C-API Handle-Get-Slot - returns a export-hdl to the MkObjectC use...
static MkObjectC * HandleResolve(MK_HDL netHdl)
C++: [static] MkObjectC* MkObjectC::HandleResolve(MK_HDL netHdl) → C-API Handle-Resolve-Slot - r...
static MkObjectC * GetNull()
C++: [static] MkObjectC* MkObjectC::GetNull() → C-API Null-Slot - return a MkObjectC typed NULL ...
static MkObjectC * Instances()
C++: [static] MkObjectC* MkObjectC::Instances() → C-API get head-instance from linked-list of Mk...
void HandleDelete()
C++: netObj.HandleDelete() → C-API Handle-Delete-Slot - delete a netObj from handle-storage …
MK_BOOL HandleExists()
C++: MK_BOOL obj.HandleExists() → C-API check if obj has already a handle defined…
static void HandleDeleteByNetHdl(MK_HDL netHdl)
C++: [static] MkObjectC::HandleDeleteByNetHdl(MK_HDL netHdl) → C-API Handle-Delete-Slot - delete...
MK_HDL HandleGetOr0()
C++: MK_HDL obj.HandleGetOr0() → C-API return export-hdl or 0 in not created…
static MK_OBJ MkObjectPrev(MK_OBJ const obj)
get previous instance from linked-list of MkObjectS type
bool MkObjectHandleExists(MK_OBJ const obj)
check if obj has already a handle defined…
#define MkObjectHandleResolve(...)
#define MkObjectHandleGet(...)
#define MkObjectHandleDelete(...)
static MK_HDL MkObjectHandleGetOfType(MK_OBJ const obj)
Export-Slot - returns typeHdl of the obj .
#define MkObjectInstances()
static MK_OBJ MkObjectGetNull(void)
Null-Slot - return a MkObjectC typed NULL instance …
MK_HDL MkObjectHandleGetOr0(MK_OBJ const obj)
return export-hdl or 0 in not created…
static MK_OBJ MkObjectNext(MK_OBJ const obj)
get next instance from linked-list of MkObjectS type
#define MkObjectHandleDeleteByNetHdl(...)
void DbgDump(MK_STRN message="var", MK_STRN callfunc=__builtin_FUNCTION()) const
C++: obj.DbgDump(MK_STRN message = "var", MK_STRN callfunc = __builtin_FUNCTION()) → C-API debu...
void DbgO(MK_STRN callfunc=__builtin_FUNCTION()) const
C++: obj.DbgO(MK_STRN callfunc = __builtin_FUNCTION()) → C-API debug: write the object-details ...
static void DbgM(MK_STRN message, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0)
C++: [static] MkObjectC::DbgM(MK_STRN message, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTIO...
void DbgLogC(MK_STRN callfunc=__builtin_FUNCTION()) const
C++: obj.DbgLogC(MK_STRN callfunc = __builtin_FUNCTION()) → C-API debug: write a short-obj-summ...
void DbgSTACK(MK_I32 skip=0, MK_I32 num=-1, MK_STRN callfunc=__builtin_FUNCTION()) const
C++: fmtobj.DbgSTACK(MK_I32 skip = 0, MK_I32 num = -1, MK_STRN callfunc = __builtin_FUNCTION()) → C...
void DbgL(MK_STRN message, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
C++: fmtobj.DbgL(MK_STRN message, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(),...
#define MkDbgM(...)
#define MkDbgLogC(...)
#define MkDbgL(...)
#define MkDbgO(...)
#define MkDbgSTACK(...)
void LogHEX(MK_STRN callfunc, MK_BNP data) const
C++: fmtobj.LogHEX(MK_STRN callfunc, MK_BNP data) → C-API log binaray data as HEX into the MkLo...
void LogVL(MK_STRN callfunc, MK_DBG debug, MK_FST printfmt, va_list var_list) const
C++: fmtobj.LogVL(MK_STRN callfunc, MK_DBG debug, MK_FST printfmt, va_list var_list) → C-API wr...
void LogShort(const MkObjectC *fmtobj=NULL, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
C++: obj.LogShort(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUN...
void LogLong(const MkObjectC *fmtobj=NULL, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
C++: obj.LogLong(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNC...
void Log(const MkObjectC *fmtobj=NULL, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
C++: obj.Log(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION...
void LogV(MK_STRN callfunc, MK_DBG debug, MK_FST printfmt,...) const
C++: fmtobj.LogV(MK_STRN callfunc, MK_DBG debug, MK_FST printfmt, ... ) → C-API write a printf ...
void LogType(const MkObjectC *fmtobj=NULL, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
C++: obj.LogType(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNC...
void LogC(MK_STRN message, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION()) const
C++: fmtobj.LogC(MK_STRN message, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION()) → C-AP...
#define MkLogVL(...)
#define MkObjectLogLong(...)
#define MkObjectLogShort(...)
#define MkObjectLog(...)
#define MkLogC(...)
#define MkLogHEX(...)
#define MkObjectLogType(...)
MkErrorC * ToError()
C++: MkErrorC* obj.ToError() → C-API Error-Slot - return an error-object pre initialized with o...
MK_STRN ToNameOfType() const
C++: MK_STRN obj.ToNameOfType() → C-API Type-Slot - returns the LibMkKernel-Type-Name of the ob...
MK_STRN ToNameOfClass()
C++: MK_STRN obj.ToNameOfClass() → C-API Class-Slot - returns the C++-Class-Name of the obj as ...
MK_STRN ToName() const
C++: MK_STRN obj.ToName() → C-API Info-Slot - returns brief information about the obj as a stri...
MkErrorC * ErrorCatch(std::exception *exception=NULL, MK_STRN callfunc=__builtin_FUNCTION()) const
C++: MkErrorC* obj.ErrorCatch(std::exception* exception = NULL, MK_STRN callfunc = __builtin_FUNCTIO...
MK_STRN ToString() const
C++: MK_STRN inst.ToString() → C-API String-Slot - returns the string representation of the ins...
MK_BOOL IsNull()
C++: MK_BOOL obj.IsNull() → C-API ckeck if the object is MK_NULL
static bool MkObjectIsNull(MK_OBJ const obj)
ckeck if the object is MK_NULL
#define MkObjectToName(...)
#define MkObjectToString(...)
#define MkObjectToError(...)
#define MkObjectToNameOfType(...)
MK_I32 RefGet()
libmkkernel::MkRefGet
static MK_I32 MkRefGet(MK_OBJ const obj)
get the reference-count
void SysKill(MK_I32 pid, MK_I32 signal) const
libmkkernel::MkSysKill
static MK_STRN SysHashSTR(MK_STRN key, MK_NUM length=-1)
libmkkernel::MkSysHashSTR
static MK_I32 SysHashI32(MK_STRN key, MK_NUM length=-1)
libmkkernel::MkSysHashI32
MK_I32 SysGetPid() const
libmkkernel::MkSysGetPid
enum MkErrorE MkSysKill(MK_OBJN fmtobj, MK_I32 pid, MK_I32 signal)
kill syscall with ccmkkernel error plugin
MK_I32 MkSysHashI32(MK_STRN key, MK_NUM length)
same as MkSysHashSTR but return libmkkernel::MK_I32 …
MK_STRN MkSysHashSTR(MK_STRN key, MK_NUM length)
compute the HASH from a string …
enum MkErrorE MkSysGetPid(MK_OBJN fmtobj, MK_I32 *pid_out)
getpid syscall with ccmkkernel error plugin
static void DeleteCallbackCleanup(MK_STRN ident)
C++: [static] MkObjectC::DeleteCallbackCleanup(MK_STRN ident) → C-API cleanup the DeleteCallback...
void Delete()
C++: [destructor] obj.Delete() → C-API Delete-Slot - delete an instance.
void DeleteCallbackSetup(MK_STRN ident, MkObjectDeleteCCB callback=NULL, MK_STRN filter=NULL)
C++: [static] MkObjectC::DeleteCallbackSetup(MK_STRN ident, MkObjectDeleteICB MkObjectDeleteCCB MkObj...
void Dispose()
C++: [destructor] obj.Dispose() → C-API Dispose-Slot - untie the connection between the Native-C...
#define MkObjectDispose(x)
#define MkObjectDeleteCallbackCleanup(...)
#define MkObjectDeleteCallbackSetup(...)
static MK_I32 MkRuntimeDebugGet(void)
get the MkRuntimeS::debug value …
#define MkRtSetup_O(o)
#define MK_RT_CALL
#define MkRtSetup_NULL
namespace for the CcMkKernel "C++"-API
void(* MkObjectDeleteSCB)(MK_STRN const, MK_HDL const, MK_HDL const)
static-callback
std::pair< MK_SIZE, MK_BINN > MK_BNP
static MK_CBP Create(MK_RT_ARGS MkObjectC::MkObjectDeleteICB const callback, MkObjectC *self)
Definition MkCall_cc.hh:43
static enum MkErrorE Call(MkObjectDeleteCallF_ARGS)
Definition MkCall_cc.cc:31
static void Free(MkObjectDeleteFreeF_ARGS)
Definition MkCall_cc.cc:25
binary data default format …
The data-type to store and handle the error-condition …