theKernel 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard
c - tcl - py - jv - cc
Loading...
Searching...
No Matches
MkObjectC_TOR_CC_API

MkObjectC - create and destroy a managed-objectMore...

+ Collaboration diagram for MkObjectC_TOR_CC_API:

Functions

void ccmkkernel::MkObjectC::Delete ()
  C++: [destructor] obj.Delete() C-API
Delete-Slot - delete an instance.
 
void ccmkkernel::MkObjectC::Dispose ()
  C++: [destructor] obj.Dispose() C-API
Dispose-Slot - untie the connection between the Native-C++-Instance and the ccmkkernel-Instance.
 
static void ccmkkernel::MkObjectC::DeleteCallbackCleanup (MK_STRN ident)
  C++: [static] MkObjectC::DeleteCallbackCleanup(MK_STRN ident) C-API
cleanup the DeleteCallback installed with MkObjectDeleteCallbackSetup
 
static void ccmkkernel::MkObjectC::DeleteCallbackCleanup (const std::string &ident)
  C++: [static] MkObjectC::DeleteCallbackCleanup(MK_STRN ident) C-API
cleanup the DeleteCallback installed with MkObjectDeleteCallbackSetup
 
void ccmkkernel::MkObjectC::DeleteCallbackSetup (MK_STRN ident, MkObjectDeleteICB callback=NULL, MK_STRN filter=NULL)
  C++: [static] MkObjectC::DeleteCallbackSetup(MK_STRN ident, MkObjectDeleteICB MkObjectDeleteCCB MkObjectDeleteSCB callback = NULL, MK_STRN filter = NULL) C-API
Create/Delete the instance-delete-callback
 
void ccmkkernel::MkObjectC::DeleteCallbackSetup (const std::string &ident, MkObjectDeleteICB callback=NULL, MK_STRN filter=NULL)
  C++: [static] MkObjectC::DeleteCallbackSetup(MK_STRN ident, MkObjectDeleteICB MkObjectDeleteCCB MkObjectDeleteSCB callback = NULL, MK_STRN filter = NULL) C-API
Create/Delete the instance-delete-callback
 
void ccmkkernel::MkObjectC::DeleteCallbackSetup (MK_STRN ident, MkObjectDeleteCCB callback=NULL, MK_STRN filter=NULL)
  C++: [static] MkObjectC::DeleteCallbackSetup(MK_STRN ident, MkObjectDeleteICB MkObjectDeleteCCB MkObjectDeleteSCB callback = NULL, MK_STRN filter = NULL) C-API
Create/Delete the instance-delete-callback
 
void ccmkkernel::MkObjectC::DeleteCallbackSetup (const std::string &ident, MkObjectDeleteCCB callback=NULL, MK_STRN filter=NULL)
  C++: [static] MkObjectC::DeleteCallbackSetup(MK_STRN ident, MkObjectDeleteICB MkObjectDeleteCCB MkObjectDeleteSCB callback = NULL, MK_STRN filter = NULL) C-API
Create/Delete the instance-delete-callback
 
static void ccmkkernel::MkObjectC::DeleteCallbackSetup (MK_STRN ident, MkObjectDeleteSCB callback=NULL, MK_STRN filter=NULL)
  C++: [static] MkObjectC::DeleteCallbackSetup(MK_STRN ident, MkObjectDeleteICB MkObjectDeleteCCB MkObjectDeleteSCB callback = NULL, MK_STRN filter = NULL) C-API
Create/Delete the instance-delete-callback
 
static void ccmkkernel::MkObjectC::DeleteCallbackSetup (const std::string &ident, MkObjectDeleteSCB callback=NULL, MK_STRN filter=NULL)
  C++: [static] MkObjectC::DeleteCallbackSetup(MK_STRN ident, MkObjectDeleteICB MkObjectDeleteCCB MkObjectDeleteSCB callback = NULL, MK_STRN filter = NULL) C-API
Create/Delete the instance-delete-callback
 

Detailed Description

MkObjectC - create and destroy a managed-object

Function Documentation

◆ Delete()

void ccmkkernel::MkObjectC::Delete ( )
inline

C++: [destructor] obj.Delete() C-API
Delete-Slot - delete an instance.

Definition at line 518 of file MkObjectC_inline_cc.hh.

