Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdDbHostAppProgressMeter.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 OdDbHostAppProgressMeter : 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 OdDbHostAppProgressMeter(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(OdDbHostAppProgressMeter obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
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
55
60
65
70
75
76 public OdDbHostAppProgressMeter() : this(GlobalsPINVOKE.new_OdDbHostAppProgressMeter(), true) {
78 SwigDirectorConnect();
79 DelegateHolder.OnHoldSwigDirectorDelegates(this);
80 if(this is OdRxObject)
81 {
82 MemoryTransaction mTr = MemoryManager.GetMemoryManager().GetCurrentTransaction();
83 if (null != mTr)
84 {
85 mTr.AddObject(new OdDbHostAppProgressMeter(swigCPtr.Handle, true));
86 this.swigCMemOwn = false;
87 }
88}
89 }
90
91 private void SwigDirectorConnect() {
92 if (SwigDerivedClassHasMethod("start", swigMethodTypes0))
93 swigDelegate0 = new SwigDelegateOdDbHostAppProgressMeter_0(SwigDirectorMethodstart__SWIG_0);
94 if (SwigDerivedClassHasMethod("start", swigMethodTypes1))
95 swigDelegate1 = new SwigDelegateOdDbHostAppProgressMeter_1(SwigDirectorMethodstart__SWIG_1);
96 if (SwigDerivedClassHasMethod("stop", swigMethodTypes2))
97 swigDelegate2 = new SwigDelegateOdDbHostAppProgressMeter_2(SwigDirectorMethodstop);
98 if (SwigDerivedClassHasMethod("meterProgress", swigMethodTypes3))
99 swigDelegate3 = new SwigDelegateOdDbHostAppProgressMeter_3(SwigDirectorMethodmeterProgress);
100 if (SwigDerivedClassHasMethod("setLimit", swigMethodTypes4))
101 swigDelegate4 = new SwigDelegateOdDbHostAppProgressMeter_4(SwigDirectorMethodsetLimit);
102 GlobalsPINVOKE.OdDbHostAppProgressMeter_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4);
103 }
104
105 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
106 global::System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic | global::System.Reflection.BindingFlags.Instance, null, methodTypes, null);
107 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(OdDbHostAppProgressMeter));
108 return hasDerivedMethod;
109 }
110
111 private void SwigDirectorMethodstart__SWIG_0([MarshalAs(UnmanagedType.LPWStr)]String displayString) {
112 start(displayString);
113 }
114
115 private void SwigDirectorMethodstart__SWIG_1() {
116 start();
117 }
118
119 private void SwigDirectorMethodstop() {
120 stop();
121 }
122
123 private void SwigDirectorMethodmeterProgress() {
125 }
126
127 private void SwigDirectorMethodsetLimit(int max) {
128 setLimit(max);
129 }
130
131 public delegate void SwigDelegateOdDbHostAppProgressMeter_0([MarshalAs(UnmanagedType.LPWStr)]String displayString);
135 public delegate void SwigDelegateOdDbHostAppProgressMeter_4(int max);
136
137 private SwigDelegateOdDbHostAppProgressMeter_0 swigDelegate0;
138 private SwigDelegateOdDbHostAppProgressMeter_1 swigDelegate1;
139 private SwigDelegateOdDbHostAppProgressMeter_2 swigDelegate2;
140 private SwigDelegateOdDbHostAppProgressMeter_3 swigDelegate3;
141 private SwigDelegateOdDbHostAppProgressMeter_4 swigDelegate4;
142
143 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(String) };
144 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { };
145 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { };
146 private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { };
147 private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { typeof(int) };
148}
149
150}
static global::System.Exception Retrieve()
static void OdDbHostAppProgressMeter_stop(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbHostAppProgressMeter_start__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbHostAppProgressMeter_meterProgress(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbHostAppProgressMeter_setLimit(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void OdDbHostAppProgressMeter_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, OdDbHostAppProgressMeter.SwigDelegateOdDbHostAppProgressMeter_0 delegate0, OdDbHostAppProgressMeter.SwigDelegateOdDbHostAppProgressMeter_1 delegate1, OdDbHostAppProgressMeter.SwigDelegateOdDbHostAppProgressMeter_2 delegate2, OdDbHostAppProgressMeter.SwigDelegateOdDbHostAppProgressMeter_3 delegate3, OdDbHostAppProgressMeter.SwigDelegateOdDbHostAppProgressMeter_4 delegate4)
static void OdDbHostAppProgressMeter_start__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void delete_OdDbHostAppProgressMeter(global::System.Runtime.InteropServices.HandleRef jarg1)
virtual void start(String displayString)
delegate void SwigDelegateOdDbHostAppProgressMeter_1()
delegate void SwigDelegateOdDbHostAppProgressMeter_0([MarshalAs(UnmanagedType.LPWStr)]String displayString)
delegate void SwigDelegateOdDbHostAppProgressMeter_4(int max)
delegate void SwigDelegateOdDbHostAppProgressMeter_3()
OdDbHostAppProgressMeter(IntPtr cPtr, bool cMemoryOwn)
delegate void SwigDelegateOdDbHostAppProgressMeter_2()
static HandleRef getCPtr(OdDbHostAppProgressMeter obj)