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

MkObjectC - various functions related to the MkObjectSMore...

+ Collaboration diagram for MkObjectC_Misc_CC_API:

Functions

MkErrorCccmkkernel::MkObjectC::ErrorCatch (std::exception *exception=NULL, MK_STRN callfunc=__builtin_FUNCTION()) const
  C++: MkErrorC* obj.ErrorCatch(std::exception* exception = NULL, MK_STRN callfunc = __builtin_FUNCTION()) C-API
convert a programming-language-error into an ccmkkernel error …
 
MkErrorCccmkkernel::MkObjectC::ErrorCatch (const std::exception &exception, MK_STRN callfunc=__builtin_FUNCTION()) const
  C++: MkErrorC* obj.ErrorCatch(std::exception* exception = NULL, MK_STRN callfunc = __builtin_FUNCTION()) C-API
convert a programming-language-error into an ccmkkernel error …
 
MkErrorCccmkkernel::MkObjectC::ToError ()
  C++: MkErrorC* obj.ToError() C-API
Error-Slot - return an error-object pre initialized with obj data.
 
MK_I32 ccmkkernel::MkObjectC::HandleGetOfType ()
  C++: MK_I32 obj.HandleGetOfType() C-API
Export-Slot - returns typeHdl of the obj .
 
MK_BOOL ccmkkernel::MkObjectC::IsNull ()
  C++: MK_BOOL obj.IsNull() C-API
ckeck if the object is MK_NULL
 
MK_STRN ccmkkernel::MkObjectC::ToName () const
  C++: MK_STRN obj.ToName() C-API
Info-Slot - returns brief information about the obj as a string
 
MK_STRN ccmkkernel::MkObjectC::ToNameOfClass ()
  C++: MK_STRN obj.ToNameOfClass() C-API
Class-Slot - returns the C++-Class-Name of the obj as string
 
MK_STRN ccmkkernel::MkObjectC::ToNameOfType () const
  C++: MK_STRN obj.ToNameOfType() C-API
Type-Slot - returns the LibMkKernel-Type-Name of the obj as a string
 
MK_STRN ccmkkernel::MkObjectC::ToString () const
  C++: MK_STRN inst.ToString() C-API
String-Slot - returns the string representation of the inst
 

Detailed Description

MkObjectC - various functions related to the MkObjectS

Function Documentation

◆ ErrorCatch() [1/2]

MkErrorC * ccmkkernel::MkObjectC::ErrorCatch ( const std::exception & exception,
MK_STRN callfunc = __builtin_FUNCTION() ) const
inline

C++: MkErrorC* obj.ErrorCatch(std::exception* exception = NULL, MK_STRN callfunc = __builtin_FUNCTION()) C-API
convert a programming-language-error into an ccmkkernel error …

Definition at line 359 of file MkObjectC_inline_cc.hh.

359 {
360 MK_UNUSED auto obj = getOBJN(MK_NULL_NO);
361 MkRtSetup_O(obj);
362 const std::exception* exception_hdl = &exception;
363 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
364 MK_ERR __retVal__L = MkObjectErrorCatchTmpl(obj, exception_hdl, callfunc);
365 return MkErrorC::MkErrorC_ObjNew(MK_RT_CALL __retVal__L);
366 }
#define MkObjectErrorCatchTmpl(hd,...)
static MkErrorC * MkErrorC_ObjNew(MK_RT const mkrt, MK_ERR hdl)
return MkErrorC from LibMsgqueObject
struct MkErrorS * MK_ERR
class-shortcut for struct MkErrorS *, all shortcut using the XX_YYY syntax (only for public API) …
#define MK_NULL_NO
flag, not allow NULL
#define MK_UNUSED
mark unnused variables and functions
MK_OBJN getOBJN(bool nullB=MK_NULL_NO) const
(const) return the LibMsgqueObject from current MkObjectC instance
#define MkRtSetup_O(o)
#define MK_RT_CALL

◆ ErrorCatch() [2/2]

MkErrorC * ccmkkernel::MkObjectC::ErrorCatch ( std::exception * exception = NULL,
MK_STRN callfunc = __builtin_FUNCTION() ) const
inline

C++: MkErrorC* obj.ErrorCatch(std::exception* exception = NULL, MK_STRN callfunc = __builtin_FUNCTION()) C-API
convert a programming-language-error into an ccmkkernel error …

Definition at line 350 of file MkObjectC_inline_cc.hh.

