//------------------------------------------------------------------------------ // // // 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 DatalogDownloader : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; internal DatalogDownloader(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(DatalogDownloader obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } ~DatalogDownloader() { Dispose(); } public virtual void Dispose() { lock(this) { if (swigCPtr.Handle != global::System.IntPtr.Zero) { if (swigCMemOwn) { swigCMemOwn = false; msclPINVOKE.delete_DatalogDownloader(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } global::System.GC.SuppressFinalize(this); } } public DatalogDownloader(WirelessNode node) : this(msclPINVOKE.new_DatalogDownloader__SWIG_0(WirelessNode.getCPtr(node)), true) { if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); } public DatalogDownloader(WirelessNode node, uint startAddress, uint size) : this(msclPINVOKE.new_DatalogDownloader__SWIG_1(WirelessNode.getCPtr(node), startAddress, size), true) { if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); } public bool complete() { bool ret = msclPINVOKE.DatalogDownloader_complete(swigCPtr); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); return ret; } public float percentComplete() { float ret = msclPINVOKE.DatalogDownloader_percentComplete(swigCPtr); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); return ret; } public LoggedDataSweep getNextData() { LoggedDataSweep ret = new LoggedDataSweep(msclPINVOKE.DatalogDownloader_getNextData(swigCPtr), true); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); return ret; } public bool metaDataUpdated() { bool ret = msclPINVOKE.DatalogDownloader_metaDataUpdated(swigCPtr); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); return ret; } public bool calCoefficientsUpdated() { bool ret = msclPINVOKE.DatalogDownloader_calCoefficientsUpdated(swigCPtr); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); return ret; } public bool startOfSession() { bool ret = msclPINVOKE.DatalogDownloader_startOfSession(swigCPtr); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); return ret; } public ushort sessionIndex() { ushort ret = msclPINVOKE.DatalogDownloader_sessionIndex(swigCPtr); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); return ret; } public SampleRate sampleRate() { SampleRate ret = new SampleRate(msclPINVOKE.DatalogDownloader_sampleRate(swigCPtr), false); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); return ret; } public string userString() { string ret = msclPINVOKE.DatalogDownloader_userString(swigCPtr); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); return ret; } public ChannelCalMap calCoefficients() { ChannelCalMap ret = new ChannelCalMap(msclPINVOKE.DatalogDownloader_calCoefficients(swigCPtr), false); if (msclPINVOKE.SWIGPendingException.Pending) throw msclPINVOKE.SWIGPendingException.Retrieve(); return ret; } } }