Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdRxValue.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 OdRxValue : 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 OdRxValue(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(OdRxValue obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 ~OdRxValue() {
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
52 //%typemap(csout) const OdRxValue, OdRxValue, const OdRxValue&
53 IntPtr ptr = GlobalsPINVOKE.OdRxValue_Assign(swigCPtr, OdRxValue.getCPtr(rhs));
54 return new OdRxValue(ptr, false);
55}
56
57 public OdRxValueType type() {
58 OdRxValueType ret = (OdRxValueType)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxValueType),GlobalsPINVOKE.OdRxValue_type(swigCPtr),false); /*createInt 3_1*/
59
61 return ret;
62}
63
64 public bool isEmpty() {
65 bool ret = GlobalsPINVOKE.OdRxValue_isEmpty(swigCPtr);
67 return ret;
68 }
69
70 public static OdRxValue empty() {
71 //%typemap(csout) const OdRxValue, OdRxValue, const OdRxValue&
72 IntPtr ptr = GlobalsPINVOKE.OdRxValue_empty();
73 return new OdRxValue(ptr, false);
74}
75
76 public bool isVaries() {
77 bool ret = GlobalsPINVOKE.OdRxValue_isVaries(swigCPtr);
79 return ret;
80 }
81
82 public static OdRxValue varies() {
83 //%typemap(csout) const OdRxValue, OdRxValue, const OdRxValue&
84 IntPtr ptr = GlobalsPINVOKE.OdRxValue_varies();
85 return new OdRxValue(ptr, false);
86}
87
89 string ret = GlobalsPINVOKE.OdRxValue_toString__SWIG_0(swigCPtr, (int)format);
91 return ret;
92}
93
94 public String toString() {
95 string ret = GlobalsPINVOKE.OdRxValue_toString__SWIG_1(swigCPtr);
97 return ret;
98}
99
100 public bool IsEqual(OdRxValue value) {
103 return ret;
104 }
105
109 return ret;
110 }
111
112 public String typePath() {
113 string ret = GlobalsPINVOKE.OdRxValue_typePath(swigCPtr);
115 return ret;
116}
117
118 public static OdRxValue unbox(OdRxObject pO) {
119 global::System.IntPtr cPtr = GlobalsPINVOKE.OdRxValue_unbox__SWIG_0(OdRxObject.getCPtr(pO));
120 OdRxValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdRxValue(cPtr, false);
122 return ret;
123 }
124
126 OdRxEnumTag ret = (OdRxEnumTag)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxEnumTag),GlobalsPINVOKE.OdRxValue_getEnumTag(swigCPtr),false); /*createInt 3_2*/
127
129 return ret;
130}
131
132 public uint serializeOut(IntPtr /*SIMPLETYPE*/ pBytes, out uint maxBytesToWrite) {
133 uint ret = GlobalsPINVOKE.OdRxValue_serializeOut(swigCPtr, pBytes /*SIMPLETYPE*/, out maxBytesToWrite);
135 return ret;
136 }
137
138 public uint serializeIn(IntPtr /*SIMPLETYPE*/ pBytes, uint maxBytesToRead) {
139 uint ret = GlobalsPINVOKE.OdRxValue_serializeIn(swigCPtr, pBytes /*SIMPLETYPE*/, maxBytesToRead);
141 return ret;
142 }
143
144 public static OdRxValue create() {
145 global::System.IntPtr cPtr = GlobalsPINVOKE.OdRxValue_create__SWIG_0();
146 OdRxValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdRxValue(cPtr, false);
148 return ret;
149 }
150
151 public static OdRxValue create(OdRxValue from) {
152 global::System.IntPtr cPtr = GlobalsPINVOKE.OdRxValue_create__SWIG_1(OdRxValue.getCPtr(from));
153 OdRxValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdRxValue(cPtr, false);
155 return ret;
156 }
157
160 OdRxValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdRxValue(cPtr, false);
162 return ret;
163 }
164
169 public Teigha.Core.OdRxValueType vb_type() { return this.type(); }
170
171}
172
173}
static global::System.Exception Retrieve()
static uint OdRxValue_serializeIn(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2, uint jarg3)
static void delete_OdRxValue(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdRxValue_create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr OdRxValue_getEnumTag(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdRxValue_create__SWIG_0()
static global::System.IntPtr OdRxValue_unbox__SWIG_0(HandleRef jarg1)
static String OdRxValue_toString__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdRxValue_IsNotEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdRxValue_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static uint OdRxValue_serializeOut(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2, out uint jarg3)
static bool OdRxValue_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static String OdRxValue_toString__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr OdRxValue_varies()
static global::System.IntPtr OdRxValue_empty()
static bool OdRxValue_isEmpty(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr OdRxValue_type(global::System.Runtime.InteropServices.HandleRef jarg1)
static String OdRxValue_typePath(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdRxValue_create__SWIG_2(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdRxValue_isVaries(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
String toString(OdRxValueType.StringFormat format)
Definition: OdRxValue.cs:88
static OdRxValue varies()
Definition: OdRxValue.cs:82
static OdRxValue unbox(OdRxObject pO)
Definition: OdRxValue.cs:118
bool IsNotEqual(OdRxValue value)
Definition: OdRxValue.cs:106
static OdRxValue create(OdRxValueType type, OdRxValue value)
Definition: OdRxValue.cs:158
OdRxValue Assign(OdRxValue rhs)
Definition: OdRxValue.cs:51
uint serializeIn(IntPtr pBytes, uint maxBytesToRead)
Definition: OdRxValue.cs:138
uint serializeOut(IntPtr pBytes, out uint maxBytesToWrite)
Definition: OdRxValue.cs:132
static OdRxValue empty()
Definition: OdRxValue.cs:70
virtual void Dispose(bool disposing)
Definition: OdRxValue.cs:39
static HandleRef getCPtr(OdRxValue obj)
Definition: OdRxValue.cs:26
static OdRxValue create(OdRxValue from)
Definition: OdRxValue.cs:151
bool IsEqual(OdRxValue value)
Definition: OdRxValue.cs:100
Teigha.Core.OdRxValueType vb_type()
Definition: OdRxValue.cs:169
OdRxEnumTag getEnumTag()
Definition: OdRxValue.cs:125
OdRxValueType type()
Definition: OdRxValue.cs:57
OdRxValue(IntPtr cPtr, bool cMemoryOwn)
Definition: OdRxValue.cs:21
static OdRxValue create()
Definition: OdRxValue.cs:144
static HandleRef getCPtr(OdRxValueType obj)