theLink 10.0
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 692 of file MqContextC_inline_cc.hh.

692 {
693 MK_UNUSED auto targetCtx = getCTXN();
694 const MQ_CTXN sourceCtx_hdl = MqContextC::getCTXN(sourceCtx);
695 enum MkErrorE errVal = MqContextErrorCopy(targetCtx, sourceCtx_hdl);
696 return errVal;
697 }
#define MK_UNUSED
MQ_CTXN getCTXN() 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 684 of file MqContextC_inline_cc.hh.

684 {
685 MK_UNUSED auto targetCtx = getCTXN();
686 MQ_CTXN sourceCtx_hdl = MqContextC::getCTXN(sourceCtx);
687 enum MkErrorE errVal = MqContextErrorCopy(targetCtx, sourceCtx_hdl);
688 return errVal;
689 }

◆ ErrorFORMAT()

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

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

Definition at line 675 of file MqContextC_inline_cc.hh.

675 {
676 MK_UNUSED auto fmtobj = getCTXN__null_allow();
677 MK_ERR __retVal__L = MqContextErrorFORMAT(fmtobj);
678 return MkErrorC::MkErrorC_ObjNew(MK_RT_CALL __retVal__L);
679 }
static MkErrorC * MkErrorC_ObjNew(MK_RT_ARGS MK_ERR hdl)
struct MkErrorS * MK_ERR
#define MK_RT_CALL
MQ_CTXN getCTXN__null_allow() const
(const) return the LibMsgqueObject from current MqContextC instance
static 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 708 of file MqContextC_inline_cc.hh.

708 {
709 MK_UNUSED auto targetCtx = getCTXN();
710 const MQ_CTXN sourceCtx_hdl = MqContextC::getCTXN(sourceCtx);
711 enum MkErrorE errVal = MqContextErrorMove(targetCtx, sourceCtx_hdl);
712 return errVal;
713 }
#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 700 of file MqContextC_inline_cc.hh.

700 {
701 MK_UNUSED auto targetCtx = getCTXN();
702 MQ_CTXN sourceCtx_hdl = MqContextC::getCTXN(sourceCtx);
703 enum MkErrorE errVal = MqContextErrorMove(targetCtx, sourceCtx_hdl);
704 return errVal;
705 }