Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdApcAtom.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 OdApcAtom : OdRxObject {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdApcAtom(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdApcAtom_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdApcAtom 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
42 public OdApcAtom()
43 : this(GlobalsPINVOKE.new_OdApcAtom(), MemoryManager.GetMemoryManager().GetCurrentTransaction() == null)
44 {
45 MemoryTransaction mTr = MemoryManager.GetMemoryManager().GetCurrentTransaction(); // MemoryTransaction #1
46 if (null != mTr)
47 {
48 mTr.AddObject(new OdApcAtom(swigCPtr.Handle, true));
49 }
51 SwigDirectorConnect();
52 }
53
54 public virtual void apcEntryPoint(OdRxObject pMessage) {
55 if (SwigDerivedClassHasMethod("apcEntryPoint", swigMethodTypes2)) GlobalsPINVOKE.OdApcAtom_apcEntryPointSwigExplicitOdApcAtom__SWIG_0(swigCPtr, OdRxObject.getCPtr(pMessage)); else GlobalsPINVOKE.OdApcAtom_apcEntryPoint__SWIG_0(swigCPtr, OdRxObject.getCPtr(pMessage));
57 }
58
59 public virtual void apcEntryPoint(IntPtr /*SIMPLETYPE*/ pMessage) {
60 if (SwigDerivedClassHasMethod("apcEntryPoint", swigMethodTypes3)) GlobalsPINVOKE.OdApcAtom_apcEntryPointSwigExplicitOdApcAtom__SWIG_1(swigCPtr, pMessage /*SIMPLETYPE*/); else GlobalsPINVOKE.OdApcAtom_apcEntryPoint__SWIG_1(swigCPtr, pMessage /*SIMPLETYPE*/);
62 }
63
64 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
65 string ret = GlobalsPINVOKE.OdApcAtom_getRealClassName(ptr /*SIMPLETYPE*/);
67 return ret;
68 }
69
70 private void SwigDirectorConnect() {
71 if (SwigDerivedClassHasMethod("queryX", swigMethodTypes0))
72 swigDelegate0 = new SwigDelegateOdApcAtom_0(SwigDirectorMethodqueryX);
73 if (SwigDerivedClassHasMethod("isA", swigMethodTypes1))
74 swigDelegate1 = new SwigDelegateOdApcAtom_1(SwigDirectorMethodisA);
75 if (SwigDerivedClassHasMethod("apcEntryPoint", swigMethodTypes2))
76 swigDelegate2 = new SwigDelegateOdApcAtom_2(SwigDirectorMethodapcEntryPoint__SWIG_0);
77 if (SwigDerivedClassHasMethod("apcEntryPoint", swigMethodTypes3))
78 swigDelegate3 = new SwigDelegateOdApcAtom_3(SwigDirectorMethodapcEntryPoint__SWIG_1);
79 GlobalsPINVOKE.OdApcAtom_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3);
80 }
81
82 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
83 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);
84 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(OdApcAtom));
85 return hasDerivedMethod;
86 }
87
88 private IntPtr SwigDirectorMethodqueryX(IntPtr pClass) {
89 return
90 // csdirectorout for OdRxObject*, OdRxObject&
91 OdRxObject.getCPtr(queryX(
92 (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),pClass,false) /*createInt 6_2*/ // csdirectorin for smart pointer
93)).Handle
94;
95 }
96
97 private IntPtr SwigDirectorMethodisA() {
98 return
99 // csdirectorout for OdRxClass*, OdRxClass&
100 OdRxClass.getCPtr(isA()).Handle
101;
102 }
103
104 private void SwigDirectorMethodapcEntryPoint__SWIG_0(IntPtr pMessage) {
106 (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),pMessage,false) /*createInt 6_1*/ // csdirectorin for smart pointer
107);
108 }
109
110 private void SwigDirectorMethodapcEntryPoint__SWIG_1(IntPtr /*SIMPLETYPE*/ pMessage) {
111 apcEntryPoint(pMessage /*SIMPLETYPE*/);
112 }
113
114 public delegate IntPtr SwigDelegateOdApcAtom_0(IntPtr pClass);
115 public delegate IntPtr SwigDelegateOdApcAtom_1();
116 public delegate void SwigDelegateOdApcAtom_2(IntPtr pMessage);
117 public delegate void SwigDelegateOdApcAtom_3(IntPtr /*SIMPLETYPE*/ pMessage);
118
119 private SwigDelegateOdApcAtom_0 swigDelegate0;
120 private SwigDelegateOdApcAtom_1 swigDelegate1;
121 private SwigDelegateOdApcAtom_2 swigDelegate2;
122 private SwigDelegateOdApcAtom_3 swigDelegate3;
123
124 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(OdRxClass) };
125 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { };
126 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { typeof(OdRxObject) };
127 private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { typeof(IntPtr /*SIMPLETYPE*/) };
128}
129
130}
static global::System.Exception Retrieve()
static void delete_OdApcAtom(HandleRef jarg1)
static void OdApcAtom_apcEntryPointSwigExplicitOdApcAtom__SWIG_0(HandleRef jarg1, HandleRef jarg2)
static void OdApcAtom_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, OdApcAtom.SwigDelegateOdApcAtom_0 delegate0, OdApcAtom.SwigDelegateOdApcAtom_1 delegate1, OdApcAtom.SwigDelegateOdApcAtom_2 delegate2, OdApcAtom.SwigDelegateOdApcAtom_3 delegate3)
static void OdApcAtom_apcEntryPointSwigExplicitOdApcAtom__SWIG_1(HandleRef jarg1, IntPtr jarg2)
static string OdApcAtom_getRealClassName(IntPtr jarg1)
static void OdApcAtom_apcEntryPoint__SWIG_1(HandleRef jarg1, IntPtr jarg2)
static void OdApcAtom_apcEntryPoint__SWIG_0(HandleRef jarg1, HandleRef jarg2)
delegate IntPtr SwigDelegateOdApcAtom_1()
override void Dispose(bool disposing)
Definition: OdApcAtom.cs:29
static HandleRef getCPtr(OdApcAtom obj)
Definition: OdApcAtom.cs:25
static string getRealClassName(IntPtr ptr)
Definition: OdApcAtom.cs:64
OdApcAtom(IntPtr cPtr, bool cMemoryOwn)
Definition: OdApcAtom.cs:20
delegate IntPtr SwigDelegateOdApcAtom_0(IntPtr pClass)
virtual void apcEntryPoint(IntPtr pMessage)
Definition: OdApcAtom.cs:59
delegate void SwigDelegateOdApcAtom_2(IntPtr pMessage)
delegate void SwigDelegateOdApcAtom_3(IntPtr pMessage)
virtual void apcEntryPoint(OdRxObject pMessage)
Definition: OdApcAtom.cs:54
virtual OdRxClass isA()
Definition: OdRxObject.cs:85
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
virtual OdRxObject queryX(OdRxClass pClass)
Definition: OdRxObject.cs:51