/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 1.3.39 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ namespace libsbml { using System; using System.Runtime.InteropServices; public class SBMLError : XMLError { private HandleRef swigCPtr; internal SBMLError(IntPtr cPtr, bool cMemoryOwn) : base(libsbmlPINVOKE.SBMLErrorUpcast(cPtr), cMemoryOwn) { //super(libsbmlPINVOKE.SBMLErrorUpcast(cPtr), cMemoryOwn); swigCPtr = new HandleRef(this, cPtr); } internal static HandleRef getCPtr(SBMLError obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; } internal static HandleRef getCPtrAndDisown (SBMLError obj) { HandleRef ptr = new HandleRef(null, IntPtr.Zero); if (obj != null) { ptr = obj.swigCPtr; obj.swigCMemOwn = false; } return ptr; } ~SBMLError() { Dispose(); } public override void Dispose() { lock(this) { if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { swigCMemOwn = false; libsbmlPINVOKE.delete_SBMLError(swigCPtr); } swigCPtr = new HandleRef(null, IntPtr.Zero); GC.SuppressFinalize(this); base.Dispose(); } } public SBMLError(long errorId, long level, long version, string details, long line, long column, long severity, long category) : this(libsbmlPINVOKE.new_SBMLError__SWIG_0(errorId, level, version, details, line, column, severity, category), true) { } public SBMLError(long errorId, long level, long version, string details, long line, long column, long severity) : this(libsbmlPINVOKE.new_SBMLError__SWIG_1(errorId, level, version, details, line, column, severity), true) { } public SBMLError(long errorId, long level, long version, string details, long line, long column) : this(libsbmlPINVOKE.new_SBMLError__SWIG_2(errorId, level, version, details, line, column), true) { } public SBMLError(long errorId, long level, long version, string details, long line) : this(libsbmlPINVOKE.new_SBMLError__SWIG_3(errorId, level, version, details, line), true) { } public SBMLError(long errorId, long level, long version, string details) : this(libsbmlPINVOKE.new_SBMLError__SWIG_4(errorId, level, version, details), true) { } public SBMLError(long errorId, long level, long version) : this(libsbmlPINVOKE.new_SBMLError__SWIG_5(errorId, level, version), true) { } public SBMLError(long errorId, long level) : this(libsbmlPINVOKE.new_SBMLError__SWIG_6(errorId, level), true) { } public SBMLError(long errorId) : this(libsbmlPINVOKE.new_SBMLError__SWIG_7(errorId), true) { } public SBMLError() : this(libsbmlPINVOKE.new_SBMLError__SWIG_8(), true) { } public SBMLError(SBMLError orig) : this(libsbmlPINVOKE.new_SBMLError__SWIG_9(SBMLError.getCPtr(orig)), true) { if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve(); } } }