Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDgRelationshipNode.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
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdDgRelationshipNode(IntPtr cPtr, bool cMemoryOwn) : base(TG_DbPINVOKE.OdDgRelationshipNode_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDgRelationshipNode 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 OdDgRelationshipNode cast(OdRxObject pObj) {// OdSmartPtr<OdDgRelationshipNode>
44 MemoryManager mMan = MemoryManager.GetMemoryManager();
45 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
47
48 OdDgRelationshipNode ret = null;
49 if (null != mTrans)
50 {
51 mTrans.AddObject((OdDgRelationshipNode)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgRelationshipNode),ptr, true));
52 ret = (OdDgRelationshipNode)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgRelationshipNode),ptr, false);
53 }
54 else
55 {
56 ret = (OdDgRelationshipNode)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgRelationshipNode),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),TG_DbPINVOKE.OdDgRelationshipNode_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),TG_DbPINVOKE.OdDgRelationshipNode_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),TG_DbPINVOKE.OdDgRelationshipNode_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
79
81 return ret;
82}
83
84 public static OdDgRelationshipNode createObject() {// OdSmartPtr<OdDgRelationshipNode>
85 MemoryManager mMan = MemoryManager.GetMemoryManager();
86 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
88
89 OdDgRelationshipNode ret = null;
90 if (null != mTrans)
91 {
92 mTrans.AddObject((OdDgRelationshipNode)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgRelationshipNode),ptr, true));
93 ret = (OdDgRelationshipNode)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgRelationshipNode),ptr, false);
94 }
95 else
96 {
97 ret = (OdDgRelationshipNode)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgRelationshipNode),ptr, true);
98 }
99
101 return ret;
102}
103
107 return ret;
108 }
109
110 public virtual OdBinaryData getProxyData(UInt16 /*SIMPLETYPE*/ uFlags) {
111 OdBinaryData ret = new OdBinaryData(TG_DbPINVOKE.OdDgRelationshipNode_getProxyData(swigCPtr, uFlags /*SIMPLETYPE*/), true);
113 return ret;
114 }
115
116 public virtual bool setProxyData(OdBinaryData binData, UInt16 /*SIMPLETYPE*/ uFlags, bool bSizeUnknown) {
117 bool ret = TG_DbPINVOKE.OdDgRelationshipNode_setProxyData__SWIG_0(swigCPtr, OdBinaryData.getCPtr(binData).Handle, uFlags /*SIMPLETYPE*/, bSizeUnknown);
119 return ret;
120 }
121
122 public virtual bool setProxyData(OdBinaryData binData, UInt16 /*SIMPLETYPE*/ uFlags) {
123 bool ret = TG_DbPINVOKE.OdDgRelationshipNode_setProxyData__SWIG_1(swigCPtr, OdBinaryData.getCPtr(binData).Handle, uFlags /*SIMPLETYPE*/);
125 return ret;
126 }
127
128 public virtual bool getUseHandlerNameFlag() {
131 return ret;
132 }
133
134 public virtual bool getUseObjectNameFlag() {
137 return ret;
138 }
139
140 public virtual bool getUseExtendedDataFlag() {
143 return ret;
144 }
145
146 public virtual bool getUseExtendedData2Flag() {
149 return ret;
150 }
151
152 public virtual bool getUseUInt32IdFormatFlag() {
155 return ret;
156 }
157
158 public virtual void setUseUInt32IdFormatFlag(bool bSet) {
161 }
162
163 public virtual String getHandlerName() {
166 return ret;
167}
168
169 public virtual void setHandlerName(String strName) {
172 }
173
174 public virtual String getObjectName() {
177 return ret;
178}
179
180 public virtual void setObjectName(String strName) {
183 }
184
185 public virtual UInt32 getExtendedUInt32Value() {
186// test csout
187 /*SIMPLETYPE*/
190 return ret;
191 }
192
193 public virtual void setExtendedUInt32Value(UInt32 /*SIMPLETYPE*/ uValue) {
194 TG_DbPINVOKE.OdDgRelationshipNode_setExtendedUInt32Value(swigCPtr, uValue /*SIMPLETYPE*/);
196 }
197
198 public virtual UInt32 getExtendedUInt64Value() {
199// test csout
200 /*SIMPLETYPE*/
203 return ret;
204 }
205
206 public virtual void setExtendedUInt64Value(UInt64 /*SIMPLETYPE*/ uValue) {
207 TG_DbPINVOKE.OdDgRelationshipNode_setExtendedUInt64Value(swigCPtr, uValue /*SIMPLETYPE*/);
209 }
210
211 public virtual String getExtendedString() {
214 return ret;
215}
216
217 public virtual void setExtendedString(String strExt) {
220 }
221
222 public static OdDgRelationshipNode createObject(OdDgRelationshipNode.OdDgRelationshipNodeType type, UInt16 /*SIMPLETYPE*/ uFlags) {// OdDgRelationshipNodePtr
223 MemoryManager mMan = MemoryManager.GetMemoryManager();
224 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
225 IntPtr ptr = TG_DbPINVOKE.OdDgRelationshipNode_createObject__SWIG_1((int)type, uFlags /*SIMPLETYPE*/);
226
227 OdDgRelationshipNode ret = null;
228 if (null != mTrans)
229 {
230 mTrans.AddObject((OdDgRelationshipNode)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgRelationshipNode),ptr, true));
231 ret = (OdDgRelationshipNode)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgRelationshipNode),ptr, false);
232 }
233 else
234 {
235 ret = (OdDgRelationshipNode)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgRelationshipNode),ptr, true);
236 }
237
239 return ret;
240}
241
242 public static OdDgRelationshipNode createObject(UInt16 /*SIMPLETYPE*/ uFlags, OdBinaryData binData, bool bUnknownSize) {// OdDgRelationshipNodePtr
243 MemoryManager mMan = MemoryManager.GetMemoryManager();
244 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
245 IntPtr ptr = TG_DbPINVOKE.OdDgRelationshipNode_createObject__SWIG_2(uFlags /*SIMPLETYPE*/, OdBinaryData.getCPtr(binData).Handle, bUnknownSize);
246
247 OdDgRelationshipNode ret = null;
248 if (null != mTrans)
249 {
250 mTrans.AddObject((OdDgRelationshipNode)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgRelationshipNode),ptr, true));
251 ret = (OdDgRelationshipNode)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgRelationshipNode),ptr, false);
252 }
253 else
254 {
255 ret = (OdDgRelationshipNode)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgRelationshipNode),ptr, true);
256 }
257
259 return ret;
260}
261
262 public static OdDgRelationshipNode createObject(UInt16 /*SIMPLETYPE*/ uFlags, OdBinaryData binData) {// OdDgRelationshipNodePtr
263 MemoryManager mMan = MemoryManager.GetMemoryManager();
264 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
265 IntPtr ptr = TG_DbPINVOKE.OdDgRelationshipNode_createObject__SWIG_3(uFlags /*SIMPLETYPE*/, OdBinaryData.getCPtr(binData).Handle);
266
267 OdDgRelationshipNode ret = null;
268 if (null != mTrans)
269 {
270 mTrans.AddObject((OdDgRelationshipNode)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgRelationshipNode),ptr, true));
271 ret = (OdDgRelationshipNode)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgRelationshipNode),ptr, false);
272 }
273 else
274 {
275 ret = (OdDgRelationshipNode)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDgRelationshipNode),ptr, true);
276 }
277
279 return ret;
280}
281
282 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
283 string ret = TG_DbPINVOKE.OdDgRelationshipNode_getRealClassName(ptr /*SIMPLETYPE*/);
285 return ret;
286 }
287
289 kProxyNode = 0x00,
290 kElementIdNode = 0x01,
291 kElementIdExtNode = 0x02,
292 kFarElementIdNode = 0x03,
294 }
295
296}
297
298}
static HandleRef getCPtr(OdBinaryData obj)
Definition: OdBinaryData.cs:25
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
static OdDgRelationshipNode createObject(UInt16 uFlags, OdBinaryData binData, bool bUnknownSize)
static OdDgRelationshipNode createObject(OdDgRelationshipNode.OdDgRelationshipNodeType type, UInt16 uFlags)
static HandleRef getCPtr(OdDgRelationshipNode obj)
virtual void setExtendedString(String strExt)
virtual OdDgRelationshipNode.OdDgRelationshipNodeType getType()
virtual void setExtendedUInt32Value(UInt32 uValue)
static OdDgRelationshipNode createObject(UInt16 uFlags, OdBinaryData binData)
OdDgRelationshipNode(IntPtr cPtr, bool cMemoryOwn)
virtual OdBinaryData getProxyData(UInt16 uFlags)
virtual bool setProxyData(OdBinaryData binData, UInt16 uFlags)
static string getRealClassName(IntPtr ptr)
override void Dispose(bool disposing)
virtual void setHandlerName(String strName)
virtual bool setProxyData(OdBinaryData binData, UInt16 uFlags, bool bSizeUnknown)
static OdDgRelationshipNode cast(OdRxObject pObj)
virtual void setUseUInt32IdFormatFlag(bool bSet)
virtual void setObjectName(String strName)
virtual void setExtendedUInt64Value(UInt64 uValue)
override OdRxObject queryX(OdRxClass protocolClass)
static OdDgRelationshipNode createObject()
static global::System.Exception Retrieve()
static global::System.IntPtr OdDgRelationshipNode_getProxyData(HandleRef jarg1, UInt16 jarg2)
static IntPtr OdDgRelationshipNode_createObject__SWIG_1(int jarg1, UInt16 jarg2)
static IntPtr OdDgRelationshipNode_createObject__SWIG_2(UInt16 jarg1, IntPtr jarg2, bool jarg3)
static String OdDgRelationshipNode_getExtendedString(HandleRef jarg1)
static void OdDgRelationshipNode_setExtendedString(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static IntPtr OdDgRelationshipNode_createObject__SWIG_3(UInt16 jarg1, IntPtr jarg2)
static IntPtr OdDgRelationshipNode_cast(HandleRef jarg1)
static bool OdDgRelationshipNode_getUseObjectNameFlag(HandleRef jarg1)
static bool OdDgRelationshipNode_getUseUInt32IdFormatFlag(HandleRef jarg1)
static string OdDgRelationshipNode_getRealClassName(IntPtr jarg1)
static UInt32 OdDgRelationshipNode_getExtendedUInt64Value(HandleRef jarg1)
static void OdDgRelationshipNode_setUseUInt32IdFormatFlag(HandleRef jarg1, bool jarg2)
static String OdDgRelationshipNode_getHandlerName(HandleRef jarg1)
static IntPtr OdDgRelationshipNode_desc()
static bool OdDgRelationshipNode_getUseExtendedDataFlag(HandleRef jarg1)
static bool OdDgRelationshipNode_setProxyData__SWIG_1(HandleRef jarg1, IntPtr jarg2, UInt16 jarg3)
static IntPtr OdDgRelationshipNode_createObject__SWIG_0()
static bool OdDgRelationshipNode_getUseExtendedData2Flag(HandleRef jarg1)
static String OdDgRelationshipNode_getObjectName(HandleRef jarg1)
static void OdDgRelationshipNode_setObjectName(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static bool OdDgRelationshipNode_setProxyData__SWIG_0(HandleRef jarg1, IntPtr jarg2, UInt16 jarg3, bool jarg4)
static int OdDgRelationshipNode_getType(HandleRef jarg1)
static IntPtr OdDgRelationshipNode_queryX(HandleRef jarg1, HandleRef jarg2)
static void delete_OdDgRelationshipNode(HandleRef jarg1)
static void OdDgRelationshipNode_setExtendedUInt64Value(HandleRef jarg1, UInt64 jarg2)
static IntPtr OdDgRelationshipNode_isA(HandleRef jarg1)
static void OdDgRelationshipNode_setHandlerName(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void OdDgRelationshipNode_setExtendedUInt32Value(HandleRef jarg1, UInt32 jarg2)
static UInt32 OdDgRelationshipNode_getExtendedUInt32Value(HandleRef jarg1)
static bool OdDgRelationshipNode_getUseHandlerNameFlag(HandleRef jarg1)