Extended .NET SDK Documentation 2024 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 }
53
54 public static OdEdFunctionIO cast(OdRxObject pObj) {// OdSmartPtr<OdEdFunctionIO>
55 MemoryManager mMan = MemoryManager.GetMemoryManager();
56 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
58
59 OdEdFunctionIO ret = null;
60 if (null != mTrans)
61 {
62 mTrans.AddObject((OdEdFunctionIO)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdEdFunctionIO),ptr, true));
63 ret = (OdEdFunctionIO)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdEdFunctionIO),ptr, false);
64 }
65 else
66 {
67 ret = (OdEdFunctionIO)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdEdFunctionIO),ptr, true);
68 }
69
71 return ret;
72}
73
74 public new static OdRxClass desc() {
75 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdEdFunctionIO_desc(),false); /*createInt 3_2*/
76
78 return ret;
79}
80
81 public override OdRxClass isA() {
82 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),(SwigDerivedClassHasMethod("isA", swigMethodTypes1) ? GlobalsPINVOKE.OdEdFunctionIO_isASwigExplicitOdEdFunctionIO(swigCPtr) : GlobalsPINVOKE.OdEdFunctionIO_isA(swigCPtr)),false); /*createInt 3_2*/
83
85 return ret;
86}
87
88 public override OdRxObject queryX(OdRxClass protocolClass) {
89 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*/
90
92 return ret;
93}
94
95 public static OdEdFunctionIO createObject() {// OdSmartPtr<OdEdFunctionIO>
96 MemoryManager mMan = MemoryManager.GetMemoryManager();
97 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
99
100 OdEdFunctionIO ret = null;
101 if (null != mTrans)
102 {
103 mTrans.AddObject((OdEdFunctionIO)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdEdFunctionIO),ptr, true));
104 ret = (OdEdFunctionIO)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdEdFunctionIO),ptr, false);
105 }
106 else
107 {
108 ret = (OdEdFunctionIO)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdEdFunctionIO),ptr, true);
109 }
110
112 return ret;
113}
114
115 public virtual void setParam(OdRxObject pParamObj) {
118 }
119
120 public virtual OdRxObject param() {// OdRxObjectPtr
121 MemoryManager mMan = MemoryManager.GetMemoryManager();
122 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
123 IntPtr ptr = GlobalsPINVOKE.OdEdFunctionIO_param(swigCPtr);
124
125 OdRxObject ret = null;
126 if (null != mTrans)
127 {
128 mTrans.AddObject((OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true));
129 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, false);
130 }
131 else
132 {
133 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true);
134 }
135
137 return ret;
138}
139
140 public virtual void setResult(OdRxObject pResultObj) {
143 }
144
145 public virtual OdRxObject result() {// OdRxObjectPtr
146 MemoryManager mMan = MemoryManager.GetMemoryManager();
147 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
148 IntPtr ptr = GlobalsPINVOKE.OdEdFunctionIO_result(swigCPtr);
149
150 OdRxObject ret = null;
151 if (null != mTrans)
152 {
153 mTrans.AddObject((OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true));
154 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, false);
155 }
156 else
157 {
158 ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),ptr, true);
159 }
160
162 return ret;
163}
164
165 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
166 string ret = GlobalsPINVOKE.OdEdFunctionIO_getRealClassName(ptr /*SIMPLETYPE*/);
168 return ret;
169 }
170
171 private void SwigDirectorConnect() {
172 if (SwigDerivedClassHasMethod("queryX", swigMethodTypes0))
173 swigDelegate0 = new SwigDelegateOdEdFunctionIO_0(SwigDirectorMethodqueryX);
174 if (SwigDerivedClassHasMethod("isA", swigMethodTypes1))
175 swigDelegate1 = new SwigDelegateOdEdFunctionIO_1(SwigDirectorMethodisA);
176 if (SwigDerivedClassHasMethod("setParam", swigMethodTypes2))
177 swigDelegate2 = new SwigDelegateOdEdFunctionIO_2(SwigDirectorMethodsetParam);
178 if (SwigDerivedClassHasMethod("param", swigMethodTypes3))
179 swigDelegate3 = new SwigDelegateOdEdFunctionIO_3(SwigDirectorMethodparam);
180 if (SwigDerivedClassHasMethod("setResult", swigMethodTypes4))
181 swigDelegate4 = new SwigDelegateOdEdFunctionIO_4(SwigDirectorMethodsetResult);
182 if (SwigDerivedClassHasMethod("result", swigMethodTypes5))
183 swigDelegate5 = new SwigDelegateOdEdFunctionIO_5(SwigDirectorMethodresult);
184 GlobalsPINVOKE.OdEdFunctionIO_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5);
185 }
186
187 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
188 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);
189 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(OdEdFunctionIO));
190 return hasDerivedMethod;
191 }
192
193 private IntPtr SwigDirectorMethodqueryX(IntPtr protocolClass) {
194 return
195 // csdirectorout for OdRxObject*, OdRxObject&
196 OdRxObject.getCPtr(queryX(
197 (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),protocolClass,false) /*createInt 6_2*/ // csdirectorin for smart pointer
198)).Handle
199;
200 }
201
202 private IntPtr SwigDirectorMethodisA() {
203 return
204 // csdirectorout for OdRxClass*, OdRxClass&
205 OdRxClass.getCPtr(isA()).Handle
206;
207 }
208
209 private void SwigDirectorMethodsetParam(IntPtr pParamObj) {
210 setParam(
211 (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),pParamObj,false) /*createInt 6_1*/ // csdirectorin for smart pointer
212);
213 }
214
215 private IntPtr SwigDirectorMethodparam() {
216 return OdRxObject.getCPtr(param()).Handle;
217 }
218
219 private void SwigDirectorMethodsetResult(IntPtr pResultObj) {
220 setResult(
221 (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),pResultObj,false) /*createInt 6_1*/ // csdirectorin for smart pointer
222);
223 }
224
225 private IntPtr SwigDirectorMethodresult() {
226 return OdRxObject.getCPtr(result()).Handle;
227 }
228
229 public delegate IntPtr SwigDelegateOdEdFunctionIO_0(IntPtr protocolClass);
230 public delegate IntPtr SwigDelegateOdEdFunctionIO_1();
231 public delegate void SwigDelegateOdEdFunctionIO_2(IntPtr pParamObj);
232 public delegate IntPtr SwigDelegateOdEdFunctionIO_3();
233 public delegate void SwigDelegateOdEdFunctionIO_4(IntPtr pResultObj);
234 public delegate IntPtr SwigDelegateOdEdFunctionIO_5();
235
236 private SwigDelegateOdEdFunctionIO_0 swigDelegate0;
237 private SwigDelegateOdEdFunctionIO_1 swigDelegate1;
238 private SwigDelegateOdEdFunctionIO_2 swigDelegate2;
239 private SwigDelegateOdEdFunctionIO_3 swigDelegate3;
240 private SwigDelegateOdEdFunctionIO_4 swigDelegate4;
241 private SwigDelegateOdEdFunctionIO_5 swigDelegate5;
242
243 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(OdRxClass) };
244 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { };
245 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { typeof(OdRxObject) };
246 private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { };
247 private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { typeof(OdRxObject) };
248 private static global::System.Type[] swigMethodTypes5 = new global::System.Type[] { };
249}
250
251}
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)
delegate IntPtr SwigDelegateOdEdFunctionIO_1()
virtual OdRxObject param()
virtual void setParam(OdRxObject pParamObj)
static HandleRef getCPtr(OdEdFunctionIO obj)
static OdEdFunctionIO cast(OdRxObject pObj)
virtual void setResult(OdRxObject pResultObj)
static new OdRxClass desc()
delegate void SwigDelegateOdEdFunctionIO_4(IntPtr pResultObj)
static OdEdFunctionIO createObject()
delegate IntPtr SwigDelegateOdEdFunctionIO_3()
override void Dispose(bool disposing)
delegate IntPtr SwigDelegateOdEdFunctionIO_5()
static string getRealClassName(IntPtr ptr)
delegate IntPtr SwigDelegateOdEdFunctionIO_0(IntPtr protocolClass)
virtual OdRxObject result()
override OdRxClass isA()
OdEdFunctionIO(IntPtr cPtr, bool cMemoryOwn)
delegate void SwigDelegateOdEdFunctionIO_2(IntPtr pParamObj)
override OdRxObject queryX(OdRxClass protocolClass)
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
OdRxObject(IntPtr cPtr, bool cMemoryOwn)
Definition: OdRxObject.cs:21
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26