theLink 10.0
Loading...
Searching...
No Matches
MqDumpC_inline_cc.hh
Go to the documentation of this file.
1
9/* LABEL-NO */
10
11namespace ccmqmsgque {
12
13/*
14 inline MK_PTR MqDumpC::MqDumpC_selfCreate (MK_RT_ARGS MK_OBJ obj, MK_PTR const env) {
15 return new MqDumpC(obj);
16 }
17*/
18
19 // BEGIN-MqDumpC - created by 'cc_MqC.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
20
24
25 // doc-key: MqDumpC,MqDumpC-Class-Export,sc_
26
30 MQ_DMP __retVal__L = MqDumpHandleResolve(netHdl);
31 return MqDumpC::MqDumpC_ObjNew(MK_RT_CALL __retVal__L);
32 }
33
34 // doc-key: MqDumpC,MqDumpC-Class-Export,om_
35
36 // skip class-overload: HandleGet = MqDumpHandleGet → MkObjectHandleGet
37
39 // MqDumpC_Class_CC_API
40
44
45 // doc-key: MqDumpC,MqDumpC-Class-Introspection,oc_
46
49 MK_UNUSED auto dmp = getDMP();
50 MQ_DMP __retVal__L = MqDumpNext(dmp);
51 return MqDumpC::MqDumpC_ObjNew(MK_RT_CALL __retVal__L);
52 }
53
56 MK_UNUSED auto dmp = getDMP();
57 MQ_DMP __retVal__L = MqDumpPrev(dmp);
58 return MqDumpC::MqDumpC_ObjNew(MK_RT_CALL __retVal__L);
59 }
60
61 // doc-key: MqDumpC,MqDumpC-Class-Introspection,sc_
62
66 MQ_DMP __retVal__L = MqDumpInstances();
67 return MqDumpC::MqDumpC_ObjNew(MK_RT_CALL __retVal__L);
68 }
69
71 // MqDumpC_Class_CC_API
72
76
77 // doc-key: MqDumpC,MqDumpC-Class-Misc,sc_
78
82 MQ_DMP __retVal__L = MqDumpGetNull();
83 return MqDumpC::MqDumpC_ObjNew(MK_RT_CALL __retVal__L);
84 }
85
87 // MqDumpC_Class_CC_API
88
92
93 // doc-key: MqDumpC,MqDumpC-Misc,om_
94
95 // skip class-overload: Log = MqDumpLog → MkObjectLog
96
97 // skip class-overload: Log = MqDumpLog → MkObjectLog
98
100 inline MK_SIZE MqDumpC::SizeGet () const {
101 MK_UNUSED auto dump = getDMPN();
102 MK_SIZE __retVal__L = MqDumpSizeGet(dump);
103 return __retVal__L;
104 }
105
107 inline MK_STRN MqDumpC::TokenGet () const {
108 MK_UNUSED auto dump = getDMPN();
109 MK_STRN __retVal__L = MqDumpTokenGet(dump);
110 return __retVal__L;
111 }
112
114 // MqDumpC_Misc_CC_API
115
119
120 // doc-key: MqDumpC,MqDumpC-TOR,sCi
121
123 inline MK_OBJ MqDumpC::CTOR (MqContextC* ctx, MqDumpC* dumpP_inout) {
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 }
131
133 inline MqDumpC* MqDumpC::Error (MqContextC* error, MqDumpC* dumpP_inout) {
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 }
141
143 inline MqDumpC* MqDumpC::Export (MqContextC* ctx, MqDumpC* dumpP_inout) {
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 }
151
152 // doc-key: MqDumpC,MqDumpC-TOR,sCo
153
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 }
163
164 // doc-key: MqDumpC,MqDumpC-TOR,om_
165
167 inline MK_BNP MqDumpC::BinGet () const {
168 MK_UNUSED auto dump = getDMPN();
169 MkBinaryR __retVal__L = MqDumpBinGet(dump);
170 return std::make_pair(MkBinaryGetSize(__retVal__L),MkBinaryGetData(__retVal__L));
171 }
172
174 inline void MqDumpC::Import (MqContextC* ctx) {
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 }
180
182 inline void MqDumpC::Import (const MqContextC& ctx) {
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 }
188
190 // MqDumpC_TOR_CC_API
191
192 // END-MqDumpC - created by 'cc_MqC.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
193
194} // END - namespace "ccmqmsgque"
PUBLIC data structure for the ccmqmsgque-specific-data → C-API: libmqmsgque::MqContextS
MqDumpC - the class known as dmp or dump is used to export a ccmqmsgque data package as binary … ...
Definition MqDumpC_cc.hh:24
static MkBinaryR MkBinaryCreate(MK_SIZE size, MK_BINN data)
static MK_SIZE MkBinaryGetSize(const MkBinaryR bin)
static MK_BINN MkBinaryGetData(const MkBinaryR bin)
#define MK_UNUSED
int32_t MK_HDL
const MK_STRB * MK_STRN
#define MK_RT_CALL
#define MkRtSetup_NULL
MQ_CTX getCTX() const
return the LibMsgqueObject from current MqContextC instance
MQ_DMP getDMP__null_allow() const
return the LibMsgqueObject from current MqDumpC instance
Definition MqDumpC_cc.hh:89
MQ_DMPN getDMPN() const
(const) return the LibMsgqueObject from current MqDumpC instance
Definition MqDumpC_cc.hh:94
static MqDumpC * MqDumpC_ObjCreate(MK_RT_ARGS MQ_DMP hdl)
Definition MqDumpC_cc.hh:62
MQ_DMP getDMP() const
return the LibMsgqueObject from current MqDumpC instance
Definition MqDumpC_cc.hh:82
static MqDumpC * MqDumpC_ObjNew(MK_RT_ARGS MQ_DMP hdl)
return MqDumpC from LibMsgqueObject
Definition MqDumpC_cc.hh:77
static MqDumpC * Instances()
C++: [static] MqDumpC* MqDumpC::Instances() → C-API get head-instance from linked-list of MqDump...
MqDumpC * Next()
C++: MqDumpC* dmp.Next() → C-API get next instance from linked-list of MqDumpS type
static MqDumpC * HandleResolve(MK_HDL netHdl)
C++: [static] MqDumpC* MqDumpC::HandleResolve(MK_HDL netHdl) → C-API Handle-Resolve-Slot - retur...
MqDumpC * Prev()
C++: MqDumpC* dmp.Prev() → C-API get previous instance from linked-list of MqDumpS type
static MqDumpC * GetNull()
C++: [static] MqDumpC* MqDumpC::GetNull() → C-API Null-Slot - return a MqDumpC typed NULL instan...
#define MqDumpHandleResolve(...)
static MQ_DMP MqDumpPrev(MQ_DMP const dmp)
get previous instance from linked-list of MqDumpS type
#define MqDumpInstances()
static MQ_DMP MqDumpNext(MQ_DMP const dmp)
get next instance from linked-list of MqDumpS type
static MQ_DMP MqDumpGetNull(void)
Null-Slot - return a MqDumpC typed NULL instance …
MK_SIZE SizeGet() const
C++: MK_SIZE dump.SizeGet() → C-API report the binary data size from an MqDumpS object
MK_STRN TokenGet() const
C++: MK_STRN dump.TokenGet() → C-API return the MqContextC_ServiceApi_Identifer …
MK_SIZE MqDumpSizeGet(MQ_DMPN const dump)
report the binary data size from an MqDumpS object
MK_STRN MqDumpTokenGet(MQ_DMPN const dump)
return the MqContextC_ServiceApi_Identifer …
static MqDumpC * Export(MqContextC *ctx, MqDumpC *dumpP_inout=NULL)
C++: [constructor,static] MqDumpC* MqDumpC::Export(MqContextC* ctx, MqDumpC* dumpP_inout = NULL) → C...
static MqDumpC * Error(MqContextC *error, MqDumpC *dumpP_inout=NULL)
C++: [constructor,static] MqDumpC* MqDumpC::Error(MqContextC* error, MqDumpC* dumpP_inout = NULL) → ...
MK_BNP BinGet() const
C++: MK_BNP dump.BinGet() → C-API export the binary data from an MqDumpS object
void Import(MqContextC *ctx)
C++: dump.Import(MqContextC* ctx) → C-API import the dump-package into the ctx-read-data-packag...
static MqDumpC * BinSet(MK_BNP data)
C++: [constructor,static] MqDumpC* MqDumpC::BinSet(MK_BNP data) → C-API create an MqDumpS object...
static MK_OBJ CTOR(MqContextC *ctx, MqDumpC *dumpP_inout=NULL)
C++: [constructor,static] MqDumpC* MqDumpC::Export(MqContextC* ctx, MqDumpC* dumpP_inout = NULL) → C...
MkBinaryR MqDumpBinGet(MQ_DMPN const dump)
export the binary data from an MqDumpS object
#define MqDumpError(...)
#define MqDumpExport(...)
#define MqDumpBinSet(...)
#define MqDumpImport(...)
std::pair< MK_SIZE, MK_BINN > MK_BNP
namespace for the CcMqMsgque "C++"-API
PUBLIC data structure for the ccmqmsgque-specific-data
MqDumpC - the class known as dmp or dump is used to export a ccmqmsgque data package as binary …