518 {
519 MK_UNUSED auto obj = getOBJ(MK_NULL_NO);
520 MkRtSetup_O(obj);
521 delete this;
522 }
#define MK_NULL_NO
flag, not allow NULL
#define MK_UNUSED
mark unnused variables and functions
MK_OBJ getOBJ(bool nullB=MK_NULL_NO) const
return the LibMsgqueObject from current MkObjectC instance
#define MkRtSetup_O(o)

◆ DeleteCallbackCleanup() [1/2]

void ccmkkernel::MkObjectC::DeleteCallbackCleanup ( const std::string & ident)
inlinestatic

C++: [static] MkObjectC::DeleteCallbackCleanup(MK_STRN ident) C-API
cleanup the DeleteCallback installed with MkObjectDeleteCallbackSetup

Definition at line 533 of file MkObjectC_inline_cc.hh.

533 {
535 const MK_STRN ident_hdl = ident.c_str();
537 }
const MK_STRB * MK_STRN
constant string pointer data-type
#define MkObjectDeleteCallbackCleanup(...)
#define MkRtSetup_NULL

◆ DeleteCallbackCleanup() [2/2]

void ccmkkernel::MkObjectC::DeleteCallbackCleanup ( MK_STRN ident)
inlinestatic

C++: [static] MkObjectC::DeleteCallbackCleanup(MK_STRN ident) C-API
cleanup the DeleteCallback installed with MkObjectDeleteCallbackSetup

Definition at line 527 of file MkObjectC_inline_cc.hh.

527 {
530 }

◆ DeleteCallbackSetup() [1/6]

void ccmkkernel::MkObjectC::DeleteCallbackSetup ( const std::string & ident,
MkObjectDeleteCCB callback = NULL,
MK_STRN filter = NULL )
inline

C++: [static] MkObjectC::DeleteCallbackSetup(MK_STRN ident, MkObjectDeleteICB MkObjectDeleteCCB MkObjectDeleteSCB callback = NULL, MK_STRN filter = NULL) C-API
Create/Delete the instance-delete-callback

Definition at line 571 of file MkObjectC_inline_cc.hh.

571 {
574 const MK_STRN ident_hdl = ident.c_str();
575 auto callback_ptr = MkObjectDeleteCallbackC::Create(MK_RT_CALL callback, this);
576 if (callback_ptr == NULL) fCall = NULL;
577 enum MkErrorE errVal = MkObjectDeleteCallbackSetup(ident_hdl, fCall, callback_ptr, MkObjectDeleteCallbackC::Free, filter);
578 MkErrorC_Check(NULL, errVal);
579 }
#define MkErrorC_Check(errObj, errVal)
MkErrorE
collection for the different error-codes …
#define MkObjectDeleteCallbackSetup(...)
#define MK_RT_CALL
static enum MkErrorE Call(MkObjectDeleteCallF_ARGS)
Definition MkCall_cc.cc:34
static MK_CBP Create(MK_RT const mkrt, MkObjectC::MkObjectDeleteICB const callback, MkObjectC *self)
Definition MkCall_cc.hh:46
static void Free(MkObjectDeleteFreeF_ARGS)
Definition MkCall_cc.cc:28

◆ DeleteCallbackSetup() [2/6]

void ccmkkernel::MkObjectC::DeleteCallbackSetup ( const std::string & ident,
MkObjectDeleteICB callback = NULL,
MK_STRN filter = NULL )
inline

C++: [static] MkObjectC::DeleteCallbackSetup(MK_STRN ident, MkObjectDeleteICB MkObjectDeleteCCB MkObjectDeleteSCB callback = NULL, MK_STRN filter = NULL) C-API
Create/Delete the instance-delete-callback

Definition at line 550 of file MkObjectC_inline_cc.hh.

550 {
553 const MK_STRN ident_hdl = ident.c_str();
554 auto callback_ptr = MkObjectDeleteCallbackC::Create(MK_RT_CALL callback, this);
555 if (callback_ptr == NULL) fCall = NULL;
556 enum MkErrorE errVal = MkObjectDeleteCallbackSetup(ident_hdl, fCall, callback_ptr, MkObjectDeleteCallbackC::Free, filter);
557 MkErrorC_Check(NULL, errVal);
558 }

◆ DeleteCallbackSetup() [3/6]

void ccmkkernel::MkObjectC::DeleteCallbackSetup ( const std::string & ident,
MkObjectDeleteSCB callback = NULL,
MK_STRN filter = NULL )
inlinestatic

