//------------------------------------------------------------------------------ // <auto-generated /> // // This file was automatically generated by SWIG (http://www.swig.org). // Version 3.0.10 // // Do not make changes to this file unless you know what you are doing--modify // the SWIG interface file instead. //------------------------------------------------------------------------------ namespace HoloToolkit.Sharing { public class DiscoveredSystem : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; internal DiscoveredSystem(global::System.IntPtr cPtr, bool cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } internal static global::System.Runtime.InteropServices.HandleRef getCPtr(DiscoveredSystem obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } ~DiscoveredSystem() { Dispose(); } public virtual void Dispose() { lock(this) { if (swigCPtr.Handle != global::System.IntPtr.Zero) { if (swigCMemOwn) { swigCMemOwn = false; SharingClientPINVOKE.delete_DiscoveredSystem(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } global::System.GC.SuppressFinalize(this); } } public DiscoveredSystem(string name, string address, SystemRole role) : this(SharingClientPINVOKE.new_DiscoveredSystem(name, address, (int)role), true) { if (SharingClientPINVOKE.SWIGPendingException.Pending) throw SharingClientPINVOKE.SWIGPendingException.Retrieve(); } public string GetName() { string ret = SharingClientPINVOKE.DiscoveredSystem_GetName(swigCPtr); return ret; } public string GetAddress() { string ret = SharingClientPINVOKE.DiscoveredSystem_GetAddress(swigCPtr); return ret; } public SystemRole GetRole() { SystemRole ret = (SystemRole)SharingClientPINVOKE.DiscoveredSystem_GetRole(swigCPtr); return ret; } } }