Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
TxErrorContext.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 TxErrorContext(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.TxErrorContext_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(TxErrorContext 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 OdErrorContext init(String name, int nCode, String desc) {// OdSmartPtr<OdErrorContext>
43 MemoryManager mMan = MemoryManager.GetMemoryManager();
44 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
45 IntPtr ptr = GlobalsPINVOKE.TxErrorContext_init__SWIG_0(swigCPtr, name, nCode, desc);
46
47 OdErrorContext ret = null;
48 if (null != mTrans)
49 {
50 mTrans.AddObject((OdErrorContext)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdErrorContext),ptr, true));
51 ret = (OdErrorContext)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdErrorContext),ptr, false);
52 }
53 else
54 {
55 ret = (OdErrorContext)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdErrorContext),ptr, true);
56 }
57
59 return ret;
60}
61
62 public OdErrorContext init(String name, int nCode) {// OdSmartPtr<OdErrorContext>
63 MemoryManager mMan = MemoryManager.GetMemoryManager();
64 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
65 IntPtr ptr = GlobalsPINVOKE.TxErrorContext_init__SWIG_1(swigCPtr, name, nCode);
66
67 OdErrorContext ret = null;
68 if (null != mTrans)
69 {
70 mTrans.AddObject((OdErrorContext)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdErrorContext),ptr, true));
71 ret = (OdErrorContext)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdErrorContext),ptr, false);
72 }
73 else
74 {
75 ret = (OdErrorContext)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdErrorContext),ptr, true);
76 }
77
79 return ret;
80}
81
82 public override String description() {
83 string ret = GlobalsPINVOKE.TxErrorContext_description(swigCPtr);
85 return ret;
86}
87
88 public override OdResult code() {
91 return ret;
92 }
93
94 public virtual int txAppCode() {
95 int ret = GlobalsPINVOKE.TxErrorContext_txAppCode(swigCPtr);
97 return ret;
98 }
99
100 public virtual String txAppName() {
101 string ret = GlobalsPINVOKE.TxErrorContext_txAppName(swigCPtr);
103 return ret;
104}
105
106 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
107 string ret = GlobalsPINVOKE.TxErrorContext_getRealClassName(ptr /*SIMPLETYPE*/);
109 return ret;
110 }
111
112}
113
114}
static global::System.Exception Retrieve()
static void delete_TxErrorContext(HandleRef jarg1)
static int TxErrorContext_code(HandleRef jarg1)
static int TxErrorContext_txAppCode(HandleRef jarg1)
static string TxErrorContext_getRealClassName(IntPtr jarg1)
static String TxErrorContext_txAppName(HandleRef jarg1)
static IntPtr TxErrorContext_init__SWIG_0(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, int jarg3, [MarshalAs(UnmanagedType.LPWStr)]String jarg4)
static IntPtr TxErrorContext_init__SWIG_1(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, int jarg3)
static String TxErrorContext_description(HandleRef jarg1)
static OdRxClass desc()
Definition: OdRxObject.cs:78
OdErrorContext init(String name, int nCode, String desc)
TxErrorContext(IntPtr cPtr, bool cMemoryOwn)
override OdResult code()
static HandleRef getCPtr(TxErrorContext obj)
virtual String txAppName()
override String description()
OdErrorContext init(String name, int nCode)
override void Dispose(bool disposing)
static string getRealClassName(IntPtr ptr)