Extended .NET SDK Documentation 2025 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 DelegateHolder.OnHoldSwigDirectorDelegates(this);
54 }
55
56 public static OdDgCommandContext cast(OdRxObject pObj) {// OdSmartPtr<OdDgCommandContext>
57 MemoryManager mMan = MemoryManager.GetMemoryManager();
58 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
60
61 OdDgCommandContext ret = null;
62 if (null != mTrans)
63 {
64 mTrans.AddObject((OdDgCommandContext)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgCommandContext),ptr, true));
65 ret = (OdDgCommandContext)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgCommandContext),ptr, false);
66 }
67 else
68 {
69 ret = (OdDgCommandContext)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgCommandContext),ptr, true);
70 }
71
73 return ret;
74}
75
76 public new static OdRxClass desc() {
77 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TG_DbPINVOKE.OdDgCommandContext_desc(),false); /*createInt 3_2*/
78
80 return ret;
81}
82
83 public override OdRxClass isA() {
84 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*/
85
87 return ret;
88}
89
90 public override OdRxObject queryX(OdRxClass protocolClass) {
91 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*/
92
94 return ret;
95}
96
97 public new static OdDgCommandContext createObject() {// OdSmartPtr<OdDgCommandContext>
98 MemoryManager mMan = MemoryManager.GetMemoryManager();
99 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
101
102 OdDgCommandContext ret = null;
103 if (null != mTrans)
104 {
105 mTrans.AddObject((OdDgCommandContext)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgCommandContext),ptr, true));
106 ret = (OdDgCommandContext)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgCommandContext),ptr, false);
107 }
108 else
109 {
110 ret = (OdDgCommandContext)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgCommandContext),ptr, true);
111 }
112
114 return ret;
115}
116
118 OdDgDatabase ret = (OdDgDatabase)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgDatabase),TG_DbPINVOKE.OdDgCommandContext_database(swigCPtr),false); /*createInt 3_2*/
119
121 return ret;
122}
123
125 OdDgUserIO ret = (OdDgUserIO)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgUserIO),TG_DbPINVOKE.OdDgCommandContext_dbUserIO(swigCPtr),false); /*createInt 3_2*/
126
128 return ret;
129}
130
131 protected static string getRealClassName(IntPtr ptr) {
132 string ret = TG_DbPINVOKE.OdDgCommandContext_getRealClassName(ptr /*SIMPLETYPE*/);
134 return ret;
135 }
136
137 private void SwigDirectorConnect() {
138 if (SwigDerivedClassHasMethod("queryX", swigMethodTypes0))
139 swigDelegate0 = new SwigDelegateOdDgCommandContext_0(SwigDirectorMethodqueryX);
140 if (SwigDerivedClassHasMethod("isA", swigMethodTypes1))
141 swigDelegate1 = new SwigDelegateOdDgCommandContext_1(SwigDirectorMethodisA);
142 if (SwigDerivedClassHasMethod("copyFrom", swigMethodTypes2))
143 swigDelegate2 = new SwigDelegateOdDgCommandContext_2(SwigDirectorMethodcopyFrom);
144 if (SwigDerivedClassHasMethod("userIO", swigMethodTypes3))
145 swigDelegate3 = new SwigDelegateOdDgCommandContext_3(SwigDirectorMethoduserIO);
146 if (SwigDerivedClassHasMethod("funcIO", swigMethodTypes4))
147 swigDelegate4 = new SwigDelegateOdDgCommandContext_4(SwigDirectorMethodfuncIO);
148 if (SwigDerivedClassHasMethod("baseDatabase", swigMethodTypes5))
149 swigDelegate5 = new SwigDelegateOdDgCommandContext_5(SwigDirectorMethodbaseDatabase);
150 if (SwigDerivedClassHasMethod("setArbitraryData", swigMethodTypes6))
151 swigDelegate6 = new SwigDelegateOdDgCommandContext_6(SwigDirectorMethodsetArbitraryData);
152 if (SwigDerivedClassHasMethod("arbitraryData", swigMethodTypes7))
153 swigDelegate7 = new SwigDelegateOdDgCommandContext_7(SwigDirectorMethodarbitraryData);
154 if (SwigDerivedClassHasMethod("reset", swigMethodTypes8))
155 swigDelegate8 = new SwigDelegateOdDgCommandContext_8(SwigDirectorMethodreset);
156 if (SwigDerivedClassHasMethod("baseIO", swigMethodTypes9))
157 swigDelegate9 = new SwigDelegateOdDgCommandContext_9(SwigDirectorMethodbaseIO);
158 if (SwigDerivedClassHasMethod("cloneObject", swigMethodTypes10))
159 swigDelegate10 = new SwigDelegateOdDgCommandContext_10(SwigDirectorMethodcloneObject__SWIG_0);
160 if (SwigDerivedClassHasMethod("cloneObject", swigMethodTypes11))
161 swigDelegate11 = new SwigDelegateOdDgCommandContext_11(SwigDirectorMethodcloneObject__SWIG_1);
162 if (SwigDerivedClassHasMethod("cloneObject", swigMethodTypes12))
163 swigDelegate12 = new SwigDelegateOdDgCommandContext_12(SwigDirectorMethodcloneObject__SWIG_2);
164 TG_DbPINVOKE.OdDgCommandContext_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10, swigDelegate11, swigDelegate12);
165 }
166
167 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
168 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);
169 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(OdDgCommandContext));
170 return hasDerivedMethod;
171 }
172
173 private IntPtr SwigDirectorMethodqueryX(IntPtr protocolClass) {
174 return
175 // csdirectorout for OdRxObject*, OdRxObject&
177 (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),protocolClass,false) /*createInt 6_2*/ // csdirectorin for smart pointer
178)).Handle
179;
180 }
181
182 private IntPtr SwigDirectorMethodisA() {
183 return
184 // csdirectorout for OdRxClass*, OdRxClass&
185 OdRxClass.getCPtr(isA()).Handle
186;
187 }
188
189 private void SwigDirectorMethodcopyFrom(IntPtr pSource) {
190 copyFrom(
191 (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),pSource,false) /*createInt 6_2*/ // csdirectorin for smart pointer
192);
193 }
194
195 private IntPtr SwigDirectorMethoduserIO() {
196 return
197 // csdirectorout for OdEdUserIO*, OdEdUserIO&
198 OdEdUserIO.getCPtr(userIO()).Handle
199;
200 }
201
202 private IntPtr SwigDirectorMethodfuncIO() {
203 return
204 // csdirectorout for OdEdFunctionIO*, OdEdFunctionIO&
206;
207 }
208
209 private IntPtr SwigDirectorMethodbaseDatabase() {
210 return
211 // csdirectorout for OdRxObject*, OdRxObject&
213;
214 }
215
216 private void SwigDirectorMethodsetArbitraryData([MarshalAs(UnmanagedType.LPWStr)]String szPathName, IntPtr pDataObj) {
217 setArbitraryData(szPathName,
218 (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),pDataObj,false) /*createInt 6_1*/ // csdirectorin for smart pointer
219);
220 }
221
222 private IntPtr SwigDirectorMethodarbitraryData([MarshalAs(UnmanagedType.LPWStr)]String szPathName) {
223 return OdRxObject.getCPtr(arbitraryData(szPathName)).Handle;
224 }
225
226 private void SwigDirectorMethodreset(IntPtr arg0, IntPtr arg1) {
227 reset(
228 (OdEdBaseIO)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdEdBaseIO),arg0,false) /*createInt 6_1*/ // csdirectorin for smart pointer
229,
230 (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),arg1,false) /*createInt 6_1*/ // csdirectorin for smart pointer
231);
232 }
233
234 private IntPtr SwigDirectorMethodbaseIO() {
235 return
236 // csdirectorout for OdEdBaseIO*, OdEdBaseIO&
237 OdEdBaseIO.getCPtr(baseIO()).Handle
238;
239 }
240
241 private IntPtr SwigDirectorMethodcloneObject__SWIG_0(IntPtr arg0, IntPtr arg1) {
243 (OdEdBaseIO)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdEdBaseIO),arg0,false) /*createInt 6_1*/ // csdirectorin for smart pointer
244,
245 (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),arg1,false) /*createInt 6_1*/ // csdirectorin for smart pointer
246)).Handle;
247 }
248
249 private IntPtr SwigDirectorMethodcloneObject__SWIG_1(IntPtr arg0) {
251 (OdEdBaseIO)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdEdBaseIO),arg0,false) /*createInt 6_1*/ // csdirectorin for smart pointer
252)).Handle;
253 }
254
255 private IntPtr SwigDirectorMethodcloneObject__SWIG_2() {
256 return OdEdCommandContext.getCPtr(cloneObject()).Handle;
257 }
258
259 public delegate IntPtr SwigDelegateOdDgCommandContext_0(IntPtr protocolClass);
260 public delegate IntPtr SwigDelegateOdDgCommandContext_1();
261 public delegate void SwigDelegateOdDgCommandContext_2(IntPtr pSource);
262 public delegate IntPtr SwigDelegateOdDgCommandContext_3();
263 public delegate IntPtr SwigDelegateOdDgCommandContext_4();
264 public delegate IntPtr SwigDelegateOdDgCommandContext_5();
265 public delegate void SwigDelegateOdDgCommandContext_6([MarshalAs(UnmanagedType.LPWStr)]String szPathName, IntPtr pDataObj);
266 public delegate IntPtr SwigDelegateOdDgCommandContext_7([MarshalAs(UnmanagedType.LPWStr)]String szPathName);
267 public delegate void SwigDelegateOdDgCommandContext_8(IntPtr arg0, IntPtr arg1);
268 public delegate IntPtr SwigDelegateOdDgCommandContext_9();
269 public delegate IntPtr SwigDelegateOdDgCommandContext_10(IntPtr arg0, IntPtr arg1);
270 public delegate IntPtr SwigDelegateOdDgCommandContext_11(IntPtr arg0);
271 public delegate IntPtr SwigDelegateOdDgCommandContext_12();
272
273 private SwigDelegateOdDgCommandContext_0 swigDelegate0;
274 private SwigDelegateOdDgCommandContext_1 swigDelegate1;
275 private SwigDelegateOdDgCommandContext_2 swigDelegate2;
276 private SwigDelegateOdDgCommandContext_3 swigDelegate3;
277 private SwigDelegateOdDgCommandContext_4 swigDelegate4;
278 private SwigDelegateOdDgCommandContext_5 swigDelegate5;
279 private SwigDelegateOdDgCommandContext_6 swigDelegate6;
280 private SwigDelegateOdDgCommandContext_7 swigDelegate7;
281 private SwigDelegateOdDgCommandContext_8 swigDelegate8;
282 private SwigDelegateOdDgCommandContext_9 swigDelegate9;
283 private SwigDelegateOdDgCommandContext_10 swigDelegate10;
284 private SwigDelegateOdDgCommandContext_11 swigDelegate11;
285 private SwigDelegateOdDgCommandContext_12 swigDelegate12;
286
287 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(OdRxClass) };
288 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { };
289 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { typeof(OdRxObject) };
290 private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { };
291 private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { };
292 private static global::System.Type[] swigMethodTypes5 = new global::System.Type[] { };
293 private static global::System.Type[] swigMethodTypes6 = new global::System.Type[] { typeof(String), typeof(OdRxObject) };
294 private static global::System.Type[] swigMethodTypes7 = new global::System.Type[] { typeof(String) };
295 private static global::System.Type[] swigMethodTypes8 = new global::System.Type[] { typeof(OdEdBaseIO), typeof(OdRxObject) };
296 private static global::System.Type[] swigMethodTypes9 = new global::System.Type[] { };
297 private static global::System.Type[] swigMethodTypes10 = new global::System.Type[] { typeof(OdEdBaseIO), typeof(OdRxObject) };
298 private static global::System.Type[] swigMethodTypes11 = new global::System.Type[] { typeof(OdEdBaseIO) };
299 private static global::System.Type[] swigMethodTypes12 = new global::System.Type[] { };
300}
301
302}
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
OdRxObject(IntPtr cPtr, bool cMemoryOwn)
Definition OdRxObject.cs:21
virtual void copyFrom(OdRxObject pSource)
static HandleRef getCPtr(OdRxObject obj)
Definition OdRxObject.cs:26
delegate IntPtr SwigDelegateOdDgCommandContext_9()
static string getRealClassName(IntPtr ptr)
delegate IntPtr SwigDelegateOdDgCommandContext_1()
delegate IntPtr SwigDelegateOdDgCommandContext_12()
delegate IntPtr SwigDelegateOdDgCommandContext_11(IntPtr arg0)
delegate IntPtr SwigDelegateOdDgCommandContext_0(IntPtr protocolClass)
static new OdRxClass desc()
static new OdDgCommandContext createObject()
static OdDgCommandContext cast(OdRxObject pObj)
delegate IntPtr SwigDelegateOdDgCommandContext_5()
delegate IntPtr SwigDelegateOdDgCommandContext_3()
delegate void SwigDelegateOdDgCommandContext_8(IntPtr arg0, IntPtr arg1)
delegate IntPtr SwigDelegateOdDgCommandContext_7([MarshalAs(UnmanagedType.LPWStr)]String szPathName)
override void Dispose(bool disposing)
delegate void SwigDelegateOdDgCommandContext_6([MarshalAs(UnmanagedType.LPWStr)]String szPathName, IntPtr pDataObj)
delegate IntPtr SwigDelegateOdDgCommandContext_10(IntPtr arg0, IntPtr arg1)
delegate IntPtr SwigDelegateOdDgCommandContext_4()
override OdRxObject queryX(OdRxClass protocolClass)
static HandleRef getCPtr(OdDgCommandContext obj)
OdDgCommandContext(IntPtr cPtr, bool cMemoryOwn)
delegate void SwigDelegateOdDgCommandContext_2(IntPtr pSource)
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 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 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, OdDgCommandContext.SwigDelegateOdDgCommandContext_12 delegate12)
static IntPtr OdDgCommandContext_desc()