Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdDefinitionBase.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
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdDefinitionBase(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdDefinitionBase_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdDefinitionBase 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 static OdDefinitionBase cast(OdRxObject pObj) {// OdSmartPtr<OdSpatialReference::OdDefinitionBase>
43 MemoryManager mMan = MemoryManager.GetMemoryManager();
44 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
46
47 OdDefinitionBase ret = null;
48 if (null != mTrans)
49 {
50 mTrans.AddObject((OdDefinitionBase)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDefinitionBase),ptr, true));
51 ret = (OdDefinitionBase)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDefinitionBase),ptr, false);
52 }
53 else
54 {
55 ret = (OdDefinitionBase)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDefinitionBase),ptr, true);
56 }
57
59 return ret;
60}
61
62 public new static OdRxClass desc() {
63 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdDefinitionBase_desc(),false); /*createInt 3_2*/
64
66 return ret;
67}
68
69 public override OdRxClass isA() {
70 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdDefinitionBase_isA(swigCPtr),false); /*createInt 3_2*/
71
73 return ret;
74}
75
76 public override OdRxObject queryX(OdRxClass protocolClass) {
77 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),GlobalsPINVOKE.OdDefinitionBase_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
78
80 return ret;
81}
82
83 public static OdDefinitionBase createObject() {// OdSmartPtr<OdSpatialReference::OdDefinitionBase>
84 MemoryManager mMan = MemoryManager.GetMemoryManager();
85 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
87
88 OdDefinitionBase ret = null;
89 if (null != mTrans)
90 {
91 mTrans.AddObject((OdDefinitionBase)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDefinitionBase),ptr, true));
92 ret = (OdDefinitionBase)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDefinitionBase),ptr, false);
93 }
94 else
95 {
96 ret = (OdDefinitionBase)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDefinitionBase),ptr, true);
97 }
98
100 return ret;
101}
102
107
112
118
124
130
131 public OdResult getCode(ref string sCode) {
132IntPtr tmp_sCode = Marshal.StringToCoTaskMemUni(sCode);
133 IntPtr saved_sCode = tmp_sCode;
134 try {
135 OdResult ret = (OdResult)GlobalsPINVOKE.OdDefinitionBase_getCode(swigCPtr, ref tmp_sCode);
137 return ret;
138 } finally {
139if (tmp_sCode != saved_sCode) sCode = Marshal.PtrToStringUni(tmp_sCode);
140 }
141 }
142
148
149 public OdResult getDescription(ref string sDescription) {
150IntPtr tmp_sDescription = Marshal.StringToCoTaskMemUni(sDescription);
151 IntPtr saved_sDescription = tmp_sDescription;
152 try {
153 OdResult ret = (OdResult)GlobalsPINVOKE.OdDefinitionBase_getDescription(swigCPtr, ref tmp_sDescription);
155 return ret;
156 } finally {
157if (tmp_sDescription != saved_sDescription) sDescription = Marshal.PtrToStringUni(tmp_sDescription);
158 }
159 }
160
166
167 public OdResult getSource(ref string sSource) {
168IntPtr tmp_sSource = Marshal.StringToCoTaskMemUni(sSource);
169 IntPtr saved_sSource = tmp_sSource;
170 try {
171 OdResult ret = (OdResult)GlobalsPINVOKE.OdDefinitionBase_getSource(swigCPtr, ref tmp_sSource);
173 return ret;
174 } finally {
175if (tmp_sSource != saved_sSource) sSource = Marshal.PtrToStringUni(tmp_sSource);
176 }
177 }
178
184
189
190 protected static string getRealClassName(IntPtr ptr) {
191 string ret = GlobalsPINVOKE.OdDefinitionBase_getRealClassName(ptr /*SIMPLETYPE*/);
193 return ret;
194 }
195
196}
197
198}
static global::System.Exception Retrieve()
static IntPtr OdDefinitionBase_cast(HandleRef jarg1)
static int OdDefinitionBase_getSource(HandleRef jarg1, ref IntPtr jarg2)
static string OdDefinitionBase_getRealClassName(IntPtr jarg1)
static int OdDefinitionBase_setCode(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static int OdDefinitionBase_remove(HandleRef jarg1)
static IntPtr OdDefinitionBase_createObject()
static void OdDefinitionBase_initialize__SWIG_1(HandleRef jarg1)
static IntPtr OdDefinitionBase_desc()
static IntPtr OdDefinitionBase_queryX(HandleRef jarg1, HandleRef jarg2)
static IntPtr OdDefinitionBase_isA(HandleRef jarg1)
static int OdDefinitionBase_setSource(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static int OdDefinitionBase_update(HandleRef jarg1)
static int OdDefinitionBase_getDefinitionType(HandleRef jarg1)
static void OdDefinitionBase_copyFrom(HandleRef jarg1, HandleRef jarg2)
static int OdDefinitionBase_setDescription(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void delete_OdDefinitionBase(HandleRef jarg1)
static int OdDefinitionBase_getDescription(HandleRef jarg1, ref IntPtr jarg2)
static void OdDefinitionBase_initialize__SWIG_0(HandleRef jarg1, bool jarg2)
static int OdDefinitionBase_getCode(HandleRef jarg1, ref IntPtr jarg2)
OdResult getSource(ref string sSource)
static new OdRxClass desc()
static OdDefinitionBase cast(OdRxObject pObj)
OdResult setSource(String sSource)
OdDefinitionBase(IntPtr cPtr, bool cMemoryOwn)
override void Dispose(bool disposing)
OdResult setDescription(String sDescription)
override OdRxObject queryX(OdRxClass protocolClass)
static HandleRef getCPtr(OdDefinitionBase obj)
OdResult getCode(ref string sCode)
OdResult getDescription(ref string sDescription)
static string getRealClassName(IntPtr ptr)
OdResult setCode(String sCode)
override void copyFrom(OdRxObject pSource)
static OdDefinitionBase createObject()
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