Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDbIdPair.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.TD {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16
17public class OdDbIdPair : global::System.IDisposable {
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 protected bool swigCMemOwn;
21 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
22 public OdDbIdPair(IntPtr cPtr, bool cMemoryOwn) {
23 swigCMemOwn = cMemoryOwn;
24 swigCPtr = new HandleRef(this, cPtr);
25 }
26 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 public static HandleRef getCPtr(OdDbIdPair obj) {
28 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
29 }
30
31 ~OdDbIdPair() {
32 Dispose(false);
33 }
34
35 public void Dispose() {
36 Dispose(true);
37 global::System.GC.SuppressFinalize(this);
38 }
39
40 protected virtual void Dispose(bool disposing) {
41 lock(this) {
42 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
43 if (swigCMemOwn) {
44 swigCMemOwn = false;
46 }
47 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
48 }
49 }
50 }
51
52 public OdDbIdPair() : this(TD_DbPINVOKE.new_OdDbIdPair__SWIG_0(), true) {
54 }
55
56 public OdDbIdPair(OdDbIdPair source) : this(TD_DbPINVOKE.new_OdDbIdPair__SWIG_1(OdDbIdPair.getCPtr(source)), true) {
58 }
59
60 public OdDbIdPair(OdDbObjectId key) : this(TD_DbPINVOKE.new_OdDbIdPair__SWIG_2(OdDbObjectId.getCPtr(key)), true) {
62 }
63
64 public OdDbIdPair(OdDbObjectId key, OdDbObjectId value, bool cloned, bool ownerXlated, bool primary) : this(TD_DbPINVOKE.new_OdDbIdPair__SWIG_3(OdDbObjectId.getCPtr(key), OdDbObjectId.getCPtr(value), cloned, ownerXlated, primary), true) {
66 }
67
68 public OdDbIdPair(OdDbObjectId key, OdDbObjectId value, bool cloned, bool ownerXlated) : this(TD_DbPINVOKE.new_OdDbIdPair__SWIG_4(OdDbObjectId.getCPtr(key), OdDbObjectId.getCPtr(value), cloned, ownerXlated), true) {
70 }
71
72 public OdDbIdPair(OdDbObjectId key, OdDbObjectId value, bool cloned) : this(TD_DbPINVOKE.new_OdDbIdPair__SWIG_5(OdDbObjectId.getCPtr(key), OdDbObjectId.getCPtr(value), cloned), true) {
74 }
75
78 }
79
80 public OdDbObjectId key() {
81 MemoryManager mMan = MemoryManager.GetMemoryManager();
82 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #27
83 IntPtr ptr = TD_DbPINVOKE.OdDbIdPair_key(swigCPtr);
84
85 OdDbObjectId ret = null;
86 if (null != mTrans)
87 {
88 mTrans.AddObject(new OdDbObjectId(ptr, true));
89 ret = new OdDbObjectId(ptr, false);
90 }
91 else
92 {
93 ret = new OdDbObjectId(ptr, true);
94 }
95
97 return ret;
98}
99
101 MemoryManager mMan = MemoryManager.GetMemoryManager();
102 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #27
103 IntPtr ptr = TD_DbPINVOKE.OdDbIdPair_value(swigCPtr);
104
105 OdDbObjectId ret = null;
106 if (null != mTrans)
107 {
108 mTrans.AddObject(new OdDbObjectId(ptr, true));
109 ret = new OdDbObjectId(ptr, false);
110 }
111 else
112 {
113 ret = new OdDbObjectId(ptr, true);
114 }
115
117 return ret;
118}
119
120 public bool isCloned() {
121 bool ret = TD_DbPINVOKE.OdDbIdPair_isCloned(swigCPtr);
123 return ret;
124 }
125
126 public bool isPrimary() {
127 bool ret = TD_DbPINVOKE.OdDbIdPair_isPrimary(swigCPtr);
129 return ret;
130 }
131
132 public bool isOwnerXlated() {
133 bool ret = TD_DbPINVOKE.OdDbIdPair_isOwnerXlated(swigCPtr);
135 return ret;
136 }
137
138 public OdDbIdPair set(OdDbObjectId key, OdDbObjectId value, bool cloned, bool ownerXlated, bool primary) {
139 OdDbIdPair ret = new OdDbIdPair(TD_DbPINVOKE.OdDbIdPair_set__SWIG_0(swigCPtr, OdDbObjectId.getCPtr(key), OdDbObjectId.getCPtr(value), cloned, ownerXlated, primary), false);
141 return ret;
142 }
143
144 public OdDbIdPair set(OdDbObjectId key, OdDbObjectId value, bool cloned, bool ownerXlated) {
145 OdDbIdPair ret = new OdDbIdPair(TD_DbPINVOKE.OdDbIdPair_set__SWIG_1(swigCPtr, OdDbObjectId.getCPtr(key), OdDbObjectId.getCPtr(value), cloned, ownerXlated), false);
147 return ret;
148 }
149
150 public OdDbIdPair set(OdDbObjectId key, OdDbObjectId value, bool cloned) {
153 return ret;
154 }
155
159 return ret;
160 }
161
162 public void setKey(OdDbObjectId key) {
165 }
166
170 }
171
172 public void setCloned(bool cloned) {
173 TD_DbPINVOKE.OdDbIdPair_setCloned(swigCPtr, cloned);
175 }
176
177 public void setPrimary(bool primary) {
178 TD_DbPINVOKE.OdDbIdPair_setPrimary(swigCPtr, primary);
180 }
181
182 public void setOwnerXlated(bool ownerXlated) {
183 TD_DbPINVOKE.OdDbIdPair_setOwnerXlated(swigCPtr, ownerXlated);
185 }
186
187}
188
189}
void setKey(OdDbObjectId key)
Definition: OdDbIdPair.cs:162
OdDbIdPair(OdDbObjectId key, OdDbObjectId value, bool cloned)
Definition: OdDbIdPair.cs:72
OdDbIdPair(OdDbObjectId key, OdDbObjectId value, bool cloned, bool ownerXlated, bool primary)
Definition: OdDbIdPair.cs:64
void setPrimary(bool primary)
Definition: OdDbIdPair.cs:177
OdDbIdPair(OdDbObjectId key, OdDbObjectId value, bool cloned, bool ownerXlated)
Definition: OdDbIdPair.cs:68
OdDbIdPair(OdDbObjectId key)
Definition: OdDbIdPair.cs:60
OdDbIdPair(IntPtr cPtr, bool cMemoryOwn)
Definition: OdDbIdPair.cs:22
void setOwnerXlated(bool ownerXlated)
Definition: OdDbIdPair.cs:182
void setValue(OdDbObjectId value)
Definition: OdDbIdPair.cs:167
OdDbIdPair(OdDbIdPair source)
Definition: OdDbIdPair.cs:56
virtual void Dispose(bool disposing)
Definition: OdDbIdPair.cs:40
OdDbObjectId key()
Definition: OdDbIdPair.cs:80
OdDbIdPair(OdDbObjectId key, OdDbObjectId value)
Definition: OdDbIdPair.cs:76
static HandleRef getCPtr(OdDbIdPair obj)
Definition: OdDbIdPair.cs:27
void setCloned(bool cloned)
Definition: OdDbIdPair.cs:172
OdDbObjectId value()
Definition: OdDbIdPair.cs:100
static HandleRef getCPtr(OdDbObjectId obj)
Definition: OdDbObjectId.cs:27
static global::System.Exception Retrieve()
static void OdDbIdPair_setValue(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdDbIdPair_set__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, bool jarg4, bool jarg5)
static global::System.IntPtr OdDbIdPair_key(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdDbIdPair_set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, bool jarg4, bool jarg5, bool jarg6)
static bool OdDbIdPair_isOwnerXlated(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdDbIdPair_value(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbIdPair_setPrimary(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool OdDbIdPair_isCloned(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbIdPair_setOwnerXlated(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void OdDbIdPair_setCloned(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static global::System.IntPtr OdDbIdPair_set__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void delete_OdDbIdPair(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdDbIdPair_isPrimary(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbIdPair_setKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdDbIdPair_set__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, bool jarg4)