theSq3Lite 10.0
Loading...
Searching...
No Matches
Sq3ValueC_inline_cc.hh
Go to the documentation of this file.
1
9/* LABEL-NO */
10
11#pragma once
12
13namespace ccsq3lite {
14
15/*
16 inline MK_PTR Sq3ValueC::Sq3ValueC_selfCreateTLS(MK_OBJ obj) {
17 return new Sq3ValueC(obj);
18 }
19
20 inline MK_PTR Sq3ValueC::Sq3ValueC_selfCreate (MK_RT_ARGS MK_OBJ obj, MK_PTR const env) {
21 MK_BUF buf = reinterpret_cast<MK_BUF>(obj);
22 return MkOBJ_R(buf).obj_protect.isLocal ? Sq3ValueC_selfCreateTLS(obj) : new Sq3ValueC(obj);
23 }
24*/
25
26 // BEGIN-Sq3ValueC - created by 'cc_MqC.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
27
31
32 // doc-key: Sq3ValueC,Sq3ValueC-Class-Export,sc_
33
37 SQ3_VAL __retVal__L = Sq3ValueHandleResolve(netHdl);
38 return Sq3ValueC::Sq3ValueC_ObjNew(MK_RT_CALL __retVal__L);
39 }
40
41 // doc-key: Sq3ValueC,Sq3ValueC-Class-Export,om_
42
43 // skip class-overload: HandleGet = Sq3ValueHandleGet → MkObjectHandleGet
44
46 // Sq3ValueC_Class_CC_API
47
51
52 // doc-key: Sq3ValueC,Sq3ValueC-Class-Introspection,oc_
53
56 MK_UNUSED auto val = getVAL();
57 SQ3_VAL __retVal__L = Sq3ValueNext(val);
58 return Sq3ValueC::Sq3ValueC_ObjNew(MK_RT_CALL __retVal__L);
59 }
60
63 MK_UNUSED auto val = getVAL();
64 SQ3_VAL __retVal__L = Sq3ValuePrev(val);
65 return Sq3ValueC::Sq3ValueC_ObjNew(MK_RT_CALL __retVal__L);
66 }
67
68 // doc-key: Sq3ValueC,Sq3ValueC-Class-Introspection,sc_
69
73 SQ3_VAL __retVal__L = Sq3ValueInstances();
74 return Sq3ValueC::Sq3ValueC_ObjNew(MK_RT_CALL __retVal__L);
75 }
76
78 // Sq3ValueC_Class_CC_API
79
83
84 // doc-key: Sq3ValueC,Sq3ValueC-Class-Misc,sc_
85
89 SQ3_VAL __retVal__L = Sq3ValueGetNull();
90 return Sq3ValueC::Sq3ValueC_ObjNew(MK_RT_CALL __retVal__L);
91 }
92
94 // Sq3ValueC_Class_CC_API
95
99
100 // doc-key: Sq3ValueC,Sq3ValueC-Info,om_
101
103 inline Sq3TextE Sq3ValueC::Bytes () const {
104 MK_UNUSED auto sq3val = getVALN();
105 enum Sq3TextE __retVal__L = Sq3ValueBytes(sq3val);
106 return __retVal__L;
107 }
108
111 MK_UNUSED auto sq3val = getVALN();
112 enum Sq3TextE __retVal__L = Sq3ValueEncoding(sq3val);
113 return __retVal__L;
114 }
115
117 inline MK_BOOL Sq3ValueC::FromBind () const {
118 MK_UNUSED auto sq3val = getVALN();
119 MK_BOOL __retVal__L = Sq3ValueFromBind(sq3val);
120 return __retVal__L;
121 }
122
123 // skip class-overload: Log = Sq3ValueLog → MkObjectLog
124
125 // skip class-overload: Log = Sq3ValueLog → MkObjectLog
126
128 inline MK_BOOL Sq3ValueC::NoChange () const {
129 MK_UNUSED auto sq3val = getVALN();
130 MK_BOOL __retVal__L = Sq3ValueNoChange(sq3val);
131 return __retVal__L;
132 }
133
136 MK_UNUSED auto sq3val = getVALN();
137 enum Sq3TypeE __retVal__L = Sq3ValueNumericType(sq3val);
138 return __retVal__L;
139 }
140
142 inline MK_I32 Sq3ValueC::SubType () const {
143 MK_UNUSED auto sq3val = getVALN();
144 MK_I32 __retVal__L = Sq3ValueSubType(sq3val);
145 return __retVal__L;
146 }
147
149 inline Sq3TypeE Sq3ValueC::Type () const {
150 MK_UNUSED auto sq3val = getVALN();
151 enum Sq3TypeE __retVal__L = Sq3ValueType(sq3val);
152 return __retVal__L;
153 }
154
156 // Sq3ValueC_Info_CC_API
157
161
162 // doc-key: Sq3ValueC,Sq3ValueC-TOR,oCx
163
165 inline Sq3ValueC* Sq3ValueC::Dup () const {
166 MK_UNUSED auto sq3val = getVALN();
167 SQ3_VAL __retVal__L = Sq3ValueDup(sq3val);
168 if (__retVal__L == NULL) {
169 throw MkInitError("Sq3ValueC::Dup");
170 }
171 return Sq3ValueC::Sq3ValueC_ObjCreate(MK_RT_CALL __retVal__L);
172 }
173
175 // Sq3ValueC_TOR_CC_API
176
180
181 // doc-key: Sq3ValueC,Sq3ValueC-Types,oc_
182
184 inline MkBufferC* Sq3ValueC::BUF () const {
185 MK_UNUSED auto val = getVALN();
186 MK_BUF __retVal__L = Sq3ValueBUF(val);
187 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
188 }
189
191 inline MkBufferC* Sq3ValueC::Blob () const {
192 MK_UNUSED auto sq3val = getVALN();
193 MK_BUF __retVal__L = Sq3ValueBlob(sq3val);
194 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL __retVal__L);
195 }
196
197 // doc-key: Sq3ValueC,Sq3ValueC-Types,om_
198
200 inline MK_BNP Sq3ValueC::BinaryR () const {
201 MK_UNUSED auto sq3val = getVALN();
202 MkBinaryR __retVal__L = Sq3ValueBinaryR(sq3val);
203 return std::make_pair(MkBinaryGetSize(__retVal__L),MkBinaryGetData(__retVal__L));
204 }
205
207 inline MK_DBL Sq3ValueC::Double () const {
208 MK_UNUSED auto sq3val = getVALN();
209 MK_DBL __retVal__L = Sq3ValueDouble(sq3val);
210 return __retVal__L;
211 }
212
214 inline MK_I32 Sq3ValueC::Int () const {
215 MK_UNUSED auto sq3val = getVALN();
216 MK_I32 __retVal__L = Sq3ValueInt(sq3val);
217 return __retVal__L;
218 }
219
221 inline MK_I64 Sq3ValueC::Int64 () const {
222 MK_UNUSED auto sq3val = getVALN();
223 MK_I64 __retVal__L = Sq3ValueInt64(sq3val);
224 return __retVal__L;
225 }
226
228 inline std::string Sq3ValueC::StringR () const {
229 MK_UNUSED auto sq3val = getVALN();
230 MkStringR __retVal__L = Sq3ValueStringR(sq3val);
231 return std::string(MkStringGetData(__retVal__L),MkStringGetSize(__retVal__L));
232 }
233
235 inline MK_STRN Sq3ValueC::Text () const {
236 MK_UNUSED auto sq3val = getVALN();
237 MK_STRN __retVal__L = Sq3ValueText(sq3val);
238 return __retVal__L;
239 }
240
242 // Sq3ValueC_Types_CC_API
243
247
248 // doc-key: Sq3ValueC,Sq3ValueC-Vtab,oco
249
252 MK_UNUSED auto pVal = getVAL();
253 SQ3_VAL ppOut;
254 enum MkErrorE errVal = Sq3ValueVtabInFirst(pVal, &ppOut);
255 MkErrorC_Check(pVal, errVal);
257 }
258
261 MK_UNUSED auto pVal = getVAL();
262 SQ3_VAL ppOut;
263 enum MkErrorE errVal = Sq3ValueVtabInNext(pVal, &ppOut);
264 MkErrorC_Check(pVal, errVal);
266 }
267
269 // Sq3ValueC_Vtab_CC_API
270
271 // END-Sq3ValueC - created by 'cc_MqC.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
272
273} // END - namespace "ccsq3lite"
Struct to represent the data of the Sq3ValueC … → C-API: libsq3lite::Sq3ValueS
static MkBufferC * MkBufferC_ObjNew(MK_RT_ARGS MK_BUF hdl)
static MK_SIZE MkBinaryGetSize(const MkBinaryR bin)
static MK_BINN MkBinaryGetData(const MkBinaryR bin)
#define MK_UNUSED
static MK_NUM MkStringGetSize(MkStringR const str)
static MK_STRN MkStringGetData(MkStringR const str)
double MK_DBL
signed long long MK_I64
int32_t MK_HDL
signed int MK_I32
const MK_STRB * MK_STRN
#define MK_RT_CALL
#define MkRtSetup_NULL
Sq3TextE
Text Encodings.
Sq3TypeE
Fundamental Datatypes.
static Sq3ValueC * Sq3ValueC_ObjNew(MK_RT_ARGS SQ3_VAL hdl)
return Sq3ValueC from LibMsgqueObject
SQ3_VAL getVAL() const
return the LibMsgqueObject from current Sq3ValueC instance
SQ3_VALN getVALN() const
(const) return the LibMsgqueObject from current Sq3ValueC instance
Sq3ValueC * Prev()
C++: Sq3ValueC* val.Prev() → C-API get previous instance from linked-list of Sq3ValueS type
Sq3ValueC * Next()
C++: Sq3ValueC* val.Next() → C-API get next instance from linked-list of Sq3ValueS type
static Sq3ValueC * Instances()
C++: [static] Sq3ValueC* Sq3ValueC::Instances() → C-API get head-instance from linked-list of Sq...
static Sq3ValueC * HandleResolve(MK_HDL netHdl)
C++: [static] Sq3ValueC* Sq3ValueC::HandleResolve(MK_HDL netHdl) → C-API Handle-Resolve-Slot - r...
static Sq3ValueC * GetNull()
C++: [static] Sq3ValueC* Sq3ValueC::GetNull() → C-API Null-Slot - return a Sq3ValueC typed NULL ...
#define Sq3ValueInstances()
#define Sq3ValueHandleResolve(...)
static SQ3_VAL Sq3ValuePrev(SQ3_VAL const val)
get previous instance from linked-list of Sq3ValueS type
static SQ3_VAL Sq3ValueGetNull(void)
Null-Slot - return a Sq3ValueC typed NULL instance …
static SQ3_VAL Sq3ValueNext(SQ3_VAL const val)
get next instance from linked-list of Sq3ValueS type
MK_BOOL NoChange() const
C++: MK_BOOL sq3val.NoChange() → C-API Obtaining SQL Values …
MK_BOOL FromBind() const
C++: MK_BOOL sq3val.FromBind() → C-API Obtaining SQL Values …
Sq3TypeE Type() const
C++: Sq3TypeE sq3val.Type() → C-API Obtaining SQL Values …
MK_I32 SubType() const
C++: MK_I32 sq3val.SubType() → C-API Finding The Subtype Of SQL Values …
Sq3TypeE NumericType() const
C++: Sq3TypeE sq3val.NumericType() → C-API Obtaining SQL Values …
Sq3TextE Encoding() const
C++: Sq3TextE sq3val.Encoding() → C-API Report the internal text encoding state of an sqlite3_v...
Sq3TextE Bytes() const
C++: Sq3TextE sq3val.Bytes() → C-API Obtaining SQL Values …
static enum Sq3TextE Sq3ValueBytes(SQ3_VALN sq3val)
Obtaining SQL Values …
static enum Sq3TypeE Sq3ValueType(SQ3_VALN sq3val)
Obtaining SQL Values …
static MK_BOOL Sq3ValueFromBind(SQ3_VALN sq3val)
Obtaining SQL Values …
static enum Sq3TypeE Sq3ValueNumericType(SQ3_VALN sq3val)
Obtaining SQL Values …
static enum Sq3TextE Sq3ValueEncoding(SQ3_VALN sq3val)
Report the internal text encoding state of an sqlite3_value object …
static MK_I32 Sq3ValueSubType(SQ3_VALN sq3val)
Finding The Subtype Of SQL Values …
static MK_BOOL Sq3ValueNoChange(SQ3_VALN sq3val)
Obtaining SQL Values …
Sq3ValueC * Dup() const
C++: [constructor] Sq3ValueC* sq3val.Dup() → C-API Copy And Free SQL Values …
static SQ3_VAL Sq3ValueDup(SQ3_VALN sq3val)
Copy And Free SQL Values …
MK_STRN Text() const
C++: MK_STRN sq3val.Text() → C-API Obtaining SQL Values …
MK_I64 Int64() const
C++: MK_I64 sq3val.Int64() → C-API Obtaining SQL Values …
MK_DBL Double() const
C++: MK_DBL sq3val.Double() → C-API Obtaining SQL Values …
MkBufferC * Blob() const
C++: MkBufferC* sq3val.Blob() → C-API Obtaining SQL Values …
MK_I32 Int() const
C++: MK_I32 sq3val.Int() → C-API Obtaining SQL Values …
MK_BNP BinaryR() const
C++: MK_BNP sq3val.BinaryR() → C-API Obtaining SQL Values …
MkBufferC * BUF() const
C++: MkBufferC* val.BUF() → C-API Obtaining a MkBufferC value…
std::string StringR() const
C++: std::string sq3val.StringR() → C-API Obtaining SQL Values …
#define Sq3ValueBUF(...)
static MK_I32 Sq3ValueInt(SQ3_VALN sq3val)
Obtaining SQL Values …
static MK_DBL Sq3ValueDouble(SQ3_VALN sq3val)
Obtaining SQL Values …
#define Sq3ValueBlob(...)
static MK_STRN Sq3ValueText(SQ3_VALN sq3val)
Obtaining SQL Values …
static MkStringR Sq3ValueStringR(SQ3_VALN sq3val)
Obtaining SQL Values …
static MK_I64 Sq3ValueInt64(SQ3_VALN sq3val)
Obtaining SQL Values …
static MkBinaryR Sq3ValueBinaryR(SQ3_VALN sq3val)
Obtaining SQL Values …
Sq3ValueC * VtabInFirst()
C++: Sq3ValueC* pVal.VtabInFirst() → C-API Find all elements on the right-hand side of an IN co...
Sq3ValueC * VtabInNext()
C++: Sq3ValueC* pVal.VtabInNext() → C-API Find all elements on the right-hand side of an IN con...
static enum MkErrorE Sq3ValueVtabInNext(SQ3_VAL pVal, SQ3_VAL *ppOut)
Find all elements on the right-hand side of an IN constraint …
static enum MkErrorE Sq3ValueVtabInFirst(SQ3_VAL pVal, SQ3_VAL *ppOut)
Find all elements on the right-hand side of an IN constraint …
std::pair< MK_SIZE, MK_BINN > MK_BNP
namespace for the CcSq3Lite "C++"-API
Struct to represent the data of the Sq3ValueC …