C++: [static] MkObjectC::DeleteCallbackSetup(MK_STRN ident, MkObjectDeleteICB MkObjectDeleteCCB MkObjectDeleteSCB callback = NULL, MK_STRN filter = NULL) C-API
Create/Delete the instance-delete-callback

Definition at line 592 of file MkObjectC_inline_cc.hh.

592 {
595 const MK_STRN ident_hdl = ident.c_str();
596 auto callback_ptr = MkObjectDeleteCallbackC::Create(MK_RT_CALL callback, NULL);
597 if (callback_ptr == NULL) fCall = NULL;
598 enum MkErrorE errVal = MkObjectDeleteCallbackSetup(ident_hdl, fCall, callback_ptr, MkObjectDeleteCallbackC::Free, filter);
599 MkErrorC_Check(NULL, errVal);
600 }

◆ DeleteCallbackSetup() [4/6]

void ccmkkernel::MkObjectC::DeleteCallbackSetup ( MK_STRN ident,
MkObjectDeleteCCB callback = NULL,
MK_STRN filter = NULL )
inline

C++: [static] MkObjectC::DeleteCallbackSetup(MK_STRN ident, MkObjectDeleteICB MkObjectDeleteCCB MkObjectDeleteSCB callback = NULL, MK_STRN filter = NULL) C-API
Create/Delete the instance-delete-callback

Definition at line 561 of file MkObjectC_inline_cc.hh.

561 {
564 auto callback_ptr = MkObjectDeleteCallbackC::Create(MK_RT_CALL callback, this);
565 if (callback_ptr == NULL) fCall = NULL;
566 enum MkErrorE errVal = MkObjectDeleteCallbackSetup(ident, fCall, callback_ptr, MkObjectDeleteCallbackC::Free, filter);
567 MkErrorC_Check(NULL, errVal);
568 }

◆ DeleteCallbackSetup() [5/6]

void ccmkkernel::MkObjectC::DeleteCallbackSetup ( MK_STRN ident,
MkObjectDeleteICB callback = NULL,
MK_STRN filter = NULL )
inline

C++: [static] MkObjectC::DeleteCallbackSetup(MK_STRN ident, MkObjectDeleteICB MkObjectDeleteCCB MkObjectDeleteSCB callback = NULL, MK_STRN filter = NULL) C-API
Create/Delete the instance-delete-callback

Definition at line 540 of file MkObjectC_inline_cc.hh.

540 {
543 auto callback_ptr = MkObjectDeleteCallbackC::Create(MK_RT_CALL callback, this);
544 if (callback_ptr == NULL) fCall = NULL;
545 enum MkErrorE errVal = MkObjectDeleteCallbackSetup(ident, fCall, callback_ptr, MkObjectDeleteCallbackC::Free, filter);
546 MkErrorC_Check(NULL, errVal);
547 }

◆ DeleteCallbackSetup() [6/6]

void ccmkkernel::MkObjectC::DeleteCallbackSetup ( MK_STRN ident,
MkObjectDeleteSCB callback = NULL,
MK_STRN filter = NULL )
inlinestatic

C++: [static] MkObjectC::DeleteCallbackSetup(MK_STRN ident, MkObjectDeleteICB MkObjectDeleteCCB MkObjectDeleteSCB callback = NULL, MK_STRN filter = NULL) C-API
Create/Delete the instance-delete-callback

Definition at line 582 of file MkObjectC_inline_cc.hh.

582 {
585 auto callback_ptr = MkObjectDeleteCallbackC::Create(MK_RT_CALL callback, NULL);
586 if (callback_ptr == NULL) fCall = NULL;
587 enum MkErrorE errVal = MkObjectDeleteCallbackSetup(ident, fCall, callback_ptr, MkObjectDeleteCallbackC::Free, filter);
588 MkErrorC_Check(NULL, errVal);
589 }

◆ Dispose()

void ccmkkernel::MkObjectC::Dispose ( )
inline

C++: [destructor] obj.Dispose() C-API
Dispose-Slot - untie the connection between the Native-C++-Instance and the ccmkkernel-Instance.

Definition at line 509 of file MkObjectC_inline_cc.hh.

509 {
510 MK_UNUSED auto obj = getOBJ(MK_NULL_NO);
511 MkRtSetup_O(obj);
512 MkObjectDispose(hdl); // need 'hdl' to be set to NULL
513 }
#define MkObjectDispose(x)