| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| |
|
| |
|
| | public class ConfigurationItem : global::System.IDisposable { |
| | private global::System.Runtime.InteropServices.HandleRef swigCPtr; |
| | protected bool swigCMemOwn; |
| |
|
| | internal ConfigurationItem(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(ConfigurationItem obj) { |
| | return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; |
| | } |
| |
|
| | ~ConfigurationItem() { |
| | Dispose(false); |
| | } |
| |
|
| | public void Dispose() { |
| | Dispose(true); |
| | global::System.GC.SuppressFinalize(this); |
| | } |
| |
|
| | protected virtual void Dispose(bool disposing) { |
| | lock(this) { |
| | if (swigCPtr.Handle != global::System.IntPtr.Zero) { |
| | if (swigCMemOwn) { |
| | swigCMemOwn = false; |
| | CoolPropPINVOKE.delete_ConfigurationItem(swigCPtr); |
| | } |
| | swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); |
| | } |
| | } |
| | } |
| |
|
| | public ConfigurationItem(configuration_keys key, bool val) : this(CoolPropPINVOKE.new_ConfigurationItem__SWIG_0((int)key, val), true) { |
| | if (CoolPropPINVOKE.SWIGPendingException.Pending) throw CoolPropPINVOKE.SWIGPendingException.Retrieve(); |
| | } |
| |
|
| | public ConfigurationItem(configuration_keys key, int val) : this(CoolPropPINVOKE.new_ConfigurationItem__SWIG_1((int)key, val), true) { |
| | if (CoolPropPINVOKE.SWIGPendingException.Pending) throw CoolPropPINVOKE.SWIGPendingException.Retrieve(); |
| | } |
| |
|
| | public ConfigurationItem(configuration_keys key, double val) : this(CoolPropPINVOKE.new_ConfigurationItem__SWIG_2((int)key, val), true) { |
| | if (CoolPropPINVOKE.SWIGPendingException.Pending) throw CoolPropPINVOKE.SWIGPendingException.Retrieve(); |
| | } |
| |
|
| | public ConfigurationItem(configuration_keys key, string val) : this(CoolPropPINVOKE.new_ConfigurationItem__SWIG_3((int)key, val), true) { |
| | if (CoolPropPINVOKE.SWIGPendingException.Pending) throw CoolPropPINVOKE.SWIGPendingException.Retrieve(); |
| | } |
| |
|
| | public void set_bool(bool val) { |
| | CoolPropPINVOKE.ConfigurationItem_set_bool(swigCPtr, val); |
| | if (CoolPropPINVOKE.SWIGPendingException.Pending) throw CoolPropPINVOKE.SWIGPendingException.Retrieve(); |
| | } |
| |
|
| | public void set_integer(int val) { |
| | CoolPropPINVOKE.ConfigurationItem_set_integer(swigCPtr, val); |
| | if (CoolPropPINVOKE.SWIGPendingException.Pending) throw CoolPropPINVOKE.SWIGPendingException.Retrieve(); |
| | } |
| |
|
| | public void set_double(double val) { |
| | CoolPropPINVOKE.ConfigurationItem_set_double(swigCPtr, val); |
| | if (CoolPropPINVOKE.SWIGPendingException.Pending) throw CoolPropPINVOKE.SWIGPendingException.Retrieve(); |
| | } |
| |
|
| | public void set_string(string val) { |
| | CoolPropPINVOKE.ConfigurationItem_set_string(swigCPtr, val); |
| | if (CoolPropPINVOKE.SWIGPendingException.Pending) throw CoolPropPINVOKE.SWIGPendingException.Retrieve(); |
| | } |
| |
|
| | public configuration_keys get_key() { |
| | configuration_keys ret = (configuration_keys)CoolPropPINVOKE.ConfigurationItem_get_key(swigCPtr); |
| | if (CoolPropPINVOKE.SWIGPendingException.Pending) throw CoolPropPINVOKE.SWIGPendingException.Retrieve(); |
| | return ret; |
| | } |
| |
|
| | } |
| |
|