Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDgIdMapping.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
17public class OdDgIdMapping : OdRxObject {
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdDgIdMapping(IntPtr cPtr, bool cMemoryOwn) : base(TG_DbPINVOKE.OdDgIdMapping_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDgIdMapping 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
43 public static OdDgIdMapping cast(OdRxObject pObj) {// OdSmartPtr<OdDgIdMapping>
44 MemoryManager mMan = MemoryManager.GetMemoryManager();
45 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
47
48 OdDgIdMapping ret = null;
49 if (null != mTrans)
50 {
51 mTrans.AddObject((OdDgIdMapping)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgIdMapping),ptr, true));
52 ret = (OdDgIdMapping)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgIdMapping),ptr, false);
53 }
54 else
55 {
56 ret = (OdDgIdMapping)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgIdMapping),ptr, true);
57 }
58
60 return ret;
61}
62
63 public new static OdRxClass desc() {
64 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TG_DbPINVOKE.OdDgIdMapping_desc(),false); /*createInt 3_2*/
65
67 return ret;
68}
69
70 public override OdRxClass isA() {
71 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),TG_DbPINVOKE.OdDgIdMapping_isA(swigCPtr),false); /*createInt 3_2*/
72
74 return ret;
75}
76
77 public override OdRxObject queryX(OdRxClass protocolClass) {
78 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),TG_DbPINVOKE.OdDgIdMapping_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
79
81 return ret;
82}
83
84 public static OdDgIdMapping createObject() {// OdSmartPtr<OdDgIdMapping>
85 MemoryManager mMan = MemoryManager.GetMemoryManager();
86 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
88
89 OdDgIdMapping ret = null;
90 if (null != mTrans)
91 {
92 mTrans.AddObject((OdDgIdMapping)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgIdMapping),ptr, true));
93 ret = (OdDgIdMapping)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgIdMapping),ptr, false);
94 }
95 else
96 {
97 ret = (OdDgIdMapping)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgIdMapping),ptr, true);
98 }
99
101 return ret;
102}
103
104 public static OdDgIdMapping createObject(DeepCloneType arg0) {// OdDgIdMappingPtr
105 MemoryManager mMan = MemoryManager.GetMemoryManager();
106 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
107 IntPtr ptr = TG_DbPINVOKE.OdDgIdMapping_createObject__SWIG_1((int)arg0);
108
109 OdDgIdMapping ret = null;
110 if (null != mTrans)
111 {
112 mTrans.AddObject((OdDgIdMapping)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgIdMapping),ptr, true));
113 ret = (OdDgIdMapping)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgIdMapping),ptr, false);
114 }
115 else
116 {
117 ret = (OdDgIdMapping)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgIdMapping),ptr, true);
118 }
119
121 return ret;
122}
123
124 public virtual void assign(OdDgIdPair idPair) {
127 }
128
129 public virtual bool compute(OdDgIdPair idPair) {
130 bool ret = TG_DbPINVOKE.OdDgIdMapping_compute(swigCPtr, OdDgIdPair.getCPtr(idPair));
132 return ret;
133 }
134
135 public virtual bool del(OdDgElementId key) {
136 bool ret = TG_DbPINVOKE.OdDgIdMapping_del(swigCPtr, OdDgElementId.getCPtr(key));
138 return ret;
139 }
140
141 public virtual OdDgIdMappingIter newIterator() {// OdDgIdMappingIterPtr
142 MemoryManager mMan = MemoryManager.GetMemoryManager();
143 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
144 IntPtr ptr = TG_DbPINVOKE.OdDgIdMapping_newIterator(swigCPtr);
145
146 OdDgIdMappingIter ret = null;
147 if (null != mTrans)
148 {
149 mTrans.AddObject((OdDgIdMappingIter)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgIdMappingIter),ptr, true));
150 ret = (OdDgIdMappingIter)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgIdMappingIter),ptr, false);
151 }
152 else
153 {
154 ret = (OdDgIdMappingIter)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgIdMappingIter),ptr, true);
155 }
156
158 return ret;
159}
160
161 public virtual OdDgDatabase destDb() {
162 OdDgDatabase ret = (OdDgDatabase)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgDatabase),TG_DbPINVOKE.OdDgIdMapping_destDb(swigCPtr),false); /*createInt 3_2*/
163
165 return ret;
166}
167
168 public virtual void setDestDb(OdDgDatabase pDb) {
171 }
172
173 public virtual OdDgDatabase origDb() {
174 OdDgDatabase ret = (OdDgDatabase)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgDatabase),TG_DbPINVOKE.OdDgIdMapping_origDb(swigCPtr),false); /*createInt 3_2*/
175
177 return ret;
178}
179
183 return ret;
184 }
185
189 return ret;
190 }
191
195 return ret;
196 }
197
198 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
199 string ret = TG_DbPINVOKE.OdDgIdMapping_getRealClassName(ptr /*SIMPLETYPE*/);
201 return ret;
202 }
203
209
210}
211
212}
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
static HandleRef getCPtr(OdDgDatabase obj)
Definition: OdDgDatabase.cs:26
static HandleRef getCPtr(OdDgElementId obj)
virtual OdDgElementId insertingXrefBlockId()
static OdDgIdMapping createObject()
virtual OdDgIdMappingIter newIterator()
virtual void setDestDb(OdDgDatabase pDb)
virtual bool compute(OdDgIdPair idPair)
static OdDgIdMapping createObject(DeepCloneType arg0)
virtual OdDgDatabase destDb()
static new OdRxClass desc()
virtual void assign(OdDgIdPair idPair)
virtual Teigha.TG.DuplicateRecordCloning vb_duplicateRecordCloning()
static HandleRef getCPtr(OdDgIdMapping obj)
override OdRxClass isA()
override OdRxObject queryX(OdRxClass protocolClass)
static OdDgIdMapping cast(OdRxObject pObj)
OdDgIdMapping(IntPtr cPtr, bool cMemoryOwn)
virtual OdDgDatabase origDb()
static string getRealClassName(IntPtr ptr)
virtual DuplicateRecordCloning duplicateRecordCloning()
override void Dispose(bool disposing)
virtual bool del(OdDgElementId key)
virtual DeepCloneType deepCloneContext()
static HandleRef getCPtr(OdDgIdPair obj)
Definition: OdDgIdPair.cs:27
static global::System.Exception Retrieve()
static IntPtr OdDgIdMapping_isA(HandleRef jarg1)
static IntPtr OdDgIdMapping_createObject__SWIG_1(int jarg1)
static IntPtr OdDgIdMapping_desc()
static global::System.IntPtr OdDgIdMapping_insertingXrefBlockId(HandleRef jarg1)
static void delete_OdDgIdMapping(HandleRef jarg1)
static IntPtr OdDgIdMapping_cast(HandleRef jarg1)
static int OdDgIdMapping_duplicateRecordCloning(HandleRef jarg1)
static void OdDgIdMapping_setDestDb(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDgIdMapping_newIterator(HandleRef jarg1)
static IntPtr OdDgIdMapping_createObject__SWIG_0()
static string OdDgIdMapping_getRealClassName(IntPtr jarg1)
static bool OdDgIdMapping_compute(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdDgIdMapping_del(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdDgIdMapping_destDb(HandleRef jarg1)
static int OdDgIdMapping_deepCloneContext(HandleRef jarg1)
static void OdDgIdMapping_assign(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdDgIdMapping_queryX(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDgIdMapping_origDb(HandleRef jarg1)