theLink 10.0
Loading...
Searching...
No Matches

MqTypeCtxS - the instance-base for the MqContextCMore...

+ Collaboration diagram for MqTypeCtxC:

Topics

 MqTypeCtxC_Class_C_API
 MqTypeCtxS - define the class …
 
 MqTypeCtxC_Class_Define_C_API
 MqTypeCtxS - low level definition, access and cast …
 

Data Structures

struct  MqTypeCtxS
 MqTypeCtxS - the instance-base for the MqContextCMore...
 

Macros

#define MqTypeCtxLog_1(typ)
 

Typedefs

typedef struct MqTypeCtxSMQ_CTXT
 object context type datatype, use &XX->type to cast to MK_TYP
 

Functions

static MQ_CTXT MqCtxTyp (MK_MNG mng)
 type-check and cast a managed-pointer into an MqTypeCtxS pointer or MK_NULL if not possible
 
void MqTypeCtxLog_RT (MK_RT mkrt, MQ_CTXT const ctxtype, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl)
 log the MqTypeCtxS
 

Detailed Description

MqTypeCtxS - the instance-base for the MqContextC

The MqTypeCtxS is the instance-base for the MqContextC and has all attributes shared with all MqContextC instances.

Macro Definition Documentation

◆ MqTypeCtxLog_1

#define MqTypeCtxLog_1 ( typ)
Value:
MqTypeCtxLog_RT(MK_RT_CALL typ,NULL,0,__func__,0)
#define MK_RT_CALL
void MqTypeCtxLog_RT(MK_RT mkrt, MQ_CTXT const ctxtype, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl)
log the MqTypeCtxS …

Definition at line 4006 of file LibMqMsgque_mq.h.

Typedef Documentation

◆ MQ_CTXT

typedef struct MqTypeCtxS* MQ_CTXT

object context type datatype, use &XX->type to cast to MK_TYP

Definition at line 749 of file LibMqMsgque_mq.h.

Function Documentation

◆ MqCtxTyp()

static MQ_CTXT MqCtxTyp ( MK_MNG mng)
inlinestatic

type-check and cast a managed-pointer into an MqTypeCtxS pointer or MK_NULL if not possible

Definition at line 3977 of file LibMqMsgque_mq.h.

3977 {
3978 if (!MkObjCheck(mng)) return NULL;
3979 MK_OBJ obj = (MK_OBJ) mng;
3980 if (MqCtxTypCheck(obj)) return (MQ_CTXT)obj;
3981 MQ_CTXT typ = (MQ_CTXT) obj->type;
3982 if (MqCtxTypCheck(typ)) return typ;
3983 return NULL;
3984}
struct MkObjectS * MK_OBJ
static bool MkObjCheck(MK_MNGN mng)
struct MqTypeCtxS * MQ_CTXT
object context type datatype, use &XX->type to cast to MK_TYP
static bool MqCtxTypCheck(MK_MNGN mng)
check MqTypeCtxS -> MkObjectS::signature …
MK_TYP type
MqTypeCtxS - the instance-base for the MqContextC …

◆ MqTypeCtxLog_RT()

void MqTypeCtxLog_RT ( MK_RT mkrt,
MQ_CTXT const ctxtype,
MK_OBJN fmtobj,
MK_DBG const debug,
MK_STRN const callfunc,
MK_I32 const lvl )

log the MqTypeCtxS

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]ctxtypethe type of a MqContextC
[in]fmtobjmanaged object used to format the log-message (default=MK_NULL → use default-format)
[in]debugthe debug level from MkRuntimeS::debug, use 0 <= debug <= 9 (default=0)
[in]callfunca user-defined postfix to identify the calling-function or the environment (default = name-of-function, MK_NULL = resolve-own-name)
[in]lvla user-defined prefix starting with "" for lvl=0 and increase with " " for lvl+1 (default=0)
See also
MkObjectC_C_API