Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDgCommandContext.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (http://www.swig.org).
5// Version 4.0.2
6//
7// Do not make changes to this file unless you know what you are doing--modify
8// the SWIG interface file instead.
9//------------------------------------------------------------------------------
10
11namespace Teigha.TG {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdDgCommandContext(IntPtr cPtr, bool cMemoryOwn) : base(TG_DbPINVOKE.OdDgCommandContext_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDgCommandContext obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 protected override void Dispose(bool disposing) {
31 lock(this) {
32 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33 if (swigCMemOwn) {
34 swigCMemOwn = false;
36 }
37 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38 }
39 base.Dispose(disposing);
40 }
41 }
42
44 : this(TG_DbPINVOKE.new_OdDgCommandContext(), MemoryManager.GetMemoryManager().GetCurrentTransaction() == null)
45 {
46 MemoryTransaction mTr = MemoryManager.GetMemoryManager().GetCurrentTransaction(); // MemoryTransaction #1
47 if (null != mTr)
48 {
49 mTr.AddObject(new OdDgCommandContext(swigCPtr.Handle, true));
50 }
52 SwigDirectorConnect();
53 }
54
55 public static OdDgCommandContext cast(OdRxObject pObj) {// OdSmartPtr<OdDgCommandContext>
56 MemoryManager mMan = MemoryManager.GetMemoryManager();
57 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
59
60 OdDgCommandContext ret = null;
61 if (null != mTrans)
62 {
63 mTrans.AddObject((OdDgCommandContext)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgCommandContext),ptr, true));
64 ret = (OdDgCommandContext)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgCommandContext),ptr, false);
65 }
66 else
67 {
68 ret = (OdDgCommandContext)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgCommandContext),ptr, true);
69 }
70
72 return ret;
73}
74
75 public new static OdRxClass desc() {
76 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TG_DbPINVOKE.OdDgCommandContext_desc(),false); /*createInt 3_2*/
77
79 return ret;
80}
81
82 public override OdRxClass isA() {
83 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),(SwigDerivedClassHasMethod("isA", swigMethodTypes1) ? TG_DbPINVOKE.OdDgCommandContext_isASwigExplicitOdDgCommandContext(swigCPtr) : TG_DbPINVOKE.OdDgCommandContext_isA(swigCPtr)),false); /*createInt 3_2*/
84
86 return ret;
87}
88
89 public override OdRxObject queryX(OdRxClass protocolClass) {
90 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),(SwigDerivedClassHasMethod("queryX", swigMethodTypes0) ? TG_DbPINVOKE.OdDgCommandContext_queryXSwigExplicitOdDgCommandContext(swigCPtr, OdRxClass.getCPtr(protocolClass)) : TG_DbPINVOKE.OdDgCommandContext_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass))),false); /*createInt 3_2*/
91
93 return ret;
94}
95
96 public new static OdDgCommandContext createObject() {// OdSmartPtr<OdDgCommandContext>
97 MemoryManager mMan = MemoryManager.GetMemoryManager();
98 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
100
101 OdDgCommandContext ret = null;
102 if (null != mTrans)
103 {
104 mTrans.AddObject((OdDgCommandContext)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgCommandContext),ptr, true));
105 ret = (OdDgCommandContext)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgCommandContext),ptr, false);
106 }
107 else
108 {
109 ret = (OdDgCommandContext)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgCommandContext),ptr, true);
110 }
111
113 return ret;
114}
115
117 OdDgDatabase ret = (OdDgDatabase)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgDatabase),TG_DbPINVOKE.OdDgCommandContext_database(swigCPtr),false); /*createInt 3_2*/
118
120 return ret;
121}
122
124 OdDgUserIO ret = (OdDgUserIO)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgUserIO),TG_DbPINVOKE.OdDgCommandContext_dbUserIO(swigCPtr),false); /*createInt 3_2*/
125
127 return ret;
128}
129
130 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
131 string ret = TG_DbPINVOKE.OdDgCommandContext_getRealClassName(ptr /*SIMPLETYPE*/);
133 return ret;
134 }
135
136 private void SwigDirectorConnect() {
137 if (SwigDerivedClassHasMethod("queryX", swigMethodTypes0))
138 swigDelegate0 = new SwigDelegateOdDgCommandContext_0(SwigDirectorMethodqueryX);
139 if (SwigDerivedClassHasMethod("isA", swigMethodTypes1))
140 swigDelegate1 = new SwigDelegateOdDgCommandContext_1(SwigDirectorMethodisA);
141 if (SwigDerivedClassHasMethod("userIO", swigMethodTypes2))
142 swigDelegate2 = new SwigDelegateOdDgCommandContext_2(SwigDirectorMethoduserIO);
143 if (SwigDerivedClassHasMethod("funcIO", swigMethodTypes3))
144 swigDelegate3 = new SwigDelegateOdDgCommandContext_3(SwigDirectorMethodfuncIO);
145 if (SwigDerivedClassHasMethod("baseDatabase", swigMethodTypes4))
146 swigDelegate4 = new SwigDelegateOdDgCommandContext_4(SwigDirectorMethodbaseDatabase);
147 if (SwigDerivedClassHasMethod("setArbitraryData", swigMethodTypes5))
148 swigDelegate5 = new SwigDelegateOdDgCommandContext_5(SwigDirectorMethodsetArbitraryData);
149 if (SwigDerivedClassHasMethod("arbitraryData", swigMethodTypes6))
150 swigDelegate6 = new SwigDelegateOdDgCommandContext_6(SwigDirectorMethodarbitraryData);
151 if (SwigDerivedClassHasMethod("reset", swigMethodTypes7))
152 swigDelegate7 = new SwigDelegateOdDgCommandContext_7(SwigDirectorMethodreset);
153 if (SwigDerivedClassHasMethod("baseIO", swigMethodTypes8))
154 swigDelegate8 = new SwigDelegateOdDgCommandContext_8(SwigDirectorMethodbaseIO);
155 if (SwigDerivedClassHasMethod("cloneObject", swigMethodTypes9))
156 swigDelegate9 = new SwigDelegateOdDgCommandContext_9(SwigDirectorMethodcloneObject__SWIG_0);
157 if (SwigDerivedClassHasMethod("cloneObject", swigMethodTypes10))
158 swigDelegate10 = new SwigDelegateOdDgCommandContext_10(SwigDirectorMethodcloneObject__SWIG_1);
159 if (SwigDerivedClassHasMethod("cloneObject", swigMethodTypes11))
160 swigDelegate11 = new SwigDelegateOdDgCommandContext_11(SwigDirectorMethodcloneObject__SWIG_2);
161 TG_DbPINVOKE.OdDgCommandContext_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10, swigDelegate11);
162 }
163
164 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
165 global::System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic | global::System.Reflection.BindingFlags.Instance, null, methodTypes, null);
166 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(OdDgCommandContext));
167 return hasDerivedMethod;
168 }
169
170 private IntPtr SwigDirectorMethodqueryX(IntPtr protocolClass) {
171 return
172 // csdirectorout for OdRxObject*, OdRxObject&
174 (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),protocolClass,false) /*createInt 6_2*/ // csdirectorin for smart pointer
175)).Handle
176;
177 }
178
179 private IntPtr SwigDirectorMethodisA() {
180 return
181 // csdirectorout for OdRxClass*, OdRxClass&
182 OdRxClass.getCPtr(isA()).Handle
183;
184 }
185
186 private IntPtr SwigDirectorMethoduserIO() {
187 return
188 // csdirectorout for OdEdUserIO*, OdEdUserIO&
189 OdEdUserIO.getCPtr(userIO()).Handle
190;
191 }
192
193 private IntPtr SwigDirectorMethodfuncIO() {
194 return
195 // csdirectorout for OdEdFunctionIO*, OdEdFunctionIO&
197;
198 }
199
200 private IntPtr SwigDirectorMethodbaseDatabase() {
201 return
202 // csdirectorout for OdRxObject*, OdRxObject&
204;
205 }
206
207 private void SwigDirectorMethodsetArbitraryData([MarshalAs(UnmanagedType.LPWStr)]String szPathName, IntPtr pDataObj) {
208 setArbitraryData(szPathName,
209 (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),pDataObj,false) /*createInt 6_1*/ // csdirectorin for smart pointer
210);
211 }
212
213 private IntPtr SwigDirectorMethodarbitraryData([MarshalAs(UnmanagedType.LPWStr)]String szPathName) {
214 return OdRxObject.getCPtr(arbitraryData(szPathName)).Handle;
215 }
216
217 private void SwigDirectorMethodreset(IntPtr arg0, IntPtr arg1) {
218 reset(
219 (OdEdBaseIO)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdEdBaseIO),arg0,false) /*createInt 6_1*/ // csdirectorin for smart pointer
220,
221 (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),arg1,false) /*createInt 6_1*/ // csdirectorin for smart pointer
222);
223 }
224
225 private IntPtr SwigDirectorMethodbaseIO() {
226 return
227 // csdirectorout for OdEdBaseIO*, OdEdBaseIO&
228 OdEdBaseIO.getCPtr(baseIO()).Handle
229;
230 }
231
232 private IntPtr SwigDirectorMethodcloneObject__SWIG_0(IntPtr arg0, IntPtr arg1) {
234 (OdEdBaseIO)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdEdBaseIO),arg0,false) /*createInt 6_1*/ // csdirectorin for smart pointer
235,
236 (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),arg1,false) /*createInt 6_1*/ // csdirectorin for smart pointer
237)).Handle;
238 }
239
240 private IntPtr SwigDirectorMethodcloneObject__SWIG_1(IntPtr arg0) {
242 (OdEdBaseIO)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdEdBaseIO),arg0,false) /*createInt 6_1*/ // csdirectorin for smart pointer
243)).Handle;
244 }
245
246 private IntPtr SwigDirectorMethodcloneObject__SWIG_2() {
247 return OdEdCommandContext.getCPtr(cloneObject()).Handle;
248 }
249
250 public delegate IntPtr SwigDelegateOdDgCommandContext_0(IntPtr protocolClass);
251 public delegate IntPtr SwigDelegateOdDgCommandContext_1();
252 public delegate IntPtr SwigDelegateOdDgCommandContext_2();
253 public delegate IntPtr SwigDelegateOdDgCommandContext_3();
254 public delegate IntPtr SwigDelegateOdDgCommandContext_4();
255 public delegate void SwigDelegateOdDgCommandContext_5([MarshalAs(UnmanagedType.LPWStr)]String szPathName, IntPtr pDataObj);
256 public delegate IntPtr SwigDelegateOdDgCommandContext_6([MarshalAs(UnmanagedType.LPWStr)]String szPathName);
257 public delegate void SwigDelegateOdDgCommandContext_7(IntPtr arg0, IntPtr arg1);
258 public delegate IntPtr SwigDelegateOdDgCommandContext_8();
259 public delegate IntPtr SwigDelegateOdDgCommandContext_9(IntPtr arg0, IntPtr arg1);
260 public delegate IntPtr SwigDelegateOdDgCommandContext_10(IntPtr arg0);
261 public delegate IntPtr SwigDelegateOdDgCommandContext_11();
262
263 private SwigDelegateOdDgCommandContext_0 swigDelegate0;
264 private SwigDelegateOdDgCommandContext_1 swigDelegate1;
265 private SwigDelegateOdDgCommandContext_2 swigDelegate2;
266 private SwigDelegateOdDgCommandContext_3 swigDelegate3;
267 private SwigDelegateOdDgCommandContext_4 swigDelegate4;
268 private SwigDelegateOdDgCommandContext_5 swigDelegate5;
269 private SwigDelegateOdDgCommandContext_6 swigDelegate6;
270 private SwigDelegateOdDgCommandContext_7 swigDelegate7;
271 private SwigDelegateOdDgCommandContext_8 swigDelegate8;
272 private SwigDelegateOdDgCommandContext_9 swigDelegate9;
273 private SwigDelegateOdDgCommandContext_10 swigDelegate10;
274 private SwigDelegateOdDgCommandContext_11 swigDelegate11;
275
276 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(OdRxClass) };
277 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { };
278 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { };
279 private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { };
280 private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { };
281 private static global::System.Type[] swigMethodTypes5 = new global::System.Type[] { typeof(String), typeof(OdRxObject) };
282 private static global::System.Type[] swigMethodTypes6 = new global::System.Type[] { typeof(String) };
283 private static global::System.Type[] swigMethodTypes7 = new global::System.Type[] { typeof(OdEdBaseIO), typeof(OdRxObject) };
284 private static global::System.Type[] swigMethodTypes8 = new global::System.Type[] { };
285 private static global::System.Type[] swigMethodTypes9 = new global::System.Type[] { typeof(OdEdBaseIO), typeof(OdRxObject) };
286 private static global::System.Type[] swigMethodTypes10 = new global::System.Type[] { typeof(OdEdBaseIO) };
287 private static global::System.Type[] swigMethodTypes11 = new global::System.Type[] { };
288}
289
290}
static HandleRef getCPtr(OdEdBaseIO obj)
Definition: OdEdBaseIO.cs:25
static HandleRef getCPtr(OdEdCommandContext obj)
virtual OdEdFunctionIO funcIO()
virtual void reset(OdEdBaseIO arg0, OdRxObject arg1)
virtual OdRxObject arbitraryData(String szPathName)
virtual void setArbitraryData(String szPathName, OdRxObject pDataObj)
virtual OdEdCommandContext cloneObject()
static HandleRef getCPtr(OdEdFunctionIO obj)
static HandleRef getCPtr(OdEdUserIO obj)
Definition: OdEdUserIO.cs:25
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
delegate void SwigDelegateOdDgCommandContext_5([MarshalAs(UnmanagedType.LPWStr)]String szPathName, IntPtr pDataObj)
static string getRealClassName(IntPtr ptr)
delegate IntPtr SwigDelegateOdDgCommandContext_1()
delegate IntPtr SwigDelegateOdDgCommandContext_0(IntPtr protocolClass)
static new OdRxClass desc()
delegate IntPtr SwigDelegateOdDgCommandContext_9(IntPtr arg0, IntPtr arg1)
delegate IntPtr SwigDelegateOdDgCommandContext_10(IntPtr arg0)
delegate IntPtr SwigDelegateOdDgCommandContext_2()
static new OdDgCommandContext createObject()
static OdDgCommandContext cast(OdRxObject pObj)
delegate IntPtr SwigDelegateOdDgCommandContext_3()
delegate void SwigDelegateOdDgCommandContext_7(IntPtr arg0, IntPtr arg1)
override void Dispose(bool disposing)
delegate IntPtr SwigDelegateOdDgCommandContext_11()
delegate IntPtr SwigDelegateOdDgCommandContext_8()
delegate IntPtr SwigDelegateOdDgCommandContext_6([MarshalAs(UnmanagedType.LPWStr)]String szPathName)
delegate IntPtr SwigDelegateOdDgCommandContext_4()
override OdRxObject queryX(OdRxClass protocolClass)
static HandleRef getCPtr(OdDgCommandContext obj)
OdDgCommandContext(IntPtr cPtr, bool cMemoryOwn)
static global::System.Exception Retrieve()
static IntPtr OdDgCommandContext_database(HandleRef jarg1)
static IntPtr OdDgCommandContext_queryX(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDgCommandContext_queryXSwigExplicitOdDgCommandContext(HandleRef jarg1, HandleRef jarg2)
static void OdDgCommandContext_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, OdDgCommandContext.SwigDelegateOdDgCommandContext_0 delegate0, OdDgCommandContext.SwigDelegateOdDgCommandContext_1 delegate1, OdDgCommandContext.SwigDelegateOdDgCommandContext_2 delegate2, OdDgCommandContext.SwigDelegateOdDgCommandContext_3 delegate3, OdDgCommandContext.SwigDelegateOdDgCommandContext_4 delegate4, OdDgCommandContext.SwigDelegateOdDgCommandContext_5 delegate5, OdDgCommandContext.SwigDelegateOdDgCommandContext_6 delegate6, OdDgCommandContext.SwigDelegateOdDgCommandContext_7 delegate7, OdDgCommandContext.SwigDelegateOdDgCommandContext_8 delegate8, OdDgCommandContext.SwigDelegateOdDgCommandContext_9 delegate9, OdDgCommandContext.SwigDelegateOdDgCommandContext_10 delegate10, OdDgCommandContext.SwigDelegateOdDgCommandContext_11 delegate11)
static IntPtr OdDgCommandContext_dbUserIO(HandleRef jarg1)
static IntPtr OdDgCommandContext_cast(HandleRef jarg1)
static IntPtr OdDgCommandContext_isA(HandleRef jarg1)
static IntPtr OdDgCommandContext_createObject()
static void delete_OdDgCommandContext(HandleRef jarg1)
static IntPtr OdDgCommandContext_isASwigExplicitOdDgCommandContext(HandleRef jarg1)
static string OdDgCommandContext_getRealClassName(IntPtr jarg1)
static IntPtr OdDgCommandContext_desc()