Extended .NET SDK Documentation 2024 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
51 public virtual void start(String displayString) {
54 }
55
56 public virtual void start() {
59 }
60
61 public virtual void stop() {
64 }
65
66 public virtual void meterProgress() {
69 }
70
71 public virtual void setLimit(int max) {
74 }
75
76 public OdDbHostAppProgressMeter() : this(GlobalsPINVOKE.new_OdDbHostAppProgressMeter(), true) {
78 SwigDirectorConnect();
79 }
80
81 private void SwigDirectorConnect() {
82 if (SwigDerivedClassHasMethod("start", swigMethodTypes0))
83 swigDelegate0 = new SwigDelegateOdDbHostAppProgressMeter_0(SwigDirectorMethodstart__SWIG_0);
84 if (SwigDerivedClassHasMethod("start", swigMethodTypes1))
85 swigDelegate1 = new SwigDelegateOdDbHostAppProgressMeter_1(SwigDirectorMethodstart__SWIG_1);
86 if (SwigDerivedClassHasMethod("stop", swigMethodTypes2))
87 swigDelegate2 = new SwigDelegateOdDbHostAppProgressMeter_2(SwigDirectorMethodstop);
88 if (SwigDerivedClassHasMethod("meterProgress", swigMethodTypes3))
89 swigDelegate3 = new SwigDelegateOdDbHostAppProgressMeter_3(SwigDirectorMethodmeterProgress);
90 if (SwigDerivedClassHasMethod("setLimit", swigMethodTypes4))
91 swigDelegate4 = new SwigDelegateOdDbHostAppProgressMeter_4(SwigDirectorMethodsetLimit);
92 GlobalsPINVOKE.OdDbHostAppProgressMeter_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4);
93 }
94
95 private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) {
96 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);
97 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(OdDbHostAppProgressMeter));
98 return hasDerivedMethod;
99 }
100
101 private void SwigDirectorMethodstart__SWIG_0([MarshalAs(UnmanagedType.LPWStr)]String displayString) {
102 start(displayString);
103 }
104
105 private void SwigDirectorMethodstart__SWIG_1() {
106 start();
107 }
108
109 private void SwigDirectorMethodstop() {
110 stop();
111 }
112
113 private void SwigDirectorMethodmeterProgress() {
115 }
116
117 private void SwigDirectorMethodsetLimit(int max) {
118 setLimit(max);
119 }
120
121 public delegate void SwigDelegateOdDbHostAppProgressMeter_0([MarshalAs(UnmanagedType.LPWStr)]String displayString);
125 public delegate void SwigDelegateOdDbHostAppProgressMeter_4(int max);
126
127 private SwigDelegateOdDbHostAppProgressMeter_0 swigDelegate0;
128 private SwigDelegateOdDbHostAppProgressMeter_1 swigDelegate1;
129 private SwigDelegateOdDbHostAppProgressMeter_2 swigDelegate2;
130 private SwigDelegateOdDbHostAppProgressMeter_3 swigDelegate3;
131 private SwigDelegateOdDbHostAppProgressMeter_4 swigDelegate4;
132
133 private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(String) };
134 private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { };
135 private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { };
136 private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { };
137 private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { typeof(int) };
138}
139
140}
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)