Inheritance: IDisposable
Esempio n. 1
0
        SBMLExtension clone()
        {
            SBMLExtension ret
                = (SBMLExtension)libsbml.DowncastExtension(libsbmlPINVOKE.SBMLExtension_clone(swigCPtr), true);

            return(ret);
        }
Esempio n. 2
0
        SBMLExtension getSBMLExtension()
        {
            SBMLExtension ret
                = (SBMLExtension)libsbml.DowncastExtension(libsbmlPINVOKE.SBasePlugin_getSBMLExtension(swigCPtr), false);

            return(ret);
        }
Esempio n. 3
0
        SBMLExtension getExtension(string package)
        {
            SBMLExtension ret
                = (SBMLExtension)libsbml.DowncastExtension(libsbmlPINVOKE.SBMLExtensionRegistry_getExtension(swigCPtr, package), false);

            if (libsbmlPINVOKE.SWIGPendingException.Pending)
            {
                throw libsbmlPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 4
0
        internal static HandleRef getCPtrAndDisown(SBMLExtension obj)
        {
            HandleRef ptr = new HandleRef(null, IntPtr.Zero);

            if (obj != null)
            {
                ptr             = obj.swigCPtr;
                obj.swigCMemOwn = false;
            }

            return(ptr);
        }
Esempio n. 5
0
 internal static HandleRef getCPtr(SBMLExtension obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Esempio n. 6
0
        int setSBMLExtension(SBMLExtension ext)
        {
            int ret = libsbmlPINVOKE.ASTBasePlugin_setSBMLExtension(swigCPtr, SBMLExtension.getCPtr(ext));

            return(ret);
        }
Esempio n. 7
0
        int addExtension(SBMLExtension ext)
        {
            int ret = libsbmlPINVOKE.SBMLExtensionRegistry_addExtension(swigCPtr, SBMLExtension.getCPtr(ext));

            return(ret);
        }
Esempio n. 8
0
        internal static HandleRef getCPtrAndDisown(SBMLExtension obj)
        {
            HandleRef ptr = new HandleRef(null, IntPtr.Zero);

            if (obj != null)
            {
            ptr             = obj.swigCPtr;
            obj.swigCMemOwn = false;
            }

            return ptr;
        }
Esempio n. 9
0
 internal static HandleRef getCPtr(SBMLExtension obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
 /**
    * Add the given SBMLExtension object to this SBMLExtensionRegistry.
    *
    * @param ext the SBMLExtension object to be added.
    *
    *
  * @return integer value indicating success/failure of the
  * function.  @if clike The value is drawn from the
  * enumeration #OperationReturnValues_t. @endif The possible values
  * returned by this function are:
  * @li @link libsbml#LIBSBML_OPERATION_SUCCESS LIBSBML_OPERATION_SUCCESS@endlink
    * @li @link libsbml#LIBSBML_PKG_CONFLICT LIBSBML_PKG_CONFLICT@endlink
    * @li @link libsbml#LIBSBML_INVALID_ATTRIBUTE_VALUE LIBSBML_INVALID_ATTRIBUTE_VALUE@endlink
    */
 public int addExtension(SBMLExtension ext)
 {
     int ret = libsbmlPINVOKE.SBMLExtensionRegistry_addExtension(swigCPtr, SBMLExtension.getCPtr(ext));
     return ret;
 }
Esempio n. 11
0
        public static SBMLExtension DowncastExtension(IntPtr cPtr, bool owner)
        {
            if (cPtr.Equals(IntPtr.Zero)) return null;

            SBMLExtension ext = new SBMLExtension(cPtr, false);
            string pkgName = ext.getName();

            return new SBMLExtension(cPtr,owner);
        }
Esempio n. 12
0
 /** */
 /* libsbml-internal */
 public int setSBMLExtension(SBMLExtension ext)
 {
     int ret = libsbmlPINVOKE.ASTBasePlugin_setSBMLExtension(swigCPtr, SBMLExtension.getCPtr(ext));
     return ret;
 }