Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdDbDataCell.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 OdDbDataCell : OdRxObject {
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdDbDataCell(IntPtr cPtr, bool cMemoryOwn) : base(TD_DbPINVOKE.OdDbDataCell_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDbDataCell 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 OdDbDataCell cast(OdRxObject pObj) {// OdSmartPtr<OdDbDataCell>
44 MemoryManager mMan = MemoryManager.GetMemoryManager();
45 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
47
48 OdDbDataCell ret = null;
49 if (null != mTrans)
50 {
51 mTrans.AddObject((OdDbDataCell)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbDataCell),ptr, true));
52 ret = (OdDbDataCell)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbDataCell),ptr, false);
53 }
54 else
55 {
56 ret = (OdDbDataCell)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbDataCell),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),TD_DbPINVOKE.OdDbDataCell_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),TD_DbPINVOKE.OdDbDataCell_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),TD_DbPINVOKE.OdDbDataCell_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
79
81 return ret;
82}
83
84 public static OdDbDataCell createObject() {// OdSmartPtr<OdDbDataCell>
85 MemoryManager mMan = MemoryManager.GetMemoryManager();
86 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
88
89 OdDbDataCell ret = null;
90 if (null != mTrans)
91 {
92 mTrans.AddObject((OdDbDataCell)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbDataCell),ptr, true));
93 ret = (OdDbDataCell)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbDataCell),ptr, false);
94 }
95 else
96 {
97 ret = (OdDbDataCell)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbDataCell),ptr, true);
98 }
99
101 return ret;
102}
103
108
113
114 public virtual void set(bool b) {
117 }
118
119 public virtual void set(Int32 i) {
120 TD_DbPINVOKE.OdDbDataCell_set__SWIG_2(swigCPtr, i /*SIMPLETYPE*/);
122 }
123
124 public virtual void set(double d) {
127 }
128
129 public virtual void set(String str) {
132 }
133
138
143
148
153
158
163
168
173
174 public virtual void get(out bool b) {
175 TD_DbPINVOKE.OdDbDataCell_get__SWIG_1(swigCPtr, out b);
177 }
178
179 public virtual void get(out Int32 i) {
180 TD_DbPINVOKE.OdDbDataCell_get__SWIG_2(swigCPtr, out i);
182 }
183
184 public virtual void get(out double d) {
185 TD_DbPINVOKE.OdDbDataCell_get__SWIG_3(swigCPtr, out d);
187 }
188
189 public virtual void get(ref string str) {
190IntPtr tmp_str = Marshal.StringToCoTaskMemUni(str);
191 IntPtr saved_str = tmp_str;
192 try {
193 TD_DbPINVOKE.OdDbDataCell_get__SWIG_4(swigCPtr, ref tmp_str);
195 } finally {
196if (tmp_str != saved_str) str = Marshal.PtrToStringUni(tmp_str);
197 }
198 }
199
204
209
214
219
224
229
234
240
241 protected static string getRealClassName(IntPtr ptr) {
242 string ret = TD_DbPINVOKE.OdDbDataCell_getRealClassName(ptr /*SIMPLETYPE*/);
244 return ret;
245 }
246
251 public virtual Teigha.TD.OdDbDataCell.CellType vb_type() { return this.type(); }
252
253 public enum CellType {
254 kUnknown = 0,
255 kInteger = 1,
256 kDouble = 2,
257 kCharPtr = 3,
258 kPoint = 4,
259 kObjectId = 5,
260 kHardOwnerId = 6,
261 kSoftOwnerId = 7,
262 kHardPtrId = 8,
263 kSoftPtrId = 9,
264 kBool = 10,
265 kVector = 11
266 }
267
268}
269
270}
static HandleRef getCPtr(OdGePoint3d obj)
static HandleRef getCPtr(OdGeVector3d obj)
static HandleRef getCPtr(OdRxClass obj)
Definition OdRxClass.cs:25
OdRxObject(IntPtr cPtr, bool cMemoryOwn)
Definition OdRxObject.cs:21
static HandleRef getCPtr(OdRxObject obj)
Definition OdRxObject.cs:26
static new OdRxClass desc()
static OdDbDataCell cast(OdRxObject pObj)
static OdDbDataCell createObject()
static string getRealClassName(IntPtr ptr)
virtual OdDbDataCell.CellType type()
virtual Teigha.TD.OdDbDataCell.CellType vb_type()
override OdRxObject queryX(OdRxClass protocolClass)
static HandleRef getCPtr(OdDbDataCell obj)
override OdRxClass isA()
OdDbDataCell(IntPtr cPtr, bool cMemoryOwn)
override void Dispose(bool disposing)
static HandleRef getCPtr(OdDbHardOwnershipId obj)
static HandleRef getCPtr(OdDbHardPointerId obj)
static HandleRef getCPtr(OdDbObjectId obj)
static HandleRef getCPtr(OdDbSoftOwnershipId obj)
static HandleRef getCPtr(OdDbSoftPointerId obj)
static global::System.Exception Retrieve()
static void OdDbDataCell_init(HandleRef jarg1)
static IntPtr OdDbDataCell_desc()
static void OdDbDataCell_set__SWIG_10(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbDataCell_get__SWIG_7(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdDbDataCell_createObject()
static string OdDbDataCell_getRealClassName(IntPtr jarg1)
static void OdDbDataCell_get__SWIG_0(HandleRef jarg1, HandleRef jarg2)
static void OdDbDataCell_get__SWIG_9(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbDataCell_get__SWIG_10(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbDataCell_set__SWIG_0(HandleRef jarg1, HandleRef jarg2)
static void OdDbDataCell_set__SWIG_11(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbDataCell_get__SWIG_3(HandleRef jarg1, out double jarg2)
static void OdDbDataCell_get__SWIG_8(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbDataCell_set__SWIG_9(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdDbDataCell_queryX(HandleRef jarg1, HandleRef jarg2)
static void OdDbDataCell_set__SWIG_5(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdDbDataCell_type(HandleRef jarg1)
static IntPtr OdDbDataCell_cast(HandleRef jarg1)
static void OdDbDataCell_set__SWIG_8(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbDataCell_set__SWIG_7(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbDataCell_get__SWIG_6(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbDataCell_get__SWIG_11(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_OdDbDataCell(HandleRef jarg1)
static void OdDbDataCell_get__SWIG_4(HandleRef jarg1, ref IntPtr jarg2)
static void OdDbDataCell_set__SWIG_1(HandleRef jarg1, bool jarg2)
static void OdDbDataCell_get__SWIG_1(HandleRef jarg1, out bool jarg2)
static void OdDbDataCell_get__SWIG_2(HandleRef jarg1, out Int32 jarg2)
static IntPtr OdDbDataCell_isA(HandleRef jarg1)
static void OdDbDataCell_set__SWIG_6(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbDataCell_get__SWIG_5(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbDataCell_set__SWIG_2(HandleRef jarg1, Int32 jarg2)
static void OdDbDataCell_set__SWIG_3(HandleRef jarg1, double jarg2)
static void OdDbDataCell_set__SWIG_4(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)