theSq3Lite 10.0
Loading...
Searching...
No Matches
Sq3BlobC_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 Sq3BlobC::Sq3BlobC_selfCreateTLS(MK_OBJ obj) {
17 return new Sq3BlobC(obj);
18 }
19
20 inline MK_PTR Sq3BlobC::Sq3BlobC_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 ? Sq3BlobC_selfCreateTLS(obj) : new Sq3BlobC(obj);
23 }
24*/
25
26 // BEGIN-Sq3BlobC - created by 'cc_MqC.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
27
31
32 // doc-key: Sq3BlobC,Sq3BlobC-Class-Export,sc_
33
37 SQ3_BLOB __retVal__L = Sq3BlobHandleResolve(netHdl);
38 return Sq3BlobC::Sq3BlobC_ObjNew(MK_RT_CALL __retVal__L);
39 }
40
41 // doc-key: Sq3BlobC,Sq3BlobC-Class-Export,om_
42
43 // skip class-overload: HandleGet = Sq3BlobHandleGet → MkObjectHandleGet
44
46 // Sq3BlobC_Class_CC_API
47
51
52 // doc-key: Sq3BlobC,Sq3BlobC-Class-Introspection,oc_
53
56 MK_UNUSED auto blob = getBLOB();
57 SQ3_BLOB __retVal__L = Sq3BlobNext(blob);
58 return Sq3BlobC::Sq3BlobC_ObjNew(MK_RT_CALL __retVal__L);
59 }
60
63 MK_UNUSED auto blob = getBLOB();
64 SQ3_BLOB __retVal__L = Sq3BlobPrev(blob);
65 return Sq3BlobC::Sq3BlobC_ObjNew(MK_RT_CALL __retVal__L);
66 }
67
68 // doc-key: Sq3BlobC,Sq3BlobC-Class-Introspection,sc_
69
73 SQ3_BLOB __retVal__L = Sq3BlobInstances();
74 return Sq3BlobC::Sq3BlobC_ObjNew(MK_RT_CALL __retVal__L);
75 }
76
78 // Sq3BlobC_Class_CC_API
79
83
84 // doc-key: Sq3BlobC,Sq3BlobC-Class-Misc,sc_
85
89 SQ3_BLOB __retVal__L = Sq3BlobGetNull();
90 return Sq3BlobC::Sq3BlobC_ObjNew(MK_RT_CALL __retVal__L);
91 }
92
94 // Sq3BlobC_Class_CC_API
95
99
100 // doc-key: Sq3BlobC,Sq3BlobC-Misc,oci
101
103 inline MkBufferC* Sq3BlobC::Read (MkBufferC* Z_inout, MK_I32 iOffset) {
104 MK_UNUSED auto sq3blob = getBLOB();
105 MK_BUF Z_inout_hdl = MkBufferC::getBUF__null_allow(Z_inout);
106 enum MkErrorE errVal = Sq3BlobRead(sq3blob, &Z_inout_hdl, iOffset);
107 MkErrorC_Check(sq3blob, errVal);
108 return MkBufferC::MkBufferC_ObjNew(MK_RT_CALL Z_inout_hdl);
109 }
110
111 // doc-key: Sq3BlobC,Sq3BlobC-Misc,om_
112
115 MK_UNUSED auto sq3blob = getBLOB();
116 MK_I32 __retVal__L = Sq3BlobBytes(sq3blob);
117 return __retVal__L;
118 }
119
121 inline void Sq3BlobC::Reopen (MK_I64 arg1) {
122 MK_UNUSED auto sq3blob = getBLOB();
123 enum MkErrorE errVal = Sq3BlobReopen(sq3blob, arg1);
124 MkErrorC_Check(sq3blob, errVal);
125 }
126
128 inline void Sq3BlobC::Write (MkBufferC* z, MK_I32 iOffset) {
129 MK_UNUSED auto sq3blob = getBLOB();
130 MK_BUF z_hdl = MkBufferC::getBUF(z);
131 enum MkErrorE errVal = Sq3BlobWrite(sq3blob, z_hdl, iOffset);
132 MkErrorC_Check(sq3blob, errVal);
133 }
134
136 inline void Sq3BlobC::Write (const MkBufferC& z, MK_I32 iOffset) {
137 MK_UNUSED auto sq3blob = getBLOB();
138 const MK_BUF z_hdl = MkBufferC::getBUF(z);
139 enum MkErrorE errVal = Sq3BlobWrite(sq3blob, z_hdl, iOffset);
140 MkErrorC_Check(sq3blob, errVal);
141 }
142
144 // Sq3BlobC_Misc_CC_API
145
149
150 // doc-key: Sq3BlobC,Sq3BlobC-TOR,sCo
151
153 inline MK_OBJ Sq3BlobC::CTOR (Sq3LiteC* sq3lite, MK_STRN zDb, MK_STRN zTable, MK_STRN zColumn, MK_I64 iRow, MK_I32 flags) {
155 SQ3_BLOB ppBlob;
156 SQ3_LITE sq3lite_hdl = Sq3LiteC::getLITE(sq3lite);
157 enum MkErrorE errVal = Sq3BlobOpen(sq3lite_hdl, zDb, zTable, zColumn, iRow, flags, &ppBlob);
158 MkErrorC_Check(NULL, errVal);
159 return (MK_OBJ)ppBlob;
160 }
161
163 inline MK_OBJ Sq3BlobC::CTOR (Sq3LiteC* sq3lite, const std::string& zDb, const std::string& zTable, const std::string& zColumn, MK_I64 iRow, MK_I32 flags) {
165 SQ3_BLOB ppBlob;
166 SQ3_LITE sq3lite_hdl = Sq3LiteC::getLITE(sq3lite);
167 const MK_STRN zDb_hdl = zDb.c_str();
168 const MK_STRN zTable_hdl = zTable.c_str();
169 const MK_STRN zColumn_hdl = zColumn.c_str();
170 enum MkErrorE errVal = Sq3BlobOpen(sq3lite_hdl, zDb_hdl, zTable_hdl, zColumn_hdl, iRow, flags, &ppBlob);
171 MkErrorC_Check(NULL, errVal);
172 return (MK_OBJ)ppBlob;
173 }
174
176 inline Sq3BlobC* Sq3BlobC::Open (Sq3LiteC* sq3lite, MK_STRN zDb, MK_STRN zTable, MK_STRN zColumn, MK_I64 iRow, MK_I32 flags) {
178 SQ3_BLOB ppBlob;
179 SQ3_LITE sq3lite_hdl = Sq3LiteC::getLITE(sq3lite);
180 enum MkErrorE errVal = Sq3BlobOpen(sq3lite_hdl, zDb, zTable, zColumn, iRow, flags, &ppBlob);
181 MkErrorC_Check(NULL, errVal);
182 return Sq3BlobC::Sq3BlobC_ObjCreate(MK_RT_CALL ppBlob);
183 }
184
186 inline Sq3BlobC* Sq3BlobC::Open (Sq3LiteC* sq3lite, const std::string& zDb, const std::string& zTable, const std::string& zColumn, MK_I64 iRow, MK_I32 flags) {
188 SQ3_BLOB ppBlob;
189 SQ3_LITE sq3lite_hdl = Sq3LiteC::getLITE(sq3lite);
190 const MK_STRN zDb_hdl = zDb.c_str();
191 const MK_STRN zTable_hdl = zTable.c_str();
192 const MK_STRN zColumn_hdl = zColumn.c_str();
193 enum MkErrorE errVal = Sq3BlobOpen(sq3lite_hdl, zDb_hdl, zTable_hdl, zColumn_hdl, iRow, flags, &ppBlob);
194 MkErrorC_Check(NULL, errVal);
195 return Sq3BlobC::Sq3BlobC_ObjCreate(MK_RT_CALL ppBlob);
196 }
197
199 // Sq3BlobC_TOR_CC_API
200
201 // END-Sq3BlobC - created by 'cc_MqC.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
202
203} // END - namespace "ccsq3lite"
Struct to represent the data of the Sq3BlobC … → C-API: libsq3lite::Sq3BlobS
Struct to represent the data of the Sq3LiteC … → C-API: libsq3lite::Sq3LiteS
static MkBufferC * MkBufferC_ObjNew(MK_RT_ARGS MK_BUF hdl)
MK_BUF getBUF() const
MK_BUF getBUF__null_allow() const
#define MK_UNUSED
signed long long MK_I64
int32_t MK_HDL
signed int MK_I32
const MK_STRB * MK_STRN
struct MkObjectS * MK_OBJ
#define MK_RT_CALL
#define MkRtSetup_NULL
static Sq3BlobC * Sq3BlobC_ObjNew(MK_RT_ARGS SQ3_BLOB hdl)
return Sq3BlobC from LibMsgqueObject
SQ3_BLOB getBLOB() const
return the LibMsgqueObject from current Sq3BlobC instance
static Sq3BlobC * HandleResolve(MK_HDL netHdl)
C++: [static] Sq3BlobC* Sq3BlobC::HandleResolve(MK_HDL netHdl) → C-API Handle-Resolve-Slot - ret...
static Sq3BlobC * Instances()
C++: [static] Sq3BlobC* Sq3BlobC::Instances() → C-API get head-instance from linked-list of Sq3B...
Sq3BlobC * Next()
C++: Sq3BlobC* blob.Next() → C-API get next instance from linked-list of Sq3BlobS type
Sq3BlobC * Prev()
C++: Sq3BlobC* blob.Prev() → C-API get previous instance from linked-list of Sq3BlobS type
static Sq3BlobC * GetNull()
C++: [static] Sq3BlobC* Sq3BlobC::GetNull() → C-API Null-Slot - return a Sq3BlobC typed NULL ins...
#define Sq3BlobHandleResolve(...)
static SQ3_BLOB Sq3BlobGetNull(void)
Null-Slot - return a Sq3BlobC typed NULL instance …
#define Sq3BlobInstances()
static SQ3_BLOB Sq3BlobPrev(SQ3_BLOB const blob)
get previous instance from linked-list of Sq3BlobS type
static SQ3_BLOB Sq3BlobNext(SQ3_BLOB const blob)
get next instance from linked-list of Sq3BlobS type
struct Sq3BlobS * SQ3_BLOB
class-shortcut for struct Sq3BlobS *, all shortcut using the XX_YYY syntax (only for public API) …
MkBufferC * Read(MkBufferC *Z_inout, MK_I32 iOffset)
C++: MkBufferC* sq3blob.Read(MkBufferC* Z_inout, MK_I32 iOffset) → C-API Read Data From A BLO...
MK_I32 Bytes()
C++: MK_I32 sq3blob.Bytes() → C-API Return The Size Of An Open BLOB …
void Write(MkBufferC *z, MK_I32 iOffset)
C++: sq3blob.Write(MkBufferC* z, MK_I32 iOffset) → C-API Write Data Into A BLOB Incrementally...
void Reopen(MK_I64 arg1)
C++: sq3blob.Reopen(MK_I64 arg1) → C-API Move a BLOB Handle to a New Row …
static MK_I32 Sq3BlobBytes(SQ3_BLOB sq3blob)
Return The Size Of An Open BLOB …
#define Sq3BlobWrite(...)
static enum MkErrorE Sq3BlobReopen(SQ3_BLOB sq3blob, MK_I64 arg1)
Move a BLOB Handle to a New Row …
#define Sq3BlobRead(...)
static Sq3BlobC * Open(Sq3LiteC *sq3lite, MK_STRN zDb, MK_STRN zTable, MK_STRN zColumn, MK_I64 iRow, MK_I32 flags)
C++: [constructor,static] Sq3BlobC* Sq3BlobC::Open(Sq3LiteC* sq3lite, MK_STRN zDb,...
static enum MkErrorE Sq3BlobOpen(SQ3_LITE sq3lite, MK_STRN zDb, MK_STRN zTable, MK_STRN zColumn, MK_I64 iRow, MK_I32 flags, SQ3_BLOB *ppBlob)
Open A BLOB For Incremental I/O …
SQ3_LITE getLITE() const
return the LibMsgqueObject from current Sq3LiteC instance
struct Sq3LiteS * SQ3_LITE
class-shortcut for struct Sq3LiteS *, all shortcut using the XX_YYY syntax (only for public API) …
namespace for the CcSq3Lite "C++"-API
Struct to represent the data of the Sq3BlobC …
Struct to represent the data of the Sq3LiteC …