//------------------------------------------------------------------------------ // // // This file was automatically generated by SWIG (http://www.swig.org). // Version 3.0.6 // // Do not make changes to this file unless you know what you are doing--modify // the SWIG interface file instead. //------------------------------------------------------------------------------ namespace mscl { public class ChannelGroup : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; internal ChannelGroup(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(ChannelGroup obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } ~ChannelGroup() { Dispose(); } public virtual void Dispose() { lock(this) { if (swigCPtr.Handle != global::System.IntPtr.Zero) { if (swigCMemOwn) { swigCMemOwn = false; msclPINVOKE.delete_ChannelGroup(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } global::System.GC.SuppressFinalize(this); } } public ChannelGroup() : this(msclPINVOKE.new_ChannelGroup(), true) { if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); } public ChannelMask channels() { ChannelMask ret = new ChannelMask(msclPINVOKE.ChannelGroup_channels(swigCPtr), false); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); return ret; } public string name() { string ret = msclPINVOKE.ChannelGroup_name(swigCPtr); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); return ret; } public ushort eepromLocation(WirelessTypes.ChannelGroupSetting setting) { ushort ret = msclPINVOKE.ChannelGroup_eepromLocation(swigCPtr, (int)setting); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); return ret; } public ChannelGroupSettings settings() { ChannelGroupSettings ret = new ChannelGroupSettings(msclPINVOKE.ChannelGroup_settings(swigCPtr), false); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); return ret; } public bool hasSetting(WirelessTypes.ChannelGroupSetting setting) { bool ret = msclPINVOKE.ChannelGroup_hasSetting(swigCPtr, (int)setting); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); return ret; } public bool hasSettingAndChannel(WirelessTypes.ChannelGroupSetting setting, byte channelNumber) { bool ret = msclPINVOKE.ChannelGroup_hasSettingAndChannel(swigCPtr, (int)setting, channelNumber); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); return ret; } } }