Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDgXMLNode.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
17public class OdDgXMLNode : global::System.IDisposable {
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 protected bool swigCMemOwn;
21 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
22 public OdDgXMLNode(IntPtr cPtr, bool cMemoryOwn) {
23 swigCMemOwn = cMemoryOwn;
24 swigCPtr = new HandleRef(this, cPtr);
25 }
26 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 public static HandleRef getCPtr(OdDgXMLNode obj) {
28 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
29 }
30
31 ~OdDgXMLNode() {
32 Dispose(false);
33 }
34
35 public void Dispose() {
36 Dispose(true);
37 global::System.GC.SuppressFinalize(this);
38 }
39
40 protected virtual void Dispose(bool disposing) {
41 lock(this) {
42 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
43 if (swigCMemOwn) {
44 swigCMemOwn = false;
46 }
47 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
48 }
49 }
50 }
51
52 public OdDgXMLNode() : this(TG_DbPINVOKE.new_OdDgXMLNode__SWIG_0(), true) {
54 }
55
56 public OdDgXMLNode(OdDgXMLNode obj) : this(TG_DbPINVOKE.new_OdDgXMLNode__SWIG_1(OdDgXMLNode.getCPtr(obj)), true) {
58 }
59
60 public OdDgXMLNode(String strNodeName) : this(TG_DbPINVOKE.new_OdDgXMLNode__SWIG_2(strNodeName), true) {
62 }
63
67 return ret;
68 }
69
70 public String getName() {
71 string ret = TG_DbPINVOKE.OdDgXMLNode_getName(swigCPtr);
73 return ret;
74}
75
76 public void setName(String strName) {
77 TG_DbPINVOKE.OdDgXMLNode_setName(swigCPtr, strName);
79 }
80
81 public UInt32 getPropertiesCount() {
82// test csout
83 /*SIMPLETYPE*/
84 UInt32 ret = TG_DbPINVOKE.OdDgXMLNode_getPropertiesCount(swigCPtr);
86 return ret;
87 }
88
89 public OdDgXMLProperty getProperty(UInt32 /*SIMPLETYPE*/ uPropIndex) {
90 OdDgXMLProperty ret = new OdDgXMLProperty(TG_DbPINVOKE.OdDgXMLNode_getProperty__SWIG_0(swigCPtr, uPropIndex /*SIMPLETYPE*/), false);
92 return ret;
93 }
94
95 public bool getProperty(String strPropName, OdDgXMLProperty propValue) {
96 bool ret = TG_DbPINVOKE.OdDgXMLNode_getProperty__SWIG_1(swigCPtr, strPropName, OdDgXMLProperty.getCPtr(propValue));
98 return ret;
99 }
100
101 public bool getProperty(String strPropName, OdDgXMLProperty propValue, bool bRemoveIt) {
102 bool ret = TG_DbPINVOKE.OdDgXMLNode_getProperty__SWIG_2(swigCPtr, strPropName, OdDgXMLProperty.getCPtr(propValue), bRemoveIt);
104 return ret;
105 }
106
107 public bool setProperty(UInt32 /*SIMPLETYPE*/ uPropIndex, OdDgXMLProperty propValue) {
108 bool ret = TG_DbPINVOKE.OdDgXMLNode_setProperty__SWIG_0(swigCPtr, uPropIndex /*SIMPLETYPE*/, OdDgXMLProperty.getCPtr(propValue));
110 return ret;
111 }
112
113 public bool setProperty(OdDgXMLProperty propValue) {
116 return ret;
117 }
118
119 public void addProperty(OdDgXMLProperty propValue, Int32 /*SIMPLETYPE*/ insertBefore) {
120 TG_DbPINVOKE.OdDgXMLNode_addProperty__SWIG_0(swigCPtr, OdDgXMLProperty.getCPtr(propValue), insertBefore /*SIMPLETYPE*/);
122 }
123
124 public void addProperty(OdDgXMLProperty propValue) {
127 }
128
129 public void addTextNode(String strName, String strValue) {
130 TG_DbPINVOKE.OdDgXMLNode_addTextNode__SWIG_0(swigCPtr, strName, strValue);
132 }
133
134 public void addTextNode(String strName, OdDgXMLProperty propValue) {
137 }
138
139 public bool deleteProperty(UInt32 /*SIMPLETYPE*/ uPropIndex) {
140 bool ret = TG_DbPINVOKE.OdDgXMLNode_deleteProperty__SWIG_0(swigCPtr, uPropIndex /*SIMPLETYPE*/);
142 return ret;
143 }
144
145 public bool deleteProperty(String strPropName) {
146 bool ret = TG_DbPINVOKE.OdDgXMLNode_deleteProperty__SWIG_1(swigCPtr, strPropName);
148 return ret;
149 }
150
151 public bool hasProperty(String strPropName) {
152 bool ret = TG_DbPINVOKE.OdDgXMLNode_hasProperty(swigCPtr, strPropName);
154 return ret;
155 }
156
157 public void clear() {
160 }
161
162 public OdDgXMLProperty getProperty(String strPropName, String strDefaultValue) {
163 OdDgXMLProperty ret = new OdDgXMLProperty(TG_DbPINVOKE.OdDgXMLNode_getProperty__SWIG_4(swigCPtr, strPropName, strDefaultValue), true);
165 return ret;
166 }
167
168 public OdDgXMLProperty getProperty(String strPropName, String strDefaultValue, bool bRemoveIt) {
169 OdDgXMLProperty ret = new OdDgXMLProperty(TG_DbPINVOKE.OdDgXMLNode_getProperty__SWIG_5(swigCPtr, strPropName, strDefaultValue, bRemoveIt), true);
171 return ret;
172 }
173
174 public void setProperty(OdDgXMLProperty propValue, String strDefaultValue) {
175 TG_DbPINVOKE.OdDgXMLNode_setProperty__SWIG_2(swigCPtr, OdDgXMLProperty.getCPtr(propValue), strDefaultValue);
177 }
178
179 public void mergeXMLNode(OdDgXMLProperty propValue) {
182 }
183
184 public bool hasText() {
185 bool ret = TG_DbPINVOKE.OdDgXMLNode_hasText(swigCPtr);
187 return ret;
188 }
189
190 public String getText() {
191 string ret = TG_DbPINVOKE.OdDgXMLNode_getText(swigCPtr);
193 return ret;
194}
195
196 public void setText(String strText) {
197 TG_DbPINVOKE.OdDgXMLNode_setText(swigCPtr, strText);
199 }
200
201}
202
203}
bool hasProperty(String strPropName)
Definition: OdDgXMLNode.cs:151
void addTextNode(String strName, OdDgXMLProperty propValue)
Definition: OdDgXMLNode.cs:134
static HandleRef getCPtr(OdDgXMLNode obj)
Definition: OdDgXMLNode.cs:27
void setText(String strText)
Definition: OdDgXMLNode.cs:196
OdDgXMLProperty getProperty(UInt32 uPropIndex)
Definition: OdDgXMLNode.cs:89
OdDgXMLNode Assign(OdDgXMLNode obj)
Definition: OdDgXMLNode.cs:64
bool getProperty(String strPropName, OdDgXMLProperty propValue, bool bRemoveIt)
Definition: OdDgXMLNode.cs:101
OdDgXMLProperty getProperty(String strPropName, String strDefaultValue)
Definition: OdDgXMLNode.cs:162
OdDgXMLNode(OdDgXMLNode obj)
Definition: OdDgXMLNode.cs:56
virtual void Dispose(bool disposing)
Definition: OdDgXMLNode.cs:40
void addProperty(OdDgXMLProperty propValue)
Definition: OdDgXMLNode.cs:124
bool getProperty(String strPropName, OdDgXMLProperty propValue)
Definition: OdDgXMLNode.cs:95
void setProperty(OdDgXMLProperty propValue, String strDefaultValue)
Definition: OdDgXMLNode.cs:174
void setName(String strName)
Definition: OdDgXMLNode.cs:76
OdDgXMLNode(IntPtr cPtr, bool cMemoryOwn)
Definition: OdDgXMLNode.cs:22
OdDgXMLNode(String strNodeName)
Definition: OdDgXMLNode.cs:60
OdDgXMLProperty getProperty(String strPropName, String strDefaultValue, bool bRemoveIt)
Definition: OdDgXMLNode.cs:168
bool deleteProperty(UInt32 uPropIndex)
Definition: OdDgXMLNode.cs:139
bool deleteProperty(String strPropName)
Definition: OdDgXMLNode.cs:145
UInt32 getPropertiesCount()
Definition: OdDgXMLNode.cs:81
void addTextNode(String strName, String strValue)
Definition: OdDgXMLNode.cs:129
void mergeXMLNode(OdDgXMLProperty propValue)
Definition: OdDgXMLNode.cs:179
bool setProperty(OdDgXMLProperty propValue)
Definition: OdDgXMLNode.cs:113
void addProperty(OdDgXMLProperty propValue, Int32 insertBefore)
Definition: OdDgXMLNode.cs:119
bool setProperty(UInt32 uPropIndex, OdDgXMLProperty propValue)
Definition: OdDgXMLNode.cs:107
static HandleRef getCPtr(OdDgXMLProperty obj)
static global::System.Exception Retrieve()
static bool OdDgXMLNode_hasProperty(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static global::System.IntPtr OdDgXMLNode_getProperty__SWIG_5(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, [MarshalAs(UnmanagedType.LPWStr)]String jarg3, bool jarg4)
static UInt32 OdDgXMLNode_getPropertiesCount(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDgXMLNode_addTextNode__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool OdDgXMLNode_setProperty__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_OdDgXMLNode(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdDgXMLNode_setProperty__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdDgXMLNode_setText(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void OdDgXMLNode_setName(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static bool OdDgXMLNode_getProperty__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdDgXMLNode_addProperty__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, Int32 jarg3)
static void OdDgXMLNode_clear(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDgXMLNode_setProperty__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, [MarshalAs(UnmanagedType.LPWStr)]String jarg3)
static void OdDgXMLNode_addProperty__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdDgXMLNode_getProperty__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, bool jarg4)
static void OdDgXMLNode_mergeXMLNode(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdDgXMLNode_deleteProperty__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static String OdDgXMLNode_getName(global::System.Runtime.InteropServices.HandleRef jarg1)
static String OdDgXMLNode_getText(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDgXMLNode_addTextNode__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, [MarshalAs(UnmanagedType.LPWStr)]String jarg3)
static global::System.IntPtr OdDgXMLNode_getProperty__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static bool OdDgXMLNode_hasText(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdDgXMLNode_deleteProperty__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static global::System.IntPtr OdDgXMLNode_getProperty__SWIG_4(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, [MarshalAs(UnmanagedType.LPWStr)]String jarg3)
static global::System.IntPtr OdDgXMLNode_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)