theSq3Lite 10.0
Loading...
Searching...
No Matches
Sq3BlobC_cc.hh
Go to the documentation of this file.
1
9/* LABEL-INIT */
10
11#pragma once
12
13namespace ccsq3lite {
14
17 typedef struct {
20 } Sq3BlobC_A;
21
24 class Sq3BlobC : public MkObjectC {
25
26 friend class Sq3Lite;
27
28 static inline MK_PTR Sq3BlobC_selfCreateTLS (MK_OBJ obj);
29
30/* LABEL-START */
31
34
35 public:
36 static thread_local Sq3BlobC MK_NULL_REF;
37
38 private:
39
40 static Sq3BlobC* Sq3BlobC_GetSelf (SQ3_BLOB hdl) {
41 return (hdl != NULL ? static_cast<Sq3BlobC*>((*Sq3BlobC_X2obj(hdl)).self) : &MK_NULL_REF);
42 }
43
44 #ifdef Sq3BlobC_selfCreate_overload
45 static MK_PTR Sq3BlobC_selfCreate (MK_RT_ARGS MK_OBJ obj, MK_PTR const env);
46 #else
47 static MK_PTR Sq3BlobC_selfCreate (MK_RT_ARGS MK_OBJ obj, MK_PTR const env) {
48 return new Sq3BlobC(obj);
49 }
50 #endif
51
52 static void Sq3BlobC_selfDelete (MK_RT_ARGS MK_PTR self, MK_PTR env) {
53 delete static_cast<Sq3BlobC*>(self);
54 }
55
56 static void Sq3BlobC_selfUnlink (MK_RT_ARGS MK_PTR self, MK_PTR env) {
57 Sq3BlobC* selfO = static_cast<Sq3BlobC*>(self);
58 selfO->atomUnlink();
59 }
60
61 void Sq3BlobC_Init (SQ3_BLOB hdl) { atomInit(Sq3BlobC_X2obj(hdl)); };
62
63
64 static Sq3BlobC* Sq3BlobC_ObjCreate (MK_RT_ARGS SQ3_BLOB hdl) {
65 return static_cast<Sq3BlobC*>(MkObjectC::atomObjCreate(MK_RT_CALL Sq3BlobC_X2obj(hdl)));
66 }
67
68#ifndef META_IS_MkObjectC
69 Sq3BlobC (MK_OBJ obj) : MkObjectC(obj) {};
70#endif
71
72 public:
73
74#ifndef META_IS_MkObjectC
76#endif
77
82
84 SQ3_BLOB getBLOB() const {
85 SQ3_BLOB ret = reinterpret_cast<SQ3_BLOB>(hdl);
86 if (unlikely(ret == NULL)) InstHdlIsNullError();
87 return ret;
88 };
89
92 return reinterpret_cast<SQ3_BLOB>(hdl);
93 };
94
97 SQ3_BLOBN ret = reinterpret_cast<SQ3_BLOBN>(hdl);
98 if (unlikely(ret == NULL)) InstHdlIsNullError();
99 return ret;
100 };
101
104 return reinterpret_cast<SQ3_BLOBN>(hdl);
105 };
106
108 static SQ3_BLOB getBLOB(Sq3BlobC* clsHdl) {
109 SQ3_BLOB ret = clsHdl ? reinterpret_cast<SQ3_BLOB>(clsHdl->hdl) : NULL;
110 if (unlikely(ret == NULL)) ClassHdlIsNullError(Sq3BlobC);
111 return ret;
112 };
113
116 return clsHdl ? reinterpret_cast<SQ3_BLOB>(clsHdl->hdl) : NULL;
117 };
118
120 static SQ3_BLOBN getBLOBN(const Sq3BlobC* clsHdl) {
121 SQ3_BLOBN ret = clsHdl ? reinterpret_cast<SQ3_BLOBN>(clsHdl->hdl) : NULL;
122 if (unlikely(ret == NULL)) ClassHdlIsNullError(Sq3BlobC);
123 return ret;
124 };
125
128 return clsHdl ? reinterpret_cast<SQ3_BLOBN>(clsHdl->hdl) : NULL;
129 };
130
132 static SQ3_BLOB getBLOB(const Sq3BlobC& clsHdl) {
133 return clsHdl.getBLOB();
134 };
135
137 static SQ3_BLOB getBLOB__null_allow(const Sq3BlobC& clsHdl) {
138 return clsHdl.getBLOB__null_allow();
139 };
140
142 static SQ3_BLOBN getBLOBN(const Sq3BlobC& clsHdl) {
143 return clsHdl.getBLOBN();
144 };
145
148 return clsHdl.getBLOBN__null_allow();
149 };
150
152 bool Check() const {
153 return (hdl && Sq3BlobCheck(hdl));
154 };
155
156/* LABEL-END */
157
158 public:
159
160/* no COPY constructor
161 Sq3BlobC (const Sq3BlobC* hdl);
162 Sq3BlobC (const Sq3BlobC& ref);
163 Sq3BlobC& operator= (const Sq3BlobC& buf);
164 Sq3BlobC& operator= (const Sq3BlobC* buf);
165*/
166
167 // BEGIN-Sq3BlobC - created by 'cc_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
168
172
173 public:
174
175 // doc-key: Sq3BlobC,Sq3BlobC-Class-Export,sc_,public
176
178 static Sq3BlobC* HandleResolve (MK_HDL netHdl);
179
180 // doc-key: Sq3BlobC,Sq3BlobC-Class-Export,om_,public
181
182 // skip class-overload: MK_HDL HandleGet ()
183
185 // Sq3BlobC_Class_CC_API
186
190
191 public:
192
193 // doc-key: Sq3BlobC,Sq3BlobC-Class-Introspection,oc_,public
194
196 Sq3BlobC* Next ();
197
199 Sq3BlobC* Prev ();
200
201 // doc-key: Sq3BlobC,Sq3BlobC-Class-Introspection,sc_,public
202
204 static Sq3BlobC* Instances ();
205
207 // Sq3BlobC_Class_CC_API
208
212
213 public:
214
215 // doc-key: Sq3BlobC,Sq3BlobC-Class-Misc,sc_,public
216
218 static Sq3BlobC* GetNull ();
219
221 // Sq3BlobC_Class_CC_API
222
226
227 public:
228
229 // doc-key: Sq3BlobC,Sq3BlobC-Misc,oci,public
230
232 MkBufferC* Read (MkBufferC* Z_inout, MK_I32 iOffset);
233
234 // doc-key: Sq3BlobC,Sq3BlobC-Misc,om_,public
235
237 MK_I32 Bytes ();
238
240 void Reopen (MK_I64 arg1);
241
243 void Write (MkBufferC* z, MK_I32 iOffset);
244
246 void Write (const MkBufferC& z, MK_I32 iOffset);
247
249 // Sq3BlobC_Misc_CC_API
250
254
255 private:
256
257 // doc-key: Sq3BlobC,Sq3BlobC-TOR,sCo,private
258
260 static MK_OBJ CTOR (Sq3LiteC* sq3lite, MK_STRN zDb, MK_STRN zTable, MK_STRN zColumn, MK_I64 iRow, MK_I32 flags);
261
263 static MK_OBJ CTOR (Sq3LiteC* sq3lite, const std::string& zDb, const std::string& zTable, const std::string& zColumn, MK_I64 iRow, MK_I32 flags);
264
265 public:
266
267 // doc-key: Sq3BlobC,Sq3BlobC-TOR,sCo,public
268
270 static Sq3BlobC* Open (Sq3LiteC* sq3lite, MK_STRN zDb, MK_STRN zTable, MK_STRN zColumn, MK_I64 iRow, MK_I32 flags);
271
273 Sq3BlobC (Sq3LiteC* sq3lite, MK_STRN zDb, MK_STRN zTable, MK_STRN zColumn, MK_I64 iRow, MK_I32 flags) : MkObjectC(CTOR(sq3lite, zDb, zTable, zColumn, iRow, flags)) {};
274
276 static Sq3BlobC* Open (Sq3LiteC* sq3lite, const std::string& zDb, const std::string& zTable, const std::string& zColumn, MK_I64 iRow, MK_I32 flags);
277
279 Sq3BlobC (Sq3LiteC* sq3lite, const std::string& zDb, const std::string& zTable, const std::string& zColumn, MK_I64 iRow, MK_I32 flags) : MkObjectC(CTOR(sq3lite, zDb, zTable, zColumn, iRow, flags)) {};
280
282 // Sq3BlobC_TOR_CC_API
283
284 // END-Sq3BlobC - created by 'cc_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
285
287
288 }; // class Sq3BlobC
289} // 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
Sq3Lite PACKAGE - toplevel package of the Programming-Language-Micro-Kernel (PLMK) …
#define unlikely(x)
signed long long MK_I64
int32_t MK_HDL
int32_t MK_NUM
signed int MK_I32
MK_PTRB * MK_PTR
const MK_STRB * MK_STRN
static MK_PTR atomObjCreate(MK_RT_ARGS MK_OBJ obj)
void atomInit(MK_OBJ obj)
static MK_PTR atomObjNew(MK_RT_ARGS MK_OBJ obj)
struct MkObjectS * MK_OBJ
#define MK_RT_CALL
#define MK_RT_ARGS
SQ3_BLOB getBLOB__null_allow() const
return the LibMsgqueObject from current Sq3BlobC instance
SQ3_BLOBN getBLOBN() const
(const) return the LibMsgqueObject from current Sq3BlobC instance
SQ3_BLOBN getBLOBN__null_allow() const
(const) return the LibMsgqueObject from current Sq3BlobC instance
static SQ3_BLOB getBLOB(const Sq3BlobC &clsHdl)
return LibMsgqueObject from current Sq3BlobC reference
bool Check() const
check if pointer is still valid
Sq3BlobC(SQ3_BLOB hdl)
static SQ3_BLOBN getBLOBN(const Sq3BlobC *clsHdl)
(const) return LibMsgqueObject from current Sq3BlobC pointer
static SQ3_BLOBN getBLOBN__null_allow(const Sq3BlobC &clsHdl)
(const) return LibMsgqueObject from current Sq3BlobC reference
static SQ3_BLOB getBLOB__null_allow(const Sq3BlobC &clsHdl)
return LibMsgqueObject from current Sq3BlobC reference
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 thread_local Sq3BlobC MK_NULL_REF
static SQ3_BLOBN getBLOBN(const Sq3BlobC &clsHdl)
(const) return LibMsgqueObject from current Sq3BlobC reference
static SQ3_BLOBN getBLOBN__null_allow(const Sq3BlobC *clsHdl)
(const) return LibMsgqueObject from current Sq3BlobC pointer
static SQ3_BLOB getBLOB__null_allow(Sq3BlobC *clsHdl)
return LibMsgqueObject from current Sq3BlobC pointer
static SQ3_BLOB getBLOB(Sq3BlobC *clsHdl)
return LibMsgqueObject from current Sq3BlobC pointer
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...
struct Sq3BlobS * SQ3_BLOB
class-shortcut for struct Sq3BlobS *, all shortcut using the XX_YYY syntax (only for public API) …
static bool Sq3BlobCheck(MK_MNGN mng)
check Sq3BlobS -> libmkkernel::MkObjectS::signature …
#define Sq3BlobC_X2obj(x)
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 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,...
Sq3BlobC(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,...
Sq3BlobC(Sq3LiteC *sq3lite, const std::string &zDb, const std::string &zTable, const std::string &zColumn, MK_I64 iRow, MK_I32 flags)
C++: [constructor,static] Sq3BlobC* Sq3BlobC::Open(Sq3LiteC* sq3lite, MK_STRN zDb,...
namespace for the CcSq3Lite "C++"-API
Struct to represent the data of the Sq3BlobC … → C-API: libsq3lite::Sq3BlobS
Struct to represent the data of the Sq3BlobC …