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

MqDumpC - various functions to create, initialize and destroy a dumpMore...

+ Collaboration diagram for MqDumpC_TOR_CC_API:

Functions

static MK_OBJ ccmqmsgque::MqDumpC::CTOR (MqContextC *ctx, MqDumpC *dumpP_inout=NULL)
  C++: [constructor,static] MqDumpC* MqDumpC::Export(MqContextC* ctx, MqDumpC* dumpP_inout = NULL) C-API
create a MqDumpC as export of the ctx-read-data-package
 
static MqDumpCccmqmsgque::MqDumpC::Error (MqContextC *error, MqDumpC *dumpP_inout=NULL)
  C++: [constructor,static] MqDumpC* MqDumpC::Error(MqContextC* error, MqDumpC* dumpP_inout = NULL) C-API
export the context->error into the dump-package
 
static MqDumpCccmqmsgque::MqDumpC::Export (MqContextC *ctx, MqDumpC *dumpP_inout=NULL)
  C++: [constructor,static] MqDumpC* MqDumpC::Export(MqContextC* ctx, MqDumpC* dumpP_inout = NULL) C-API
create a MqDumpC as export of the ctx-read-data-package
 
 ccmqmsgque::MqDumpC::MqDumpC (MqContextC *ctx, MqDumpC *dumpP_inout=NULL)
  C++: [constructor,static] MqDumpC* MqDumpC::Export(MqContextC* ctx, MqDumpC* dumpP_inout = NULL) C-API
create a MqDumpC as export of the ctx-read-data-package
 
static MqDumpCccmqmsgque::MqDumpC::BinSet (MK_BNP data)
  C++: [constructor,static] MqDumpC* MqDumpC::BinSet(MK_BNP data) C-API
create an MqDumpS object from binary data
 
MK_BNP ccmqmsgque::MqDumpC::BinGet () const
  C++: MK_BNP dump.BinGet() C-API
export the binary data from an MqDumpS object
 
void ccmqmsgque::MqDumpC::Import (MqContextC *ctx)
  C++: dump.Import(MqContextC* ctx) C-API
import the dump-package into the ctx-read-data-package
 
void ccmqmsgque::MqDumpC::Import (const MqContextC &ctx)
  C++: dump.Import(MqContextC* ctx) C-API
import the dump-package into the ctx-read-data-package
 

Detailed Description

MqDumpC - various functions to create, initialize and destroy a dump

Function Documentation

◆ BinGet()

MK_BNP ccmqmsgque::MqDumpC::BinGet ( ) const
inline

C++: MK_BNP dump.BinGet() C-API
export the binary data from an MqDumpS object

Definition at line 167 of file MqDumpC_inline_cc.hh.

167 {
168 MK_UNUSED auto dump = getDMPN();
169 MkBinaryR __retVal__L = MqDumpBinGet(dump);
170 return std::make_pair(MkBinaryGetSize(__retVal__L),MkBinaryGetData(__retVal__L));
171 }
static MK_SIZE MkBinaryGetSize(const MkBinaryR bin)
static MK_BINN MkBinaryGetData(const MkBinaryR bin)
#define MK_UNUSED
MQ_DMPN getDMPN() const
(const) return the LibMsgqueObject from current MqDumpC instance
Definition MqDumpC_cc.hh:94
MkBinaryR MqDumpBinGet(MQ_DMPN const dump)
export the binary data from an MqDumpS object

◆ BinSet()

MqDumpC * ccmqmsgque::MqDumpC::BinSet ( MK_BNP data)
inlinestatic

C++: [constructor,static] MqDumpC* MqDumpC::BinSet(MK_BNP data) C-API
create an MqDumpS object from binary data

Definition at line 155 of file MqDumpC_inline_cc.hh.

155 {
157 MQ_DMP dmp_out;
158 const MkBinaryR data_ref = MkBinaryCreate(data.first,data.second);
159 enum MkErrorE errVal = MqDumpBinSet(data_ref, &dmp_out);
160 MkErrorC_Check(NULL, errVal);
162 }
static MkBinaryR MkBinaryCreate(MK_SIZE size, MK_BINN data)
#define MK_RT_CALL
#define MkRtSetup_NULL
static MqDumpC * MqDumpC_ObjCreate(MK_RT_ARGS MQ_DMP hdl)
Definition MqDumpC_cc.hh:62
struct MqDumpS * MQ_DMP
class-shortcut for struct MqDumpS *, all shortcut using the XX_YYY syntax (only for public API) …
#define MqDumpBinSet(...)

◆ CTOR()

MK_OBJ ccmqmsgque::MqDumpC::CTOR ( MqContextC * ctx,
MqDumpC * dumpP_inout = NULL )
inlinestaticprivate

C++: [constructor,static] MqDumpC* MqDumpC::Export(MqContextC* ctx, MqDumpC* dumpP_inout = NULL) C-API
create a MqDumpC as export of the ctx-read-data-package

Definition at line 123 of file MqDumpC_inline_cc.hh.

