SBMLConverter clone()
        {
            SBMLConverter ret
                = (SBMLConverter)libsbml.DowncastSBMLConverter((SwigDerivedClassHasMethod("clone", swigMethodTypes0) ? libsbmlPINVOKE.SBMLConverter_cloneSwigExplicitSBMLConverter(swigCPtr) : libsbmlPINVOKE.SBMLConverter_clone(swigCPtr)), true);

            return(ret);
        }
Пример #2
0
        SBMLConverter clone()
        {
            IntPtr        cPtr = libsbmlPINVOKE.SBMLRuleConverter_clone(swigCPtr);
            SBMLConverter ret  = (cPtr == IntPtr.Zero) ? null : new SBMLConverter(cPtr, true);

            return(ret);
        }
Пример #3
0
        SBMLConverter getConverterByIndex(int index)
        {
            SBMLConverter ret
                = (SBMLConverter)libsbml.DowncastSBMLConverter(libsbmlPINVOKE.SBMLConverterRegistry_getConverterByIndex(swigCPtr, index), false);

            return(ret);
        }
Пример #4
0
        SBMLConverter clone()
        {
            IntPtr        cPtr = (SwigDerivedClassHasMethod("clone", swigMethodTypes0) ? libsbmlPINVOKE.SBMLConverter_cloneSwigExplicitSBMLConverter(swigCPtr) : libsbmlPINVOKE.SBMLConverter_clone(swigCPtr));
            SBMLConverter ret  = (cPtr == IntPtr.Zero) ? null : new SBMLConverter(cPtr, true);

            return(ret);
        }
Пример #5
0
        SBMLConverter getConverterByIndex(int index)
        {
            IntPtr        cPtr = libsbmlPINVOKE.SBMLConverterRegistry_getConverterByIndex(swigCPtr, index);
            SBMLConverter ret  = (cPtr == IntPtr.Zero) ? null : new SBMLConverter(cPtr, false);

            return(ret);
        }
 SBMLConverter(SBMLConverter orig) : this(libsbmlPINVOKE.new_SBMLConverter__SWIG_2(SBMLConverter.getCPtr(orig)), true)
 {
     if (libsbmlPINVOKE.SWIGPendingException.Pending)
     {
         throw libsbmlPINVOKE.SWIGPendingException.Retrieve();
     }
     SwigDirectorConnect();
 }
Пример #7
0
        SBMLConverter getConverterFor(ConversionProperties props)
        {
            SBMLConverter ret
                = (SBMLConverter)libsbml.DowncastSBMLConverter(libsbmlPINVOKE.SBMLConverterRegistry_getConverterFor(swigCPtr, ConversionProperties.getCPtr(props)), false);

            if (libsbmlPINVOKE.SWIGPendingException.Pending)
            {
                throw libsbmlPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #8
0
        SBMLConverter getConverterFor(ConversionProperties props)
        {
            IntPtr        cPtr = libsbmlPINVOKE.SBMLConverterRegistry_getConverterFor(swigCPtr, ConversionProperties.getCPtr(props));
            SBMLConverter ret  = (cPtr == IntPtr.Zero) ? null : new SBMLConverter(cPtr, false);

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

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

            return(ptr);
        }
Пример #10
0
 internal static HandleRef getCPtr(SBMLConverter obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Пример #11
0
 public static extern void SBMLConverter_director_connect(HandleRef jarg1, SBMLConverter.SwigDelegateSBMLConverter_0 delegate0, SBMLConverter.SwigDelegateSBMLConverter_1 delegate1, SBMLConverter.SwigDelegateSBMLConverter_2 delegate2, SBMLConverter.SwigDelegateSBMLConverter_3 delegate3, SBMLConverter.SwigDelegateSBMLConverter_4 delegate4, SBMLConverter.SwigDelegateSBMLConverter_5 delegate5, SBMLConverter.SwigDelegateSBMLConverter_6 delegate6, SBMLConverter.SwigDelegateSBMLConverter_7 delegate7, SBMLConverter.SwigDelegateSBMLConverter_8 delegate8, SBMLConverter.SwigDelegateSBMLConverter_9 delegate9);
Пример #12
0
        int addConverter(SBMLConverter converter)
        {
            int ret = libsbmlPINVOKE.SBMLConverterRegistry_addConverter(swigCPtr, SBMLConverter.getCPtr(converter));

            return(ret);
        }
 private IntPtr SwigDirectorclone()
 {
     return(SBMLConverter.getCPtr(clone()).Handle);
 }
Пример #14
0
 /**
    * Adds the given converter to the registry of SBML converters.
    *
    * @param converter the converter to add to the registry.
    *
    * @return integer value indicating the success/failure of the operation.
    * @if clike The value is drawn from the enumeration
    * #OperationReturnValues_t. @endif The possible values are:
    * @li @link libsbmlcs#LIBSBML_OPERATION_SUCCESS LIBSBML_OPERATION_SUCCESS@endlink
    * @li @link libsbmlcs#LIBSBML_INVALID_OBJECT LIBSBML_INVALID_OBJECT@endlink
    */
 public int addConverter(SBMLConverter converter)
 {
     int ret = libsbmlPINVOKE.SBMLConverterRegistry_addConverter(swigCPtr, SBMLConverter.getCPtr(converter));
     return ret;
 }
Пример #15
0
 private global::System.IntPtr SwigDirectorclone()
 {
     return(SBMLConverter.getCPtr(clone()).Handle);
 }
 internal static HandleRef getCPtr(SBMLConverter obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Пример #17
0
        internal static HandleRef getCPtrAndDisown(SBMLConverter obj)
        {
            HandleRef ptr = new HandleRef(null, IntPtr.Zero);

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

            return ptr;
        }
Пример #18
0
 /**
    * Copy constructor.
    *
    * This creates a copy of an SBMLConverter object.
    *
    * @param orig the SBMLConverter object to copy.
    */
 public SBMLConverter(SBMLConverter orig)
     : this(libsbmlPINVOKE.new_SBMLConverter__SWIG_2(SBMLConverter.getCPtr(orig)), true)
 {
     if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve();
     SwigDirectorConnect();
 }
Пример #19
0
        public static SBMLConverter DowncastSBMLConverter(IntPtr cPtr, bool owner)
        {
            if (cPtr.Equals(IntPtr.Zero)) return null;

            SBMLConverter con = new SBMLConverter(cPtr, false);
            string conName = con.getName();

            if (conName == "SBML Units Converter")
              return new SBMLUnitsConverter(cPtr,owner);
            else if (conName == "SBML Strip Package Converter")
              return new SBMLStripPackageConverter(cPtr,owner);
            else if (conName == "SBML Rule Converter")
              return new SBMLRuleConverter(cPtr,owner);
            else if (conName == "SBML Reaction Converter")
              return new SBMLReactionConverter(cPtr,owner);
            else if (conName == "SBML Local Parameter Converter")
              return new SBMLLocalParameterConverter(cPtr,owner);
            else if (conName == "SBML Level Version Converter")
              return new SBMLLevelVersionConverter(cPtr,owner);
            else if (conName == "SBML Initial Assignment Converter")
              return new SBMLInitialAssignmentConverter(cPtr,owner);
            else if (conName == "SBML Infer Units Converter")
              return new SBMLInferUnitsConverter(cPtr,owner);
            else if (conName == "SBML Id Converter")
              return new SBMLIdConverter(cPtr,owner);
            else if (conName == "SBML Function Definition Converter")
              return new SBMLFunctionDefinitionConverter(cPtr,owner);

            return new SBMLConverter(cPtr,owner);
        }