Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
CFxModule.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 PCAD_DOT_NET {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16using Teigha.TD;
17
18public class CFxModule : OdRxModule {
19 private Object locker = new Object();
20 private HandleRef swigCPtr;
21 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
22 public CFxModule(IntPtr cPtr, bool cMemoryOwn) : base(PCADGlobalsPINVOKE.CFxModule_SWIGUpcast(cPtr), cMemoryOwn) {
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25
26 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 public static HandleRef getCPtr(CFxModule obj) {
28 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
29 }
30
31 protected override void Dispose(bool disposing) {
32 lock(this) {
33 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
34 if (swigCMemOwn) {
35 swigCMemOwn = false;
37 }
38 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
39 }
40 base.Dispose(disposing);
41 }
42 }
43
47 return ret;
48 }
49
50 public new static OdRxClass desc() {
51 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),PCADGlobalsPINVOKE.CFxModule_desc(),false); /*createInt 3_2*/
52
54 return ret;
55}
56
57 public override OdRxClass isA() {
58 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),(SwigDerivedClassHasMethod("isA", swigMethodTypes1) ? PCADGlobalsPINVOKE.CFxModule_isASwigExplicitCFxModule(swigCPtr) : PCADGlobalsPINVOKE.CFxModule_isA(swigCPtr)),false); /*createInt 3_2*/
59
61 return ret;
62}
63
64 public override OdRxObject queryX(OdRxClass protocolClass) {
65 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),(SwigDerivedClassHasMethod("queryX", swigMethodTypes0) ? PCADGlobalsPINVOKE.CFxModule_queryXSwigExplicitCFxModule(swigCPtr, OdRxClass.getCPtr(protocolClass)) : PCADGlobalsPINVOKE.CFxModule_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass))),false); /*createInt 3_2*/
66
68 return ret;
69}
70
74 return ret;
75 }
76
77 public class CFxEventData : global::System.IDisposable {
78 private Object locker = new Object();
79 private HandleRef swigCPtr;
80 protected bool swigCMemOwn;
81 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
82 public CFxEventData(IntPtr cPtr, bool cMemoryOwn) {
83 swigCMemOwn = cMemoryOwn;
84 swigCPtr = new HandleRef(this, cPtr);
85 }
86 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
87 public static HandleRef getCPtr(CFxEventData obj) {
88 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
89 }
90
92 Dispose(false);
93 }
94
95 public void Dispose() {
96 Dispose(true);
97 global::System.GC.SuppressFinalize(this);
98 }
99
100 protected virtual void Dispose(bool disposing) {
101 lock(this) {
102 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
103 if (swigCMemOwn) {
104 swigCMemOwn = false;
105 PCADGlobalsPINVOKE.delete_CFxModule_CFxEventData(swigCPtr); // NESTED_DTOR_CSHARP
106 }
107 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
108 }
109 }
110 }
111
112 public CFxEventData(CFxDatabase pDatabase, int defunCode) : this(PCADGlobalsPINVOKE.new_CFxModule_CFxEventData__SWIG_0(CFxDatabase.getCPtr(pDatabase), defunCode), true) {
114 }
115
116 public CFxEventData(CFxDatabase pDatabase) : this(PCADGlobalsPINVOKE.new_CFxModule_CFxEventData__SWIG_1(CFxDatabase.getCPtr(pDatabase)), true) {
118 }
119
120 public CFxEventData() : this(PCADGlobalsPINVOKE.new_CFxModule_CFxEventData__SWIG_2(), true) {
122 }
123
125 set {
128 }
129 get {
130 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxModule_CFxEventData_m_pDatabase_get(swigCPtr);
131 CFxDatabase ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxDatabase(cPtr, false);
133 return ret;
134 }
135 }
136
137 public int m_DefunCode {
138 set {
141 }
142 get {
145 return ret;
146 }
147 }
148
149 }
150
151 public virtual int event_(CFxModule.ModuleEvent e, CFxModule.CFxEventData pData) {
154 return ret;
155 }
156
157 public virtual int event_(CFxModule.ModuleEvent e) {
158 int ret = PCADGlobalsPINVOKE.CFxModule_event___SWIG_1(swigCPtr, (int)e);
160 return ret;
161 }
162
163 public CFxModule() : this(PCADGlobalsPINVOKE.new_CFxModule(), true) {
165 SwigDirectorConnect();
166 }
167
168 private void SwigDirectorConnect() {
169 if (SwigDerivedClassHasMethod("queryX", swigMethodTypes0))
170 swigDelegate0 = new SwigDelegateCFxModule_0(SwigDirectorMethodqueryX);
171 if (SwigDerivedClassHasMethod("isA", swigMethodTypes1))
172 swigDelegate1 = new SwigDelegateCFxModule_1(SwigDirectorMethodisA);
173 if (SwigDerivedClassHasMethod("sysData", swigMethodTypes2))
174 swigDelegate2 = new SwigDelegateCFxModule_2(SwigDirectorMethodsysData);
175 if (SwigDerivedClassHasMethod("deleteModule", swigMethodTypes3))
176 swigDelegate3 = new SwigDelegateCFxModule_3(SwigDirectorMethoddeleteModule);
177 if (SwigDerivedClassHasMethod("initApp", swigMethodTypes4))
178 swigDelegate4 = new SwigDelegateCFxModule_4(SwigDirectorMethodinitApp);
179 if (SwigDerivedClassHasMethod("uninitApp", swigMethodTypes5))
180 swigDelegate5 = new SwigDelegateCFxModule_5(SwigDirectorMethoduninitApp);
181 if (SwigDerivedClassHasMethod("moduleName", swigMethodTypes6))
182 swigDelegate6 = new SwigDelegateCFxModule_6(SwigDirectorMethodmoduleName);
183 if (SwigDerivedClassHasMethod("event_", swigMethodTypes7))
184 swigDelegate7 = new SwigDelegateCFxModule_7(SwigDirectorMethodevent___SWIG_0);
185 if (SwigDerivedClassHasMethod("event_", swigMethodTypes8))
186 swigDelegate8 = new SwigDelegateCFxModule_8(SwigDirectorMethodevent___SWIG_1);
187 PCADGlobalsPINVOKE.CFxModule_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8);
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(CFxModule));
193 return hasDerivedMethod;
194 }
195
196 private IntPtr SwigDirectorMethodqueryX(IntPtr protocolClass) {
197 return
198 // csdirectorout for OdRxObject*, OdRxObject&
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 IntPtr /*SIMPLETYPE*/ SwigDirectorMethodsysData() {
213 return sysData() /*SIMPLETYPE*/;
214 }
215
216 private void SwigDirectorMethoddeleteModule() {
217 deleteModule();
218 }
219
220 private void SwigDirectorMethodinitApp() {
221 initApp();
222 }
223
224 private void SwigDirectorMethoduninitApp() {
225 uninitApp();
226 }
227
228 [return: MarshalAs(UnmanagedType.LPWStr)]
229 private String SwigDirectorMethodmoduleName() {
230 return moduleName();
231 }
232
233 private int SwigDirectorMethodevent___SWIG_0(int e, global::System.IntPtr pData) {
234 return event_((CFxModule.ModuleEvent)e, (pData == global::System.IntPtr.Zero) ? null : new CFxModule.CFxEventData(pData, false));
235 }
236
237 private int SwigDirectorMethodevent___SWIG_1(int e) {
238 return event_((CFxModule.ModuleEvent)e);
239 }
240
241 public delegate IntPtr SwigDelegateCFxModule_0(IntPtr protocolClass);
242 public delegate IntPtr SwigDelegateCFxModule_1();
243 public delegate IntPtr /*SIMPLETYPE*/ SwigDelegateCFxModule_2();
244 public delegate void SwigDelegateCFxModule_3();
245 public delegate void SwigDelegateCFxModule_4();
246 public delegate void SwigDelegateCFxModule_5();
247 [return: MarshalAs(UnmanagedType.LPWStr)]
249 public delegate int SwigDelegateCFxModule_7(int e, global::System.IntPtr pData);
250 public delegate int SwigDelegateCFxModule_8(int e);
251
252 private SwigDelegateCFxModule_0 swigDelegate0;
253 private SwigDelegateCFxModule_1 swigDelegate1;
254 private SwigDelegateCFxModule_2 swigDelegate2;
255 private SwigDelegateCFxModule_3 swigDelegate3;
256 private SwigDelegateCFxModule_4 swigDelegate4;
257 private SwigDelegateCFxModule_5 swigDelegate5;
258 private SwigDelegateCFxModule_6 swigDelegate6;
259 private SwigDelegateCFxModule_7 swigDelegate7;
260 private SwigDelegateCFxModule_8 swigDelegate8;
261
262 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(OdRxClass) };
263 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { };
264 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { };
265 private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { };
266 private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { };
267 private static global::System.Type[] swigMethodTypes5 = new global::System.Type[] { };
268 private static global::System.Type[] swigMethodTypes6 = new global::System.Type[] { };
269 private static global::System.Type[] swigMethodTypes7 = new global::System.Type[] { typeof(CFxModule.ModuleEvent), typeof(CFxModule.CFxEventData) };
270 private static global::System.Type[] swigMethodTypes8 = new global::System.Type[] { typeof(CFxModule.ModuleEvent) };
271 public enum ModuleEvent {
272 kNone = 0,
273 kInitApp = 1,
274 kUnloadApp = 2,
275 kLoadDwg = 3,
276 kUnloadDwg = 4,
277 kInvkSubr = 5,
278 kCfg = 6,
279 kEnd = 7,
280 kQuit = 8,
281 kSave = 9,
282 kDependency = 10,
283 kNoDependency = 11,
284 kOleUnloadApp = 12,
285 kPreQuit = 13,
286 kInitDialog = 14,
287 kEndDialog = 15,
288 kSuspend = 16
289 }
290
291}
292
293}
static HandleRef getCPtr(CFxDatabase obj)
Definition: CFxDatabase.cs:27
CFxEventData(CFxDatabase pDatabase, int defunCode)
Definition: CFxModule.cs:112
static HandleRef getCPtr(CFxEventData obj)
Definition: CFxModule.cs:87
CFxEventData(CFxDatabase pDatabase)
Definition: CFxModule.cs:116
CFxEventData(IntPtr cPtr, bool cMemoryOwn)
Definition: CFxModule.cs:82
virtual void Dispose(bool disposing)
Definition: CFxModule.cs:100
static SWIGTYPE_p_OdSmartPtrT_CFxModule_t createObject()
Definition: CFxModule.cs:71
static SWIGTYPE_p_OdSmartPtrT_CFxModule_t cast(OdRxObject pObj)
Definition: CFxModule.cs:44
static HandleRef getCPtr(CFxModule obj)
Definition: CFxModule.cs:27
delegate IntPtr SwigDelegateCFxModule_2()
delegate String SwigDelegateCFxModule_6()
delegate IntPtr SwigDelegateCFxModule_0(IntPtr protocolClass)
delegate IntPtr SwigDelegateCFxModule_1()
override OdRxClass isA()
Definition: CFxModule.cs:57
virtual int event_(CFxModule.ModuleEvent e)
Definition: CFxModule.cs:157
delegate int SwigDelegateCFxModule_7(int e, global::System.IntPtr pData)
CFxModule(IntPtr cPtr, bool cMemoryOwn)
Definition: CFxModule.cs:22
delegate void SwigDelegateCFxModule_5()
delegate void SwigDelegateCFxModule_3()
virtual int event_(CFxModule.ModuleEvent e, CFxModule.CFxEventData pData)
Definition: CFxModule.cs:151
static new OdRxClass desc()
Definition: CFxModule.cs:50
override OdRxObject queryX(OdRxClass protocolClass)
Definition: CFxModule.cs:64
delegate int SwigDelegateCFxModule_8(int e)
override void Dispose(bool disposing)
Definition: CFxModule.cs:31
delegate void SwigDelegateCFxModule_4()
static int CFxModule_event___SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static IntPtr CFxModule_queryX(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void delete_CFxModule(global::System.Runtime.InteropServices.HandleRef jarg1)
static void CFxModule_CFxEventData_m_pDatabase_set(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static global::System.IntPtr CFxModule_cast(HandleRef jarg1)
static void CFxModule_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, CFxModule.SwigDelegateCFxModule_0 delegate0, CFxModule.SwigDelegateCFxModule_1 delegate1, CFxModule.SwigDelegateCFxModule_2 delegate2, CFxModule.SwigDelegateCFxModule_3 delegate3, CFxModule.SwigDelegateCFxModule_4 delegate4, CFxModule.SwigDelegateCFxModule_5 delegate5, CFxModule.SwigDelegateCFxModule_6 delegate6, CFxModule.SwigDelegateCFxModule_7 delegate7, CFxModule.SwigDelegateCFxModule_8 delegate8)
static void CFxModule_CFxEventData_m_DefunCode_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static IntPtr CFxModule_CFxEventData_m_pDatabase_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_CFxModule_CFxEventData(global::System.Runtime.InteropServices.HandleRef jarg1)
static int CFxModule_CFxEventData_m_DefunCode_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxModule_createObject()
static IntPtr CFxModule_isA(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr CFxModule_isASwigExplicitCFxModule(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr CFxModule_queryXSwigExplicitCFxModule(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static int CFxModule_event___SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
virtual IntPtr sysData()
Definition: OdRxModule.cs:103
virtual String moduleName()
Definition: OdRxModule.cs:126
virtual void initApp()
Definition: OdRxModule.cs:116
virtual void uninitApp()
Definition: OdRxModule.cs:121
virtual void deleteModule()
Definition: OdRxModule.cs:111
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26