theKernel 10.0
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_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 375 of file MkObjectC_inline_cc.hh.

375 {
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 }
#define MkObjectErrorCatchTmpl(hd,...)
static MkErrorC * MkErrorC_ObjNew(MK_RT_ARGS 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_UNUSED
mark unnused variables and functions
MK_OBJN getOBJN() const
(const) return the LibMsgqueObject from current MkObjectC instance
#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 367 of file MkObjectC_inline_cc.hh.

367 {
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 }

◆ IsNull()

MK_BOOL ccmkkernel::MkObjectC::IsNull ( )
inline

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

Definition at line 393 of file MkObjectC_inline_cc.hh.

393 {
394 MK_UNUSED auto obj = getOBJ__null_allow();
395 MK_BOOL __retVal__L = MkObjectIsNull(obj);
396 return __retVal__L;
397 }
bool MK_BOOL
real bool data-type
MK_OBJ getOBJ__null_allow() const
return the LibMsgqueObject from current MkObjectC instance
static 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 384 of file MkObjectC_inline_cc.hh.

384 {
385 MK_UNUSED auto obj = getOBJ();
386 MK_ERR __retVal__L = MkObjectToError(obj);
387 return MkErrorC::MkErrorC_ObjNew(MK_RT_CALL __retVal__L);
388 }
MK_OBJ getOBJ() const
return the LibMsgqueObject from current MkObjectC instance
#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 400 of file MkObjectC_inline_cc.hh.

400 {
401 MK_UNUSED auto obj = getOBJN__null_allow();
402 MK_STRN __retVal__L = MkObjectToName(obj);
403 return __retVal__L;
404 }
const MK_STRB * MK_STRN
constant string pointer data-type
MK_OBJN getOBJN__null_allow() const
(const) return the LibMsgqueObject from current MkObjectC instance
#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 407 of file MkObjectC_inline_cc.hh.

407 {
408 MK_UNUSED auto obj = getOBJ();
409 MK_STRN __retVal__L = MkObjectToNameOfClassTmpl(obj);
410 return __retVal__L;
411 }
#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 414 of file MkObjectC_inline_cc.hh.

414 {
415 MK_UNUSED auto obj = getOBJN();
416 MK_STRN __retVal__L = MkObjectToNameOfType(obj);
417 return __retVal__L;
418 }
#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 421 of file MkObjectC_inline_cc.hh.

421 {
422 MK_UNUSED auto inst = getOBJN__null_allow();
423 MK_STRN __retVal__L = MkObjectToString(inst);
424 return __retVal__L;
425 }
#define MkObjectToString(...)