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  using System;
14  using System.Runtime.InteropServices;
15 
16 /**
17  * @sbmlpackage{core}
18  *
19 @htmlinclude pkg-marker-core.html
20  *
21  * @htmlinclude not-sbml-warning.html
22  * @internal
23  */
24 
25 public class ISBMLExtensionNamespaces : SBMLNamespaces {
26 	private HandleRef swigCPtr;
27 
ISBMLExtensionNamespaces(IntPtr cPtr, bool cMemoryOwn)28 	internal ISBMLExtensionNamespaces(IntPtr cPtr, bool cMemoryOwn) : base(libsbmlPINVOKE.ISBMLExtensionNamespaces_SWIGUpcast(cPtr), cMemoryOwn)
29 	{
30 		//super(libsbmlPINVOKE.ISBMLExtensionNamespacesUpcast(cPtr), cMemoryOwn);
31 		swigCPtr = new HandleRef(this, cPtr);
32 	}
33 
getCPtr(ISBMLExtensionNamespaces obj)34 	internal static HandleRef getCPtr(ISBMLExtensionNamespaces obj)
35 	{
36 		return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
37 	}
38 
getCPtrAndDisown(ISBMLExtensionNamespaces obj)39 	internal static HandleRef getCPtrAndDisown (ISBMLExtensionNamespaces obj)
40 	{
41 		HandleRef ptr = new HandleRef(null, IntPtr.Zero);
42 
43 		if (obj != null)
44 		{
45 			ptr             = obj.swigCPtr;
46 			obj.swigCMemOwn = false;
47 		}
48 
49 		return ptr;
50 	}
51 
Dispose(bool disposing)52   protected override void Dispose(bool disposing) {
53     lock(this) {
54       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
55         if (swigCMemOwn) {
56           swigCMemOwn = false;
57           libsbmlPINVOKE.delete_ISBMLExtensionNamespaces(swigCPtr);
58         }
59         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
60       }
61       base.Dispose(disposing);
62     }
63   }
64 
65 
66 /**
67    * Returns a string representing the SBML XML namespace of this
68    * object.
69    *
70    * @return a string representing the SBML namespace that reflects the
71    * SBML Level and Version of this object.
72    */ public new
getURI()73  string getURI() {
74     string ret = libsbmlPINVOKE.ISBMLExtensionNamespaces_getURI(swigCPtr);
75     return ret;
76   }
77 
getPackageVersion()78   public virtual long getPackageVersion() { return (long)libsbmlPINVOKE.ISBMLExtensionNamespaces_getPackageVersion(swigCPtr); }
79 
80 
81 /**
82    * Returns the name of the main package for this namespace.
83    *
84    * @return the name of the main package for this namespace.
85    * 'core' will be returned if this namespace is defined in the SBML
86    * core.
87    */ public new
getPackageName()88  string getPackageName() {
89     string ret = libsbmlPINVOKE.ISBMLExtensionNamespaces_getPackageName(swigCPtr);
90     return ret;
91   }
92 
setPackageVersion(long pkgVersion)93   public virtual void setPackageVersion(long pkgVersion) {
94     libsbmlPINVOKE.ISBMLExtensionNamespaces_setPackageVersion(swigCPtr, pkgVersion);
95   }
96 
97 }
98 
99 }
100