21 internal LogCallback(global::System.IntPtr cPtr,
bool cMemoryOwn) {
23 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
26 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
LogCallback obj) {
27 return (obj ==
null) ?
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero) : obj.swigCPtr;
30 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(
LogCallback obj) {
33 throw new global::System.ApplicationException(
"Cannot release ownership as memory is not owned");
34 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
35 obj.swigCMemOwn =
false;
39 return new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
49 global::System.GC.SuppressFinalize(
this);
52 protected virtual void Dispose(
bool disposing) {
54 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
59 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
64 public virtual void NewMessage(
string message) {
65 operations_research_satPINVOKE.LogCallback_NewMessage(swigCPtr, message);
70 SwigDirectorConnect();
73 private void SwigDirectorConnect() {
74 if (SwigDerivedClassHasMethod(
"NewMessage", swigMethodTypes0))
79 private bool SwigDerivedClassHasMethod(
string methodName, global::System.Type[] methodTypes) {
80 global::System.Reflection.MethodInfo[] methodInfos = this.GetType().GetMethods(
81 global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic | global::System.Reflection.BindingFlags.Instance);
82 foreach (global::System.Reflection.MethodInfo methodInfo in methodInfos) {
83 if (methodInfo.DeclaringType ==
null)
86 if (methodInfo.Name != methodName)
89 var parameters = methodInfo.GetParameters();
90 if (parameters.Length != methodTypes.Length)
93 bool parametersMatch =
true;
94 for (var i = 0; i < parameters.Length; i++) {
95 if (parameters[i].ParameterType != methodTypes[i]) {
96 parametersMatch =
false;
101 if (!parametersMatch)
104 if (methodInfo.IsVirtual && (methodInfo.DeclaringType.IsSubclassOf(typeof(
LogCallback))) &&
105 methodInfo.DeclaringType != methodInfo.GetBaseDefinition().DeclaringType) {
113 private void SwigDirectorMethodNewMessage(
string message) {
121 private static global::System.Type[] swigMethodTypes0 =
new global::System.Type[] { typeof(
string) };