Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDgIdPair.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 OdDgIdPair : 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 OdDgIdPair(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(OdDgIdPair obj) {
28 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
29 }
30
31 ~OdDgIdPair() {
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 OdDgIdPair() : this(TG_DbPINVOKE.new_OdDgIdPair__SWIG_0(), true) {
54 }
55
56 public OdDgIdPair(OdDgIdPair source) : this(TG_DbPINVOKE.new_OdDgIdPair__SWIG_1(OdDgIdPair.getCPtr(source)), true) {
58 }
59
60 public OdDgIdPair(OdDgElementId key) : this(TG_DbPINVOKE.new_OdDgIdPair__SWIG_2(OdDgElementId.getCPtr(key)), true) {
62 }
63
64 public OdDgIdPair(OdDgElementId key, OdDgElementId value, bool cloned, bool ownerXlated, bool bPrimary) : this(TG_DbPINVOKE.new_OdDgIdPair__SWIG_3(OdDgElementId.getCPtr(key), OdDgElementId.getCPtr(value), cloned, ownerXlated, bPrimary), true) {
66 }
67
68 public OdDgIdPair(OdDgElementId key, OdDgElementId value, bool cloned, bool ownerXlated) : this(TG_DbPINVOKE.new_OdDgIdPair__SWIG_4(OdDgElementId.getCPtr(key), OdDgElementId.getCPtr(value), cloned, ownerXlated), true) {
70 }
71
72 public OdDgIdPair(OdDgElementId key, OdDgElementId value, bool cloned) : this(TG_DbPINVOKE.new_OdDgIdPair__SWIG_5(OdDgElementId.getCPtr(key), OdDgElementId.getCPtr(value), cloned), true) {
74 }
75
78 }
79
80 public OdDgElementId key() {
81 OdDgElementId ret = new OdDgElementId(TG_DbPINVOKE.OdDgIdPair_key(swigCPtr), true);
83 return ret;
84 }
85
89 return ret;
90 }
91
92 public bool isCloned() {
93 bool ret = TG_DbPINVOKE.OdDgIdPair_isCloned(swigCPtr);
95 return ret;
96 }
97
98 public bool isOwnerXlated() {
99 bool ret = TG_DbPINVOKE.OdDgIdPair_isOwnerXlated(swigCPtr);
101 return ret;
102 }
103
104 public bool isPrimary() {
105 bool ret = TG_DbPINVOKE.OdDgIdPair_isPrimary(swigCPtr);
107 return ret;
108 }
109
110 public OdDgIdPair set(OdDgElementId key, OdDgElementId value, bool cloned, bool ownerXlated, bool bPrimary) {
111 OdDgIdPair ret = new OdDgIdPair(TG_DbPINVOKE.OdDgIdPair_set__SWIG_0(swigCPtr, OdDgElementId.getCPtr(key), OdDgElementId.getCPtr(value), cloned, ownerXlated, bPrimary), false);
113 return ret;
114 }
115
116 public OdDgIdPair set(OdDgElementId key, OdDgElementId value, bool cloned, bool ownerXlated) {
117 OdDgIdPair ret = new OdDgIdPair(TG_DbPINVOKE.OdDgIdPair_set__SWIG_1(swigCPtr, OdDgElementId.getCPtr(key), OdDgElementId.getCPtr(value), cloned, ownerXlated), false);
119 return ret;
120 }
121
122 public OdDgIdPair set(OdDgElementId key, OdDgElementId value, bool cloned) {
125 return ret;
126 }
127
131 return ret;
132 }
133
134 public void setKey(OdDgElementId key) {
137 }
138
142 }
143
144 public void setCloned(bool cloned) {
145 TG_DbPINVOKE.OdDgIdPair_setCloned(swigCPtr, cloned);
147 }
148
149 public void setOwnerXlated(bool ownerXlated) {
150 TG_DbPINVOKE.OdDgIdPair_setOwnerXlated(swigCPtr, ownerXlated);
152 }
153
154 public void setPrimary(bool bPrimary) {
155 TG_DbPINVOKE.OdDgIdPair_setPrimary(swigCPtr, bPrimary);
157 }
158
159}
160
161}
static HandleRef getCPtr(OdDgElementId obj)
OdDgElementId value()
Definition: OdDgIdPair.cs:86
OdDgIdPair(OdDgElementId key, OdDgElementId value, bool cloned, bool ownerXlated, bool bPrimary)
Definition: OdDgIdPair.cs:64
void setOwnerXlated(bool ownerXlated)
Definition: OdDgIdPair.cs:149
OdDgIdPair(IntPtr cPtr, bool cMemoryOwn)
Definition: OdDgIdPair.cs:22
void setCloned(bool cloned)
Definition: OdDgIdPair.cs:144
OdDgIdPair(OdDgElementId key)
Definition: OdDgIdPair.cs:60
void setPrimary(bool bPrimary)
Definition: OdDgIdPair.cs:154
OdDgIdPair(OdDgElementId key, OdDgElementId value, bool cloned)
Definition: OdDgIdPair.cs:72
OdDgIdPair(OdDgElementId key, OdDgElementId value, bool cloned, bool ownerXlated)
Definition: OdDgIdPair.cs:68
virtual void Dispose(bool disposing)
Definition: OdDgIdPair.cs:40
void setValue(OdDgElementId value)
Definition: OdDgIdPair.cs:139
OdDgIdPair(OdDgIdPair source)
Definition: OdDgIdPair.cs:56
static HandleRef getCPtr(OdDgIdPair obj)
Definition: OdDgIdPair.cs:27
OdDgElementId key()
Definition: OdDgIdPair.cs:80
void setKey(OdDgElementId key)
Definition: OdDgIdPair.cs:134
OdDgIdPair(OdDgElementId key, OdDgElementId value)
Definition: OdDgIdPair.cs:76
static global::System.Exception Retrieve()
static void OdDgIdPair_setValue(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDgIdPair_setPrimary(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool OdDgIdPair_isCloned(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdDgIdPair(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdDgIdPair_isPrimary(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDgIdPair_setOwnerXlated(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static global::System.IntPtr OdDgIdPair_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 void OdDgIdPair_setCloned(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static global::System.IntPtr OdDgIdPair_set__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, bool jarg4)
static global::System.IntPtr OdDgIdPair_key(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdDgIdPair_set__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdDgIdPair_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 void OdDgIdPair_setKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdDgIdPair_value(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdDgIdPair_isOwnerXlated(global::System.Runtime.InteropServices.HandleRef jarg1)