Loading...
Searching...
No Matches
MqContextC_Error_CC_API

MqContextC - move and copy an error from a contextMore...

+ Collaboration diagram for MqContextC_Error_CC_API:

Functions

MkErrorCccmqmsgque::MqContextC::ErrorFORMAT () const
  C++: MkErrorC* fmtobj.ErrorFORMAT() C-API
helper used to access MkErrorDEFAULT from MqContextC
 
MkErrorE ccmqmsgque::MqContextC::ErrorCopy (const MqContextC *sourceCtx) const
  C++: MkErrorE targetCtx.ErrorCopy(const MqContextC* sourceCtx) C-API
copy a MkErrorS from the sourceCtx to the targetCtx
 
MkErrorE ccmqmsgque::MqContextC::ErrorCopy (const MqContextC &sourceCtx) const
  C++: MkErrorE targetCtx.ErrorCopy(const MqContextC* sourceCtx) C-API
copy a MkErrorS from the sourceCtx to the targetCtx
 
MkErrorE ccmqmsgque::MqContextC::ErrorMove (const MqContextC *sourceCtx) const
  C++: MkErrorE targetCtx.ErrorMove(const MqContextC* sourceCtx) C-API
move a MkErrorS from the sourceCtx to the targetCtx
 
MkErrorE ccmqmsgque::MqContextC::ErrorMove (const MqContextC &sourceCtx) const
  C++: MkErrorE targetCtx.ErrorMove(const MqContextC* sourceCtx) C-API
move a MkErrorS from the sourceCtx to the targetCtx
 

Detailed Description

MqContextC - move and copy an error from a context

Function Documentation

◆ ErrorCopy() [1/2]

MkErrorE ccmqmsgque::MqContextC::ErrorCopy ( const MqContextC & sourceCtx) const
inline

C++: MkErrorE targetCtx.ErrorCopy(const MqContextC* sourceCtx) C-API
copy a MkErrorS from the sourceCtx to the targetCtx

Definition at line 766 of file MqContextC_inline_cc.hh.

766 {
767 MK_UNUSED auto targetCtx = getCTXN(MK_NULL_NO);
768 MkRtSetup_X(targetCtx);
769 const MQ_CTXN sourceCtx_hdl = MqContextC::getCTXN(sourceCtx,MK_NULL_NO);
770 enum MkErrorE errVal = MqContextErrorCopy(targetCtx, sourceCtx_hdl);
771 return errVal;
772 }
#define MK_NULL_NO
#define MK_UNUSED
#define MkRtSetup_X(x)
MQ_CTXN getCTXN(bool nullB=MK_NULL_NO) const
(const) return the LibMsgqueObject from current MqContextC instance
const struct MqContextS * MQ_CTXN
class-shortcut for const struct MqContextS *, all const shortcut using the XX_YYYC syntax (only for p...
#define MqContextErrorCopy(...)

◆ ErrorCopy() [2/2]

MkErrorE ccmqmsgque::MqContextC::ErrorCopy ( const MqContextC * sourceCtx) const
inline

C++: MkErrorE targetCtx.ErrorCopy(const MqContextC* sourceCtx) C-API
copy a MkErrorS from the sourceCtx to the targetCtx

Definition at line 757 of file MqContextC_inline_cc.hh.

757 {
758 MK_UNUSED auto targetCtx = getCTXN(MK_NULL_NO);
759 MkRtSetup_X(targetCtx);
760 MQ_CTXN sourceCtx_hdl = MqContextC::getCTXN(sourceCtx,MK_NULL_NO);
761 enum MkErrorE errVal = MqContextErrorCopy(targetCtx, sourceCtx_hdl);
762 return errVal;
763 }

◆ ErrorFORMAT()

MkErrorC * ccmqmsgque::MqContextC::ErrorFORMAT ( ) const
inline

C++: MkErrorC* fmtobj.ErrorFORMAT() C-API
helper used to access MkErrorDEFAULT from MqContextC

Definition at line 747 of file MqContextC_inline_cc.hh.

747 {
748 MK_UNUSED auto fmtobj = getCTXN(MK_NULL_YES);
749 MkRtSetup_X(fmtobj);
750 MK_ERR __retVal__L = MqContextErrorFORMAT(fmtobj);
751 return MkErrorC::MkErrorC_ObjNew(MK_RT_CALL __retVal__L);
752 }
static MkErrorC * MkErrorC_ObjNew(MK_RT const mkrt, MK_ERR hdl)
struct MkErrorS * MK_ERR
#define MK_NULL_YES
#define MK_RT_CALL
MK_ERR MqContextErrorFORMAT(MQ_CTXN const fmtobj)
helper used to access MkErrorDEFAULT from MqContextC
+ Here is the caller graph for this function:

◆ ErrorMove() [1/2]

MkErrorE ccmqmsgque::MqContextC::ErrorMove ( const MqContextC & sourceCtx) const
inline

C++: MkErrorE targetCtx.ErrorMove(const MqContextC* sourceCtx) C-API
move a MkErrorS from the sourceCtx to the targetCtx

Definition at line 784 of file MqContextC_inline_cc.hh.

784 {
785 MK_UNUSED auto targetCtx = getCTXN(MK_NULL_NO);
786 MkRtSetup_X(targetCtx);
787 const MQ_CTXN sourceCtx_hdl = MqContextC::getCTXN(sourceCtx,MK_NULL_NO);
788 enum MkErrorE errVal = MqContextErrorMove(targetCtx, sourceCtx_hdl);
789 return errVal;
790 }
#define MqContextErrorMove(...)

◆ ErrorMove() [2/2]

MkErrorE ccmqmsgque::MqContextC::ErrorMove ( const MqContextC * sourceCtx) const
inline

C++: MkErrorE targetCtx.ErrorMove(const MqContextC* sourceCtx) C-API
move a MkErrorS from the sourceCtx to the targetCtx

Definition at line 775 of file MqContextC_inline_cc.hh.

775 {
776 MK_UNUSED auto targetCtx = getCTXN(MK_NULL_NO);
777 MkRtSetup_X(targetCtx);
778 MQ_CTXN sourceCtx_hdl = MqContextC::getCTXN(sourceCtx,MK_NULL_NO);
779 enum MkErrorE errVal = MqContextErrorMove(targetCtx, sourceCtx_hdl);
780 return errVal;
781 }