theSq3Lite 10.0
Loading...
Searching...
No Matches
Sq3FileC_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 } Sq3FileC_A;
21
24 class Sq3FileC : public MkObjectC {
25
26 friend class Sq3Lite;
27
28 static inline MK_PTR Sq3FileC_selfCreateTLS (MK_OBJ obj);
29
30/* LABEL-START */
31
34
35 public:
36 static thread_local Sq3FileC MK_NULL_REF;
37
38 private:
39
40 static Sq3FileC* Sq3FileC_GetSelf (SQ3_FILE hdl) {
41 return (hdl != NULL ? static_cast<Sq3FileC*>((*Sq3FileC_X2obj(hdl)).self) : &MK_NULL_REF);
42 }
43
44 #ifdef Sq3FileC_selfCreate_overload
45 static MK_PTR Sq3FileC_selfCreate (MK_RT_ARGS MK_OBJ obj, MK_PTR const env);
46 #else
47 static MK_PTR Sq3FileC_selfCreate (MK_RT_ARGS MK_OBJ obj, MK_PTR const env) {
48 return new Sq3FileC(obj);
49 }
50 #endif
51
52 static void Sq3FileC_selfDelete (MK_RT_ARGS MK_PTR self, MK_PTR env) {
53 delete static_cast<Sq3FileC*>(self);
54 }
55
56 static void Sq3FileC_selfUnlink (MK_RT_ARGS MK_PTR self, MK_PTR env) {
57 Sq3FileC* selfO = static_cast<Sq3FileC*>(self);
58 selfO->atomUnlink();
59 }
60
61 void Sq3FileC_Init (SQ3_FILE hdl) { atomInit(Sq3FileC_X2obj(hdl)); };
62
63
64 static Sq3FileC* Sq3FileC_ObjCreate (MK_RT_ARGS SQ3_FILE hdl) {
65 return static_cast<Sq3FileC*>(MkObjectC::atomObjCreate(MK_RT_CALL Sq3FileC_X2obj(hdl)));
66 }
67
68#ifndef META_IS_MkObjectC
69 Sq3FileC (MK_OBJ obj) : MkObjectC(obj) {};
70#endif
71
72 public:
73
74#ifndef META_IS_MkObjectC
76#endif
77
82
84 SQ3_FILE getFILE() const {
85 SQ3_FILE ret = reinterpret_cast<SQ3_FILE>(hdl);
86 if (unlikely(ret == NULL)) InstHdlIsNullError();
87 return ret;
88 };
89
92 return reinterpret_cast<SQ3_FILE>(hdl);
93 };
94
97 SQ3_FILEN ret = reinterpret_cast<SQ3_FILEN>(hdl);
98 if (unlikely(ret == NULL)) InstHdlIsNullError();
99 return ret;
100 };
101
104 return reinterpret_cast<SQ3_FILEN>(hdl);
105 };
106
108 static SQ3_FILE getFILE(Sq3FileC* clsHdl) {
109 SQ3_FILE ret = clsHdl ? reinterpret_cast<SQ3_FILE>(clsHdl->hdl) : NULL;
110 if (unlikely(ret == NULL)) ClassHdlIsNullError(Sq3FileC);
111 return ret;
112 };
113
116 return clsHdl ? reinterpret_cast<SQ3_FILE>(clsHdl->hdl) : NULL;
117 };
118
120 static SQ3_FILEN getFILEN(const Sq3FileC* clsHdl) {
121 SQ3_FILEN ret = clsHdl ? reinterpret_cast<SQ3_FILEN>(clsHdl->hdl) : NULL;
122 if (unlikely(ret == NULL)) ClassHdlIsNullError(Sq3FileC);
123 return ret;
124 };
125
128 return clsHdl ? reinterpret_cast<SQ3_FILEN>(clsHdl->hdl) : NULL;
129 };
130
132 static SQ3_FILE getFILE(const Sq3FileC& clsHdl) {
133 return clsHdl.getFILE();
134 };
135
137 static SQ3_FILE getFILE__null_allow(const Sq3FileC& clsHdl) {
138 return clsHdl.getFILE__null_allow();
139 };
140
142 static SQ3_FILEN getFILEN(const Sq3FileC& clsHdl) {
143 return clsHdl.getFILEN();
144 };
145
148 return clsHdl.getFILEN__null_allow();
149 };
150
152 bool Check() const {
153 return (hdl && Sq3FileCheck(hdl));
154 };
155
156/* LABEL-END */
157
158 public:
159
160/* no COPY constructor
161 Sq3FileC (const Sq3FileC* hdl);
162 Sq3FileC (const Sq3FileC& ref);
163 Sq3FileC& operator= (const Sq3FileC& buf);
164 Sq3FileC& operator= (const Sq3FileC* buf);
165*/
166
167 // BEGIN-Sq3FileC - 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: Sq3FileC,Sq3FileC-Class-Export,sc_,public
176
178 static Sq3FileC* HandleResolve (MK_HDL netHdl);
179
180 // doc-key: Sq3FileC,Sq3FileC-Class-Export,om_,public
181
182 // skip class-overload: MK_HDL HandleGet ()
183
185 // Sq3FileC_Class_CC_API
186
190
191 public:
192
193 // doc-key: Sq3FileC,Sq3FileC-Class-Introspection,oc_,public
194
196 Sq3FileC* Next ();
197
199 Sq3FileC* Prev ();
200
201 // doc-key: Sq3FileC,Sq3FileC-Class-Introspection,sc_,public
202
204 static Sq3FileC* Instances ();
205
207 // Sq3FileC_Class_CC_API
208
212
213 public:
214
215 // doc-key: Sq3FileC,Sq3FileC-Class-Misc,sc_,public
216
218 static Sq3FileC* GetNull ();
219
221 // Sq3FileC_Class_CC_API
222
226
227 public:
228
229 // doc-key: Sq3FileC,Sq3FileC-TOR,sCc,public
230
232 static Sq3FileC* DatabaseObject (MK_STRN X);
233
235 static Sq3FileC* DatabaseObject (const std::string& X);
236
238 // Sq3FileC_TOR_CC_API
239
240 // END-Sq3FileC - created by 'cc_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
241
243
244 }; // class Sq3FileC
245} // namespace ccsq3lite
Struct to represent the data of the Sq3FileC … → C-API: libsq3lite::Sq3FileS
Sq3Lite PACKAGE - toplevel package of the Programming-Language-Micro-Kernel (PLMK) …
#define unlikely(x)
int32_t MK_HDL
int32_t MK_NUM
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
static SQ3_FILE getFILE(const Sq3FileC &clsHdl)
return LibMsgqueObject from current Sq3FileC reference
static SQ3_FILE getFILE(Sq3FileC *clsHdl)
return LibMsgqueObject from current Sq3FileC pointer
SQ3_FILE getFILE__null_allow() const
return the LibMsgqueObject from current Sq3FileC instance
SQ3_FILEN getFILEN() const
(const) return the LibMsgqueObject from current Sq3FileC instance
static SQ3_FILE getFILE__null_allow(Sq3FileC *clsHdl)
return LibMsgqueObject from current Sq3FileC pointer
static thread_local Sq3FileC MK_NULL_REF
static Sq3FileC * Sq3FileC_ObjNew(MK_RT_ARGS SQ3_FILE hdl)
return Sq3FileC from LibMsgqueObject
static SQ3_FILEN getFILEN__null_allow(const Sq3FileC &clsHdl)
(const) return LibMsgqueObject from current Sq3FileC reference
static SQ3_FILE getFILE__null_allow(const Sq3FileC &clsHdl)
return LibMsgqueObject from current Sq3FileC reference
static SQ3_FILEN getFILEN(const Sq3FileC &clsHdl)
(const) return LibMsgqueObject from current Sq3FileC reference
SQ3_FILEN getFILEN__null_allow() const
(const) return the LibMsgqueObject from current Sq3FileC instance
SQ3_FILE getFILE() const
return the LibMsgqueObject from current Sq3FileC instance
Sq3FileC(SQ3_FILE hdl)
bool Check() const
check if pointer is still valid
static SQ3_FILEN getFILEN__null_allow(const Sq3FileC *clsHdl)
(const) return LibMsgqueObject from current Sq3FileC pointer
static SQ3_FILEN getFILEN(const Sq3FileC *clsHdl)
(const) return LibMsgqueObject from current Sq3FileC pointer
static Sq3FileC * Instances()
C++: [static] Sq3FileC* Sq3FileC::Instances() → C-API get head-instance from linked-list of Sq3F...
static Sq3FileC * HandleResolve(MK_HDL netHdl)
C++: [static] Sq3FileC* Sq3FileC::HandleResolve(MK_HDL netHdl) → C-API Handle-Resolve-Slot - ret...
Sq3FileC * Prev()
C++: Sq3FileC* file.Prev() → C-API get previous instance from linked-list of Sq3FileS type
Sq3FileC * Next()
C++: Sq3FileC* file.Next() → C-API get next instance from linked-list of Sq3FileS type
static Sq3FileC * GetNull()
C++: [static] Sq3FileC* Sq3FileC::GetNull() → C-API Null-Slot - return a Sq3FileC typed NULL ins...
struct Sq3FileS * SQ3_FILE
class-shortcut for struct Sq3FileS *, all shortcut using the XX_YYY syntax (only for public API) …
#define Sq3FileC_X2obj(x)
static bool Sq3FileCheck(MK_MNGN mng)
check Sq3FileS -> libmkkernel::MkObjectS::signature …
static Sq3FileC * DatabaseObject(MK_STRN X)
C++: [constructor,static] Sq3FileC* Sq3FileC::DatabaseObject(MK_STRN X) → C-API Database File Co...
namespace for the CcSq3Lite "C++"-API
Struct to represent the data of the Sq3FileC … → C-API: libsq3lite::Sq3FileS
Struct to represent the data of the Sq3FileC …