123 {
125 MQ_CTX ctx_hdl = MqContextC::getCTX(ctx);
126 MQ_DMP dumpP_inout_hdl = MqDumpC::getDMP__null_allow(dumpP_inout);
127 enum MkErrorE errVal = MqDumpExport(ctx_hdl, &dumpP_inout_hdl);
128 MkErrorC_Check(NULL, errVal);
129 return (MK_OBJ)dumpP_inout_hdl;
130 }
struct MkObjectS * MK_OBJ
MQ_CTX getCTX() const
return the LibMsgqueObject from current MqContextC instance
struct MqContextS * MQ_CTX
class-shortcut for struct MqContextS *, all shortcut using the XX_YYY syntax (only for public API) …
MQ_DMP getDMP__null_allow() const
return the LibMsgqueObject from current MqDumpC instance
Definition MqDumpC_cc.hh:89
#define MqDumpExport(...)

◆ Error()

MqDumpC * ccmqmsgque::MqDumpC::Error ( MqContextC * error,
MqDumpC * dumpP_inout = NULL )
inlinestatic

C++: [constructor,static] MqDumpC* MqDumpC::Error(MqContextC* error, MqDumpC* dumpP_inout = NULL) C-API
export the context->error into the dump-package

Definition at line 133 of file MqDumpC_inline_cc.hh.

133 {
135 MQ_CTX error_hdl = MqContextC::getCTX(error);
136 MQ_DMP dumpP_inout_hdl = MqDumpC::getDMP__null_allow(dumpP_inout);
137 enum MkErrorE errVal = MqDumpError(error_hdl, &dumpP_inout_hdl);
138 MkErrorC_Check(NULL, errVal);
139 return MqDumpC::MqDumpC_ObjCreate(MK_RT_CALL dumpP_inout_hdl);
140 }
#define MqDumpError(...)

◆ Export()

MqDumpC * ccmqmsgque::MqDumpC::Export ( MqContextC * ctx,
MqDumpC * dumpP_inout = NULL )
inlinestatic

C++: [constructor,static] MqDumpC* MqDumpC::Export(MqContextC* ctx, MqDumpC* dumpP_inout = NULL) C-API
create a MqDumpC as export of the ctx-read-data-package

Definition at line 143 of file MqDumpC_inline_cc.hh.

143 {
145 MQ_CTX ctx_hdl = MqContextC::getCTX(ctx);
146 MQ_DMP dumpP_inout_hdl = MqDumpC::getDMP__null_allow(dumpP_inout);
147 enum MkErrorE errVal = MqDumpExport(ctx_hdl, &dumpP_inout_hdl);
148 MkErrorC_Check(NULL, errVal);
149 return MqDumpC::MqDumpC_ObjCreate(MK_RT_CALL dumpP_inout_hdl);
150 }
+ Here is the caller graph for this function:

◆ Import() [1/2]

void ccmqmsgque::MqDumpC::Import ( const MqContextC & ctx)
inline

C++: dump.Import(MqContextC* ctx) C-API
import the dump-package into the ctx-read-data-package

Definition at line 182 of file MqDumpC_inline_cc.hh.

182 {
183 MK_UNUSED auto dump = getDMP();
184 const MQ_CTX ctx_hdl = MqContextC::getCTX(ctx);
185 enum MkErrorE errVal = MqDumpImport(dump, ctx_hdl);
186 MkErrorC_Check(dump, errVal);
187 }
MQ_DMP getDMP() const
return the LibMsgqueObject from current MqDumpC instance
Definition MqDumpC_cc.hh:82
#define MqDumpImport(...)

◆ Import() [2/2]

void ccmqmsgque::MqDumpC::Import ( MqContextC * ctx)
inline

C++: dump.Import(MqContextC* ctx) C-API
import the dump-package into the ctx-read-data-package

Definition at line 174 of file MqDumpC_inline_cc.hh.

174 {
175 MK_UNUSED auto dump = getDMP();
176 MQ_CTX ctx_hdl = MqContextC::getCTX(ctx);
177 enum MkErrorE errVal = MqDumpImport(dump, ctx_hdl);
178 MkErrorC_Check(dump, errVal);
179 }

◆ MqDumpC()

ccmqmsgque::MqDumpC::MqDumpC ( MqContextC * ctx,
MqDumpC * dumpP_inout = NULL )
inline

C++: [constructor,static] MqDumpC* MqDumpC::Export(MqContextC* ctx, MqDumpC* dumpP_inout = NULL) C-API
create a MqDumpC as export of the ctx-read-data-package

Definition at line 261 of file MqDumpC_cc.hh.

261: MkObjectC(CTOR(ctx, dumpP_inout)) {};
static MK_OBJ CTOR(MqContextC *ctx, MqDumpC *dumpP_inout=NULL)
C++: [constructor,static] MqDumpC* MqDumpC::Export(MqContextC* ctx, MqDumpC* dumpP_inout = NULL) → C...