Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGUID.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
16public class OdGUID : global::System.IDisposable {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 protected bool swigCMemOwn;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdGUID(IntPtr cPtr, bool cMemoryOwn) {
22 swigCMemOwn = cMemoryOwn;
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdGUID obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 ~OdGUID() {
31 Dispose(false);
32 }
33
34 public void Dispose() {
35 Dispose(true);
36 global::System.GC.SuppressFinalize(this);
37 }
38
39 protected virtual void Dispose(bool disposing) {
40 lock(this) {
41 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
42 if (swigCMemOwn) {
43 swigCMemOwn = false;
45 }
46 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
47 }
48 }
49 }
50
51 public class StringFormat : global::System.IDisposable {
52 private Object locker = new Object();
53 private HandleRef swigCPtr;
54 protected bool swigCMemOwn;
55 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
56 public StringFormat(IntPtr cPtr, bool cMemoryOwn) {
57 swigCMemOwn = cMemoryOwn;
58 swigCPtr = new HandleRef(this, cPtr);
59 }
60 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
61 public static HandleRef getCPtr(StringFormat obj) {
62 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
63 }
64
66 Dispose(false);
67 }
68
69 public void Dispose() {
70 Dispose(true);
71 global::System.GC.SuppressFinalize(this);
72 }
73
74 protected virtual void Dispose(bool disposing) {
75 lock(this) {
76 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
77 if (swigCMemOwn) {
78 swigCMemOwn = false;
79 GlobalsPINVOKE.delete_OdGUID_StringFormat(swigCPtr); // NESTED_DTOR_CSHARP
80 }
81 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
82 }
83 }
84 }
85
86 public StringFormat() : this(GlobalsPINVOKE.new_OdGUID_StringFormat(), true) {
88 }
89
90 public enum Enum {
91 Digits,
93 Braces,
96 }
97
98 }
99
100 public static OdGUID kNull {
101 get {
102 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGUID_kNull_get();
103 OdGUID ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGUID(cPtr, false);
105 return ret;
106 }
107 }
108
109 public OdGUID() : this(GlobalsPINVOKE.new_OdGUID__SWIG_0(), true) {
111 }
112
113 public OdGUID(OdGUID other) : this(GlobalsPINVOKE.new_OdGUID__SWIG_1(OdGUID.getCPtr(other)), true) {
115 }
116
117 public OdGUID(UInt32 /*SIMPLETYPE*/ arg0, UInt16 /*SIMPLETYPE*/ arg1, UInt16 /*SIMPLETYPE*/ arg2, byte /*SIMPLETYPE*/ arg3, byte /*SIMPLETYPE*/ arg4, byte /*SIMPLETYPE*/ arg5, byte /*SIMPLETYPE*/ arg6, byte /*SIMPLETYPE*/ arg7, byte /*SIMPLETYPE*/ arg8, byte /*SIMPLETYPE*/ arg9, byte /*SIMPLETYPE*/ arg10) : this(GlobalsPINVOKE.new_OdGUID__SWIG_2(arg0 /*SIMPLETYPE*/, arg1 /*SIMPLETYPE*/, arg2 /*SIMPLETYPE*/, arg3 /*SIMPLETYPE*/, arg4 /*SIMPLETYPE*/, arg5 /*SIMPLETYPE*/, arg6 /*SIMPLETYPE*/, arg7 /*SIMPLETYPE*/, arg8 /*SIMPLETYPE*/, arg9 /*SIMPLETYPE*/, arg10 /*SIMPLETYPE*/), true) {
119 }
120
121 public OdGUID(String value) : this(GlobalsPINVOKE.new_OdGUID__SWIG_3(value), true) {
123 }
124
125 public OdGUID Assign(OdGUID other) {
126 OdGUID ret = new OdGUID(GlobalsPINVOKE.OdGUID_Assign__SWIG_0(swigCPtr, OdGUID.getCPtr(other)), false);
128 return ret;
129 }
130
131 public OdGUID Assign(String other) {
132 OdGUID ret = new OdGUID(GlobalsPINVOKE.OdGUID_Assign__SWIG_1(swigCPtr, other), false);
134 return ret;
135 }
136
137 public bool IsEqual(OdGUID arg0) {
138 bool ret = GlobalsPINVOKE.OdGUID_IsEqual(swigCPtr, OdGUID.getCPtr(arg0));
140 return ret;
141 }
142
143 public bool IsNotEqual(OdGUID arg0) {
144 bool ret = GlobalsPINVOKE.OdGUID_IsNotEqual(swigCPtr, OdGUID.getCPtr(arg0));
146 return ret;
147 }
148
150 string ret = GlobalsPINVOKE.OdGUID_toString__SWIG_0(swigCPtr, (int)format);
152 return ret;
153}
154
155 public String toString() {
156 string ret = GlobalsPINVOKE.OdGUID_toString__SWIG_1(swigCPtr);
158 return ret;
159}
160
161 public void setGUIDdata(UInt32 /*SIMPLETYPE*/ arg0, UInt16 /*SIMPLETYPE*/ arg1, UInt16 /*SIMPLETYPE*/ arg2, SWIGTYPE_p_a_0x8__unsigned_char arg3) {
162 GlobalsPINVOKE.OdGUID_setGUIDdata(swigCPtr, arg0 /*SIMPLETYPE*/, arg1 /*SIMPLETYPE*/, arg2 /*SIMPLETYPE*/, SWIGTYPE_p_a_0x8__unsigned_char.getCPtr(arg3));
164 }
165
166}
167
168}
static global::System.Exception Retrieve()
static String OdGUID_toString__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void delete_OdGUID(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGUID_setGUIDdata(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2, UInt16 jarg3, UInt16 jarg4, global::System.Runtime.InteropServices.HandleRef jarg5)
static String OdGUID_toString__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGUID_IsNotEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGUID_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGUID_kNull_get()
static void delete_OdGUID_StringFormat(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGUID_Assign__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static global::System.IntPtr OdGUID_Assign__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static HandleRef getCPtr(StringFormat obj)
Definition: OdGUID.cs:61
virtual void Dispose(bool disposing)
Definition: OdGUID.cs:74
StringFormat(IntPtr cPtr, bool cMemoryOwn)
Definition: OdGUID.cs:56
bool swigCMemOwn
Definition: OdGUID.cs:19
OdGUID(OdGUID other)
Definition: OdGUID.cs:113
OdGUID(String value)
Definition: OdGUID.cs:121
bool IsNotEqual(OdGUID arg0)
Definition: OdGUID.cs:143
OdGUID Assign(OdGUID other)
Definition: OdGUID.cs:125
bool IsEqual(OdGUID arg0)
Definition: OdGUID.cs:137
OdGUID(UInt32 arg0, UInt16 arg1, UInt16 arg2, byte arg3, byte arg4, byte arg5, byte arg6, byte arg7, byte arg8, byte arg9, byte arg10)
Definition: OdGUID.cs:117
static OdGUID kNull
Definition: OdGUID.cs:100
void Dispose()
Definition: OdGUID.cs:34
OdGUID Assign(String other)
Definition: OdGUID.cs:131
String toString()
Definition: OdGUID.cs:155
void setGUIDdata(UInt32 arg0, UInt16 arg1, UInt16 arg2, SWIGTYPE_p_a_0x8__unsigned_char arg3)
Definition: OdGUID.cs:161
OdGUID(IntPtr cPtr, bool cMemoryOwn)
Definition: OdGUID.cs:21
String toString(OdGUID.StringFormat.Enum format)
Definition: OdGUID.cs:149
static HandleRef getCPtr(OdGUID obj)
Definition: OdGUID.cs:26
virtual void Dispose(bool disposing)
Definition: OdGUID.cs:39