Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdEdFunctionIO.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.Core {
12
13using System;
14using System.Runtime.InteropServices;
15
16public class OdEdFunctionIO : OdRxObject {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdEdFunctionIO(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdEdFunctionIO_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdEdFunctionIO obj) {
26 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
27 }
28
29 protected override void Dispose(bool disposing) {
30 lock(this) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
32 if (swigCMemOwn) {
33 swigCMemOwn = false;
35 }
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
37 }
38 base.Dispose(disposing);
39 }
40 }
41
43 : this(GlobalsPINVOKE.new_OdEdFunctionIO(), MemoryManager.GetMemoryManager().GetCurrentTransaction() == null)
44 {
45 MemoryTransaction mTr = MemoryManager.GetMemoryManager().GetCurrentTransaction(); // MemoryTransaction #1
46 if (null != mTr)
47 {
48 mTr.AddObject(new OdEdFunctionIO(swigCPtr.Handle, true));
49 }
51 SwigDirectorConnect();
52 DelegateHolder.OnHoldSwigDirectorDelegates(this);
53 }
54
55 public static OdEdFunctionIO cast(OdRxObject pObj) {// OdSmartPtr<OdEdFunctionIO>
56 MemoryManager mMan = MemoryManager.GetMemoryManager();
57 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
59
60 OdEdFunctionIO ret = null;
61 if (null != mTrans)
62 {
63 mTrans.AddObject((OdEdFunctionIO)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdEdFunctionIO),ptr, true));
64 ret = (OdEdFunctionIO)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdEdFunctionIO),ptr, false);
65 }
66 else
67 {
68 ret = (OdEdFunctionIO)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdEdFunctionIO),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),GlobalsPINVOKE.OdEdFunctionIO_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) ? GlobalsPINVOKE.OdEdFunctionIO_isASwigExplicitOdEdFunctionIO(swigCPtr) : GlobalsPINVOKE.OdEdFunctionIO_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) ? GlobalsPINVOKE.OdEdFunctionIO_queryXSwigExplicitOdEdFunctionIO(swigCPtr, OdRxClass.getCPtr(protocolClass)) : GlobalsPINVOKE.OdEdFunctionIO_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass))),false); /*createInt 3_2*/
91
93 return ret;
94}
95
96 public static OdEdFunctionIO createObject() {// OdSmartPtr<OdEdFunctionIO>
97 MemoryManager mMan = MemoryManager.GetMemoryManager();
98 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
100
101 OdEdFunctionIO ret = null;
102 if (null != mTrans)
103 {
104 mTrans.AddObject((OdEdFunctionIO)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdEdFunctionIO),ptr, true));
105 ret = (OdEdFunctionIO)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdEdFunctionIO),ptr, false);
106 }
107 else
108 {
109 ret = (OdEdFunctionIO)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdEdFunctionIO),ptr, true);
110 }
111
113 return ret;
114}
115
120
121 public virtual OdRxObject param() {// OdRxObjectPtr
122 MemoryManager mMan = MemoryManager.GetMemoryManager();
123 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
124 IntPtr ptr = GlobalsPINVOKE.OdEdFunctionIO_param(swigCPtr);
125
126 OdRxObject ret = null;
127 if (null != mTrans)
128 {
129 mTrans.AddObject((OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true));
130 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, false);
131 }
132 else
133 {
134 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true);
135 }
136
138 return ret;
139}
140
145
146 public virtual OdRxObject result() {// OdRxObjectPtr
147 MemoryManager mMan = MemoryManager.GetMemoryManager();
148 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
149 IntPtr ptr = GlobalsPINVOKE.OdEdFunctionIO_result(swigCPtr);
150
151 OdRxObject ret = null;
152 if (null != mTrans)
153 {
154 mTrans.AddObject((OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true));
155 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, false);
156 }
157 else
158 {
159 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true);
160 }
161
163 return ret;
164}
165
166 protected static string getRealClassName(IntPtr ptr) {
167 string ret = GlobalsPINVOKE.OdEdFunctionIO_getRealClassName(ptr /*SIMPLETYPE*/);
169 return ret;
170 }
171
172 private void SwigDirectorConnect() {
173 if (SwigDerivedClassHasMethod("queryX", swigMethodTypes0))
174 swigDelegate0 = new SwigDelegateOdEdFunctionIO_0(SwigDirectorMethodqueryX);
175 if (SwigDerivedClassHasMethod("isA", swigMethodTypes1))
176 swigDelegate1 = new SwigDelegateOdEdFunctionIO_1(SwigDirectorMethodisA);
177 if (SwigDerivedClassHasMethod("copyFrom", swigMethodTypes2))
178 swigDelegate2 = new SwigDelegateOdEdFunctionIO_2(SwigDirectorMethodcopyFrom);
179 if (SwigDerivedClassHasMethod("setParam", swigMethodTypes3))
180 swigDelegate3 = new SwigDelegateOdEdFunctionIO_3(SwigDirectorMethodsetParam);
181 if (SwigDerivedClassHasMethod("param", swigMethodTypes4))
182 swigDelegate4 = new SwigDelegateOdEdFunctionIO_4(SwigDirectorMethodparam);
183 if (SwigDerivedClassHasMethod("setResult", swigMethodTypes5))
184 swigDelegate5 = new SwigDelegateOdEdFunctionIO_5(SwigDirectorMethodsetResult);
185 if (SwigDerivedClassHasMethod("result", swigMethodTypes6))
186 swigDelegate6 = new SwigDelegateOdEdFunctionIO_6(SwigDirectorMethodresult);
187 GlobalsPINVOKE.OdEdFunctionIO_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6);
188 }
189
190 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
191 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);
192 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(OdEdFunctionIO));
193 return hasDerivedMethod;
194 }
195
196 private IntPtr SwigDirectorMethodqueryX(IntPtr protocolClass) {
197 return
198 // csdirectorout for OdRxObject*, OdRxObject&
199 OdRxObject.getCPtr(queryX(
200 (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),protocolClass,false) /*createInt 6_2*/ // csdirectorin for smart pointer
201)).Handle
202;
203 }
204
205 private IntPtr SwigDirectorMethodisA() {
206 return
207 // csdirectorout for OdRxClass*, OdRxClass&
208 OdRxClass.getCPtr(isA()).Handle
209;
210 }
211
212 private void SwigDirectorMethodcopyFrom(IntPtr pSource) {
213 copyFrom(
214 (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),pSource,false) /*createInt 6_2*/ // csdirectorin for smart pointer
215);
216 }
217
218 private void SwigDirectorMethodsetParam(IntPtr pParamObj) {
219 setParam(
220 (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),pParamObj,false) /*createInt 6_1*/ // csdirectorin for smart pointer
221);
222 }
223
224 private IntPtr SwigDirectorMethodparam() {
225 return OdRxObject.getCPtr(param()).Handle;
226 }
227
228 private void SwigDirectorMethodsetResult(IntPtr pResultObj) {
229 setResult(
230 (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),pResultObj,false) /*createInt 6_1*/ // csdirectorin for smart pointer
231);
232 }
233
234 private IntPtr SwigDirectorMethodresult() {
235 return OdRxObject.getCPtr(result()).Handle;
236 }
237
238 public delegate IntPtr SwigDelegateOdEdFunctionIO_0(IntPtr protocolClass);
239 public delegate IntPtr SwigDelegateOdEdFunctionIO_1();
240 public delegate void SwigDelegateOdEdFunctionIO_2(IntPtr pSource);
241 public delegate void SwigDelegateOdEdFunctionIO_3(IntPtr pParamObj);
242 public delegate IntPtr SwigDelegateOdEdFunctionIO_4();
243 public delegate void SwigDelegateOdEdFunctionIO_5(IntPtr pResultObj);
244 public delegate IntPtr SwigDelegateOdEdFunctionIO_6();
245
246 private SwigDelegateOdEdFunctionIO_0 swigDelegate0;
247 private SwigDelegateOdEdFunctionIO_1 swigDelegate1;
248 private SwigDelegateOdEdFunctionIO_2 swigDelegate2;
249 private SwigDelegateOdEdFunctionIO_3 swigDelegate3;
250 private SwigDelegateOdEdFunctionIO_4 swigDelegate4;
251 private SwigDelegateOdEdFunctionIO_5 swigDelegate5;
252 private SwigDelegateOdEdFunctionIO_6 swigDelegate6;
253
254 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(OdRxClass) };
255 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { };
256 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { typeof(OdRxObject) };
257 private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { typeof(OdRxObject) };
258 private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { };
259 private static global::System.Type[] swigMethodTypes5 = new global::System.Type[] { typeof(OdRxObject) };
260 private static global::System.Type[] swigMethodTypes6 = new global::System.Type[] { };
261}
262
263}
static global::System.Exception Retrieve()
static IntPtr OdEdFunctionIO_isA(HandleRef jarg1)
static void OdEdFunctionIO_setResult(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdEdFunctionIO_result(HandleRef jarg1)
static IntPtr OdEdFunctionIO_param(HandleRef jarg1)
static string OdEdFunctionIO_getRealClassName(IntPtr jarg1)
static void delete_OdEdFunctionIO(HandleRef jarg1)
static IntPtr OdEdFunctionIO_createObject()
static void OdEdFunctionIO_setParam(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdEdFunctionIO_desc()
static IntPtr OdEdFunctionIO_cast(HandleRef jarg1)
static IntPtr OdEdFunctionIO_isASwigExplicitOdEdFunctionIO(HandleRef jarg1)
static IntPtr OdEdFunctionIO_queryXSwigExplicitOdEdFunctionIO(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdEdFunctionIO_queryX(HandleRef jarg1, HandleRef jarg2)
static void OdEdFunctionIO_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, OdEdFunctionIO.SwigDelegateOdEdFunctionIO_0 delegate0, OdEdFunctionIO.SwigDelegateOdEdFunctionIO_1 delegate1, OdEdFunctionIO.SwigDelegateOdEdFunctionIO_2 delegate2, OdEdFunctionIO.SwigDelegateOdEdFunctionIO_3 delegate3, OdEdFunctionIO.SwigDelegateOdEdFunctionIO_4 delegate4, OdEdFunctionIO.SwigDelegateOdEdFunctionIO_5 delegate5, OdEdFunctionIO.SwigDelegateOdEdFunctionIO_6 delegate6)
delegate IntPtr SwigDelegateOdEdFunctionIO_1()
virtual OdRxObject param()
virtual void setParam(OdRxObject pParamObj)
delegate void SwigDelegateOdEdFunctionIO_3(IntPtr pParamObj)
static HandleRef getCPtr(OdEdFunctionIO obj)
static OdEdFunctionIO cast(OdRxObject pObj)
virtual void setResult(OdRxObject pResultObj)
delegate void SwigDelegateOdEdFunctionIO_5(IntPtr pResultObj)
static new OdRxClass desc()
delegate IntPtr SwigDelegateOdEdFunctionIO_6()
static OdEdFunctionIO createObject()
override void Dispose(bool disposing)
static string getRealClassName(IntPtr ptr)
delegate IntPtr SwigDelegateOdEdFunctionIO_0(IntPtr protocolClass)
virtual OdRxObject result()
delegate void SwigDelegateOdEdFunctionIO_2(IntPtr pSource)
delegate IntPtr SwigDelegateOdEdFunctionIO_4()
override OdRxClass isA()
OdEdFunctionIO(IntPtr cPtr, bool cMemoryOwn)
override OdRxObject queryX(OdRxClass protocolClass)
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