1 //------------------------------------------------------------------------------ 2 // <auto-generated /> 3 // 4 // This file was automatically generated by SWIG (http://www.swig.org). 5 // Version 4.0.2 6 // 7 // Do not make changes to this file unless you know what you are doing--modify 8 // the SWIG interface file instead. 9 //------------------------------------------------------------------------------ 10 11 namespace libsbml { 12 13 public class OStream : global::System.IDisposable { 14 private HandleRef swigCPtr; 15 protected bool swigCMemOwn; 16 OStream(IntPtr cPtr, bool cMemoryOwn)17 internal OStream(IntPtr cPtr, bool cMemoryOwn) 18 { 19 swigCMemOwn = cMemoryOwn; 20 swigCPtr = new HandleRef(this, cPtr); 21 } 22 getCPtr(OStream obj)23 internal static HandleRef getCPtr(OStream obj) 24 { 25 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; 26 } 27 getCPtrAndDisown(OStream obj)28 internal static HandleRef getCPtrAndDisown (OStream obj) 29 { 30 HandleRef ptr = new HandleRef(null, IntPtr.Zero); 31 32 if (obj != null) 33 { 34 ptr = obj.swigCPtr; 35 obj.swigCMemOwn = false; 36 } 37 38 return ptr; 39 } 40 ~OStream()41 ~OStream() { 42 Dispose(false); 43 } 44 Dispose()45 public void Dispose() { 46 Dispose(true); 47 global::System.GC.SuppressFinalize(this); 48 } 49 Dispose(bool disposing)50 protected virtual void Dispose(bool disposing) { 51 lock(this) { 52 if (swigCPtr.Handle != global::System.IntPtr.Zero) { 53 if (swigCMemOwn) { 54 swigCMemOwn = false; 55 libsbmlPINVOKE.delete_OStream(swigCPtr); 56 } 57 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); 58 } 59 } 60 } 61 OStream(int sot)62 public OStream(int sot) : this(libsbmlPINVOKE.new_OStream__SWIG_0(sot), true) { 63 } 64 OStream()65 public OStream() : this(libsbmlPINVOKE.new_OStream__SWIG_1(), true) { 66 } 67 get_ostream()68 public virtual SWIGTYPE_p_std__ostream get_ostream() { 69 global::System.IntPtr cPtr = libsbmlPINVOKE.OStream_get_ostream(swigCPtr); 70 SWIGTYPE_p_std__ostream ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_std__ostream(cPtr, false); 71 return ret; 72 } 73 endl()74 public void endl() { 75 libsbmlPINVOKE.OStream_endl(swigCPtr); 76 } 77 78 // StdOSType 79 public const int COUT = 0; 80 public const int CERR = COUT + 1; 81 public const int CLOG = CERR + 1; 82 83 } 84 85 } 86