theLink 10.0
Loading...
Searching...
No Matches
MqFactoryC_inline_cc.hh
Go to the documentation of this file.
1
9/* LABEL-NO */
10
11namespace ccmqmsgque {
12
13/*
14 inline MK_PTR MqFactoryC::MqFactoryC_selfCreate (MK_RT_ARGS MK_OBJ obj, MK_PTR const env) {
15 return new MqFactoryC(obj);
16 }
17*/
18
19 // BEGIN-MqFactoryC - created by 'cc_MqC.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
20
24
25 // doc-key: MqFactoryC,MqFactoryC-Class-Export,sc_
26
30 MQ_FCT __retVal__L = MqFactoryHandleResolve(netHdl);
31 return MqFactoryC::MqFactoryC_ObjNew(MK_RT_CALL __retVal__L);
32 }
33
34 // doc-key: MqFactoryC,MqFactoryC-Class-Export,om_
35
36 // skip class-overload: HandleGet = MqFactoryHandleGet → MkObjectHandleGet
37
39 // MqFactoryC_Class_CC_API
40
44
45 // doc-key: MqFactoryC,MqFactoryC-Class-Introspection,oc_
46
49 MK_UNUSED auto fct = getFCT();
50 MQ_FCT __retVal__L = MqFactoryNext(fct);
51 return MqFactoryC::MqFactoryC_ObjNew(MK_RT_CALL __retVal__L);
52 }
53
56 MK_UNUSED auto fct = getFCT();
57 MQ_FCT __retVal__L = MqFactoryPrev(fct);
58 return MqFactoryC::MqFactoryC_ObjNew(MK_RT_CALL __retVal__L);
59 }
60
61 // doc-key: MqFactoryC,MqFactoryC-Class-Introspection,sc_
62
66 MQ_FCT __retVal__L = MqFactoryInstances();
67 return MqFactoryC::MqFactoryC_ObjNew(MK_RT_CALL __retVal__L);
68 }
69
71 // MqFactoryC_Class_CC_API
72
76
77 // doc-key: MqFactoryC,MqFactoryC-Class-Misc,sc_
78
82 MQ_FCT __retVal__L = MqFactoryGetNull();
83 return MqFactoryC::MqFactoryC_ObjNew(MK_RT_CALL __retVal__L);
84 }
85
87 // MqFactoryC_Class_CC_API
88
92
93 // doc-key: MqFactoryC,MqFactoryC-Get,sc_
94
98 MQ_FCT __retVal__L = MqFactoryGet(ident);
99 return MqFactoryC::MqFactoryC_ObjNew(MK_RT_CALL __retVal__L);
100 }
101
105 MQ_FCT __retVal__L = MqFactoryGetCalled(ident);
106 return MqFactoryC::MqFactoryC_ObjNew(MK_RT_CALL __retVal__L);
107 }
108
112 MK_BFLN largs_hdl = MkBufferListC::getBFLN(largs);
113 MQ_FCT __retVal__L = MqFactoryGetCalledL(largs_hdl);
114 return MqFactoryC::MqFactoryC_ObjNew(MK_RT_CALL __retVal__L);
115 }
116
120 const MK_BFLN largs_hdl = MkBufferListC::getBFLN(largs);
121 MQ_FCT __retVal__L = MqFactoryGetCalledL(largs_hdl);
122 return MqFactoryC::MqFactoryC_ObjNew(MK_RT_CALL __retVal__L);
123 }
124
125 // doc-key: MqFactoryC,MqFactoryC-Get,om_
126
129 MK_UNUSED auto fct = getFCTN();
130 MK_STRN __retVal__L = MqFactoryGetOriginalIdent(fct);
131 return __retVal__L;
132 }
133
135 // MqFactoryC_Get_CC_API
136
140
141 // doc-key: MqFactoryC,MqFactoryC-Misc,oc_
142
145 MK_UNUSED auto fct = getFCT();
146 MQ_FCT __retVal__L = MqFactoryDefault(fct);
147 return MqFactoryC::MqFactoryC_ObjNew(MK_RT_CALL __retVal__L);
148 }
149
152 MK_UNUSED auto fct = getFCT();
153 MQ_FCT __retVal__L = MqFactoryInitial(fct);
154 return MqFactoryC::MqFactoryC_ObjNew(MK_RT_CALL __retVal__L);
155 }
156
157 // doc-key: MqFactoryC,MqFactoryC-Misc,oco
158
161 MK_UNUSED auto fct = getFCT();
162 MQ_CTX val_out;
163 enum MkErrorE errVal = MqFactoryNew(fct, NULL, &val_out);
164 MkErrorC_Check(fct, errVal);
166 }
167
168 // doc-key: MqFactoryC,MqFactoryC-Misc,om_
169
170 // skip class-overload: Log = MqFactoryLog → MkObjectLog
171
172 // skip class-overload: Log = MqFactoryLog → MkObjectLog
173
174 // doc-key: MqFactoryC,MqFactoryC-Misc,sm_
175
179 MK_STRN __retVal__L = MqFactoryDefaultIdent();
180 return __retVal__L;
181 }
182
186 MK_STRN __retVal__L = MqFactoryInitialIdent();
187 return __retVal__L;
188 }
189
191 inline void MqFactoryC::LogAll (MK_STRN callfunc) {
193 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
194 MqFactoryLogAll(callfunc);
195 }
196
198 // MqFactoryC_Misc_CC_API
199
203
204 // doc-key: MqFactoryC,MqFactoryC-TOR,oCx
205
207 inline MqFactoryC* MqFactoryC::Dup2 (MK_STRN ident) const {
208 MK_UNUSED auto fct = getFCTN();
209 MQ_FCT __retVal__L = MqFactoryDup2(fct, ident);
210 if (__retVal__L == NULL) {
211 throw MkInitError("MqFactoryC::Dup2");
212 }
214 }
215
217 inline MqFactoryC* MqFactoryC::Dup2 (const std::string& ident) const {
218 MK_UNUSED auto fct = getFCTN();
219 const MK_STRN ident_hdl = ident.c_str();
220 MQ_FCT __retVal__L = MqFactoryDup2(fct, ident_hdl);
221 if (__retVal__L == NULL) {
222 throw MkInitError("MqFactoryC::Dup2");
223 }
225 }
226
228 // MqFactoryC_TOR_CC_API
229
230 // END-MqFactoryC - created by 'cc_MqC.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
231
232} // END - namespace "ccmqmsgque"
PUBLIC data structure for the ccmqmsgque-specific-data → C-API: libmqmsgque::MqContextS
data used to define a factory → C-API: libmqmsgque::MqFactoryS
MK_BFLN getBFLN() const
#define MK_UNUSED
int32_t MK_HDL
const MK_STRB * MK_STRN
#define MK_RT_CALL
#define MkRtSetup_NULL
static MqContextC * MqContextC_ObjNew(MK_RT_ARGS MQ_CTX hdl)
return MqContextC from LibMsgqueObject
MQ_FCTN getFCTN() const
(const) return the LibMsgqueObject from current MqFactoryC instance
MQ_FCT getFCT() const
return the LibMsgqueObject from current MqFactoryC instance
static MqFactoryC * MqFactoryC_ObjNew(MK_RT_ARGS MQ_FCT hdl)
return MqFactoryC from LibMsgqueObject
static MqFactoryC * MqFactoryC_ObjCreate(MK_RT_ARGS MQ_FCT hdl)
MqFactoryC * Next()
C++: MqFactoryC* fct.Next() → C-API get next instance from linked-list of MqFactoryS type
static MqFactoryC * Instances()
C++: [static] MqFactoryC* MqFactoryC::Instances() → C-API get head-instance from linked-list of ...
static MqFactoryC * HandleResolve(MK_HDL netHdl)
C++: [static] MqFactoryC* MqFactoryC::HandleResolve(MK_HDL netHdl) → C-API Handle-Resolve-Slot -...
static MqFactoryC * GetNull()
C++: [static] MqFactoryC* MqFactoryC::GetNull() → C-API Null-Slot - return a MqFactoryC typed NU...
MqFactoryC * Prev()
C++: MqFactoryC* fct.Prev() → C-API get previous instance from linked-list of MqFactoryS type
#define MqFactoryInstances()
static MQ_FCT MqFactoryPrev(MQ_FCT const fct)
get previous instance from linked-list of MqFactoryS type
static MQ_FCT MqFactoryGetNull(void)
Null-Slot - return a MqFactoryC typed NULL instance …
#define MqFactoryHandleResolve(...)
static MQ_FCT MqFactoryNext(MQ_FCT const fct)
get next instance from linked-list of MqFactoryS type
MK_STRN GetOriginalIdent() const
C++: MK_STRN fct.GetOriginalIdent() → C-API helper function to return MqFactoryS::originalIdent
static MqFactoryC * Get(MK_STRN ident="")
C++: [static] MqFactoryC* MqFactoryC::Get(MK_STRN ident = "") → C-API return the MqFactoryC
static MqFactoryC * GetCalled(MK_STRN ident="")
C++: [static] MqFactoryC* MqFactoryC::GetCalled(MK_STRN ident = "") → C-API returns the MqFactor...
#define MqFactoryGetCalledL(...)
#define MqFactoryGet(...)
MK_STRN MqFactoryGetOriginalIdent(MQ_FCTN const fct)
helper function to return MqFactoryS::originalIdent
#define MqFactoryGetCalled(...)
static void LogAll(MK_STRN callfunc=__builtin_FUNCTION())
C++: [static] MqFactoryC::LogAll(MK_STRN callfunc = __builtin_FUNCTION()) → C-API log all "facto...
virtual MqContextC * New()
C++: MqContextC* fct.New() → C-API create a new MqContextC from a MqFactoryC …
static MK_STRN DefaultIdent()
C++: [static] MK_STRN MqFactoryC::DefaultIdent() → C-API return the factory-identifier of the de...
MqFactoryC * Default()
C++: MqFactoryC* fct.Default() → C-API set the default-attribute to the factory …
static MK_STRN InitialIdent()
C++: [static] MK_STRN MqFactoryC::InitialIdent() → C-API return the factory-identifier of the in...
MqFactoryC * Initial()
C++: MqFactoryC* fct.Initial() → C-API set the initial-attribut to fct …
#define MqFactoryLogAll(...)
#define MqFactoryInitial(...)
#define MqFactoryDefaultIdent()
#define MqFactoryNew(...)
#define MqFactoryInitialIdent()
#define MqFactoryDefault(...)
MqFactoryC * Dup2(MK_STRN ident) const
C++: [constructor] MqFactoryC* fct.Dup2(MK_STRN ident) → C-API create a duplicate of the singlet...
#define MqFactoryDup2(...)
namespace for the CcMqMsgque "C++"-API
PUBLIC data structure for the ccmqmsgque-specific-data
data used to define a factory