//------------------------------------------------------------------------------ // // // 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 HeadingUpdateOptions : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; internal HeadingUpdateOptions(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(HeadingUpdateOptions obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } ~HeadingUpdateOptions() { Dispose(); } public virtual void Dispose() { lock(this) { if (swigCPtr.Handle != global::System.IntPtr.Zero) { if (swigCMemOwn) { swigCMemOwn = false; msclPINVOKE.delete_HeadingUpdateOptions(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } global::System.GC.SuppressFinalize(this); } } public InertialTypes.HeadingUpdateEnableOption AsOptionId() { InertialTypes.HeadingUpdateEnableOption ret = (InertialTypes.HeadingUpdateEnableOption)msclPINVOKE.HeadingUpdateOptions_AsOptionId(swigCPtr); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); return ret; } public HeadingUpdateOptions() : this(msclPINVOKE.new_HeadingUpdateOptions__SWIG_0(), true) { if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); } public HeadingUpdateOptions(InertialTypes.HeadingUpdateEnableOption headingUpdateOption) : this(msclPINVOKE.new_HeadingUpdateOptions__SWIG_1((int)headingUpdateOption), true) { if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); } public bool useInternalMagnetometer { set { msclPINVOKE.HeadingUpdateOptions_useInternalMagnetometer_set(swigCPtr, value); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); } get { bool ret = msclPINVOKE.HeadingUpdateOptions_useInternalMagnetometer_get(swigCPtr); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public bool useInternalGNSSVelocityVector { set { msclPINVOKE.HeadingUpdateOptions_useInternalGNSSVelocityVector_set(swigCPtr, value); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); } get { bool ret = msclPINVOKE.HeadingUpdateOptions_useInternalGNSSVelocityVector_get(swigCPtr); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public bool useExternalHeadingMessages { set { msclPINVOKE.HeadingUpdateOptions_useExternalHeadingMessages_set(swigCPtr, value); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); } get { bool ret = msclPINVOKE.HeadingUpdateOptions_useExternalHeadingMessages_get(swigCPtr); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); return ret; } } } }