theSq3Lite 10.0
Loading...
Searching...
No Matches
Sq3FileC_cs.cs
Go to the documentation of this file.
1
9/* LABEL-INIT */
10
11using csmkkernel;
12
13/* LABEL-START */
14
15using System;
16using System.Reflection;
17using System.Runtime.InteropServices;
18using System.Runtime.CompilerServices;
19using System.Collections.Generic;
20using System.Threading;
21
22namespace cssq3lite {
23
27#if META_IS_OBJECT
28 public partial class Sq3FileC
29#else
30 public partial class Sq3FileC : MkObjectC
31#endif
32 {
33 private readonly static ConstructorInfo ctor = getCtor(typeof(Sq3FileC));
34 private readonly static ThreadLocal<Sq3FileC> MK_NULL = new ThreadLocal<Sq3FileC>(() => {
35 return (Sq3FileC) atomSelfNull(ctor);
36 });
37
38 public static Sq3FileC Sq3FileC_ObjNew (IntPtr hdl) {
39 return hdl != IntPtr.Zero ? (Sq3FileC) atomObjNew(typeof(Sq3FileC), ctor, hdl) : MK_NULL.Value;
40 }
41
42 private static Sq3FileC Sq3FileC_ObjCreate (IntPtr hdl) {
43 return hdl != IntPtr.Zero ? (Sq3FileC) atomObjCreate(typeof(Sq3FileC), ctor, hdl) : MK_NULL.Value;
44 }
45
46 private static IntPtr Sq3FileC_SelfCreate (IntPtr mkrt, IntPtr obj, IntPtr env) {
47 return atomSelfCreate(ctor, obj, env);
48 }
49
50 private static void Sq3FileC_SelfUnlink (IntPtr mkrt, IntPtr self, IntPtr env) {
51 atomSelfUnlink(self, env);
52 }
53
54 internal static void SetupThreadFILE (IntPtr mkrt) {
55 Sq3.Sq3CsTypeUpdate(mkrt, Sq3CsTypeLookupE.FILE, Sq3FileC_SelfCreate, Sq3FileC_SelfUnlink);
56 }
57
58 #if !META_STATIC_OVERWRITE
59
60 static Sq3FileC() {
61 // M0("Sq3FileC");
62 Sq3Lite.Setup();
63 SetupThreadFILE(IntPtr.Zero);
64 }
65
66 #endif
67/* LABEL-END */
68
69 internal Sq3FileC (IntPtr objP) : base(objP) {
70 }
71
72 } // END - class "Sq3FileC"
73
74 // BEGIN-Sq3FileC - created by 'cs_MqC.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
75
76 public partial class Sq3FileC {
77
81
82 // doc-key: Sq3FileC,Sq3FileC-Class-Export,sc_
83
85 new public static Sq3FileC HandleResolve (Int32 netHdl) {
86 IntPtr __retVal__L = Sq3.Sq3FileHandleResolve(IntPtr.Zero, netHdl);
87 return Sq3FileC.Sq3FileC_ObjNew(__retVal__L);
88 }
89
90 // doc-key: Sq3FileC,Sq3FileC-Class-Export,om_
91
92 // skip class-overload: HandleGet = Sq3FileHandleGet → MkObjectHandleGet
93
95 // Sq3FileC_Class_CS_API
96 }
97
98 public partial class Sq3FileC {
99
103
104 // doc-key: Sq3FileC,Sq3FileC-Class-Introspection,oc_
105
107 new public Sq3FileC Next () {
108 IntPtr __retVal__L = Sq3.Sq3FileNext(hdl);
109 return Sq3FileC.Sq3FileC_ObjNew(__retVal__L);
110 }
111
113 new public Sq3FileC Prev () {
114 IntPtr __retVal__L = Sq3.Sq3FilePrev(hdl);
115 return Sq3FileC.Sq3FileC_ObjNew(__retVal__L);
116 }
117
118 // doc-key: Sq3FileC,Sq3FileC-Class-Introspection,sc_
119
121 new public static Sq3FileC Instances () {
122 IntPtr __retVal__L = Sq3.Sq3FileInstances(IntPtr.Zero);
123 return Sq3FileC.Sq3FileC_ObjNew(__retVal__L);
124 }
125
127 // Sq3FileC_Class_CS_API
128 }
129
130 public partial class Sq3FileC {
131
135
136 // doc-key: Sq3FileC,Sq3FileC-Class-Misc,sc_
137
139 new public static Sq3FileC GetNull () {
140 IntPtr __retVal__L = Sq3.Sq3FileGetNull();
141 return Sq3FileC.Sq3FileC_ObjNew(__retVal__L);
142 }
143
145 // Sq3FileC_Class_CS_API
146 }
147
148 public partial class Sq3FileC {
149
153
154 // doc-key: Sq3FileC,Sq3FileC-TOR,sCc
155
157 public static Sq3FileC DatabaseObject (string X) {
158 IntPtr X_cstr = Marshal.StringToHGlobalAnsi(X);
159 IntPtr __retVal__L = Sq3.Sq3FileDatabaseObject(X_cstr);
160 Marshal.FreeHGlobal(X_cstr);
161 if (__retVal__L == IntPtr.Zero) {
162 throw new MkInitError("Sq3FileC.DatabaseObject");
163 }
164 return Sq3FileC.Sq3FileC_ObjCreate(__retVal__L);
165 }
166
168 // Sq3FileC_TOR_CS_API
169 }
170
171 // END-Sq3FileC - created by 'cs_MqC.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
172
173} // END - namespace "cssq3lite"
static object atomObjNew(Type type, ConstructorInfo ctor, IntPtr obj)
static object atomObjCreate(Type type, ConstructorInfo ctor, IntPtr obj)
static void atomSelfUnlink(IntPtr self, IntPtr env)
static object atomSelfNull(ConstructorInfo ctor)
static ConstructorInfo getCtor(Type type)
static IntPtr atomSelfCreate(ConstructorInfo ctor, IntPtr obj, IntPtr env)
Sq3FileC - the class known as sq3file or File defined by Sq3FileS …
static Sq3FileC Sq3FileC_ObjNew(IntPtr hdl)
#define MK_NULL
new static Sq3FileC HandleResolve(Int32 netHdl)
C#: [static] Sq3FileC Sq3FileC.HandleResolve(Int32 netHdl) → C-API Handle-Resolve-Slot - return ...
new Sq3FileC Prev()
C#: Sq3FileC file.Prev() → C-API get previous instance from linked-list of Sq3FileS type
new static Sq3FileC Instances()
C#: [static] Sq3FileC Sq3FileC.Instances() → C-API get head-instance from linked-list of Sq3File...
new Sq3FileC Next()
C#: Sq3FileC file.Next() → C-API get next instance from linked-list of Sq3FileS type
new static Sq3FileC GetNull()
C#: [static] Sq3FileC Sq3FileC.GetNull() → C-API Null-Slot - return a Sq3FileC typed NULL instan...
static Sq3FileC DatabaseObject(string X)
C#: [constructor,static] Sq3FileC Sq3FileC.DatabaseObject(string X) → C-API Database File Corres...
static SQ3_LITE Sq3Lite(MK_MNG mng)
cast a unknown-object into an Sq3LiteS pointer or NULL if not possible