350 {
351 MK_UNUSED auto obj = getOBJN(MK_NULL_NO);
352 MkRtSetup_O(obj);
353 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
354 MK_ERR __retVal__L = MkObjectErrorCatchTmpl(obj, exception, callfunc);
355 return MkErrorC::MkErrorC_ObjNew(MK_RT_CALL __retVal__L);
356 }

◆ HandleGetOfType()

MK_I32 ccmkkernel::MkObjectC::HandleGetOfType ( )
inline

C++: MK_I32 obj.HandleGetOfType() C-API
Export-Slot - returns typeHdl of the obj .

Definition at line 379 of file MkObjectC_inline_cc.hh.

379 {
380 MK_UNUSED auto obj = getOBJ(MK_NULL_NO);
381 MkRtSetup_O(obj);
382 MK_I32 __retVal__L = MkObjectHandleGetOfType(obj);
383 return __retVal__L;
384 }
signed int MK_I32
4 byte integer data-type
MK_OBJ getOBJ(bool nullB=MK_NULL_NO) const
return the LibMsgqueObject from current MkObjectC instance
MK_I32 MkObjectHandleGetOfType(MK_OBJ const obj)
Export-Slot - returns typeHdl of the obj .

◆ IsNull()

MK_BOOL ccmkkernel::MkObjectC::IsNull ( )
inline

C++: MK_BOOL obj.IsNull() C-API
ckeck if the object is MK_NULL

Definition at line 614 of file MkObjectC_inline_cc.hh.

614 {
615 return MkObjectIsNull(hdl);
616 }
bool MkObjectIsNull(MK_OBJ const obj)
ckeck if the object is MK_NULL

◆ ToError()

MkErrorC * ccmkkernel::MkObjectC::ToError ( )
inline

C++: MkErrorC* obj.ToError() C-API
Error-Slot - return an error-object pre initialized with obj data.

Definition at line 369 of file MkObjectC_inline_cc.hh.

369 {
370 MK_UNUSED auto obj = getOBJ(MK_NULL_NO);
371 MkRtSetup_O(obj);
372 MK_ERR __retVal__L = MkObjectToError(obj);
373 return MkErrorC::MkErrorC_ObjNew(MK_RT_CALL __retVal__L);
374 }
#define MkObjectToError(...)

◆ ToName()

MK_STRN ccmkkernel::MkObjectC::ToName ( ) const
inline

C++: MK_STRN obj.ToName() C-API
Info-Slot - returns brief information about the obj as a string

Definition at line 390 of file MkObjectC_inline_cc.hh.

390 {
391 MK_UNUSED auto obj = getOBJN(MK_NULL_NO);
392 MkRtSetup_O(obj);
393 MK_STRN __retVal__L = MkObjectToName(obj);
394 return __retVal__L;
395 }
const MK_STRB * MK_STRN
constant string pointer data-type
#define MkObjectToName(...)

◆ ToNameOfClass()

MK_STRN ccmkkernel::MkObjectC::ToNameOfClass ( )
inline

C++: MK_STRN obj.ToNameOfClass() C-API
Class-Slot - returns the C++-Class-Name of the obj as string

Definition at line 398 of file MkObjectC_inline_cc.hh.

398 {
399 MK_UNUSED auto obj = getOBJ(MK_NULL_NO);
400 MkRtSetup_O(obj);
401 MK_STRN __retVal__L = MkObjectToNameOfClassTmpl(obj);
402 return __retVal__L;
403 }
#define MkObjectToNameOfClassTmpl(...)

◆ ToNameOfType()

MK_STRN ccmkkernel::MkObjectC::ToNameOfType ( ) const
inline

C++: MK_STRN obj.ToNameOfType() C-API
Type-Slot - returns the LibMkKernel-Type-Name of the obj as a string

Definition at line 406 of file MkObjectC_inline_cc.hh.

406 {
407 MK_UNUSED auto obj = getOBJN(MK_NULL_NO);
408 MkRtSetup_O(obj);
409 MK_STRN __retVal__L = MkObjectToNameOfType(obj);
410 return __retVal__L;
411 }
#define MkObjectToNameOfType(...)

◆ ToString()

MK_STRN ccmkkernel::MkObjectC::ToString ( ) const
inline

C++: MK_STRN inst.ToString() C-API
String-Slot - returns the string representation of the inst

Definition at line 414 of file MkObjectC_inline_cc.hh.

414 {
415 MK_UNUSED auto inst = getOBJN(MK_NULL_YES);
416 MkRtSetup_O(inst);
417 MK_STRN __retVal__L = MkObjectToString(inst);
418 return __retVal__L;
419 }
#define MK_NULL_YES
flag, allow NULL
#define MkObjectToString(...)