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

            return(ret);
        }
        SBMLConverter clone()
        {
            IntPtr        cPtr = libsbmlPINVOKE.SBMLFunctionDefinitionConverter_clone(swigCPtr);
            SBMLConverter ret  = (cPtr == IntPtr.Zero) ? null : new SBMLConverter(cPtr, true);

            return(ret);
        }
        SBMLConverter clone()
        {
            IntPtr        cPtr = libsbmlPINVOKE.SBMLInitialAssignmentConverter_clone(swigCPtr);
            SBMLConverter ret  = (cPtr == IntPtr.Zero) ? null : new SBMLConverter(cPtr, true);

            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);
        }
        SBMLConverter getConverterByIndex(int index)
        {
            IntPtr        cPtr = libsbmlPINVOKE.SBMLConverterRegistry_getConverterByIndex(swigCPtr, index);
            SBMLConverter ret  = (cPtr == IntPtr.Zero) ? null : new SBMLConverter(cPtr, false);

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

            return(ret);
        }
Пример #7
0
 SBMLConverter(SBMLConverter c) : this(libsbmlPINVOKE.new_SBMLConverter__SWIG_1(SBMLConverter.getCPtr(c)), true)
 {
     if (libsbmlPINVOKE.SWIGPendingException.Pending)
     {
         throw libsbmlPINVOKE.SWIGPendingException.Retrieve();
     }
     SwigDirectorConnect();
 }
        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);
        }
Пример #9
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);
        }
Пример #10
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);
        }
Пример #11
0
 internal static HandleRef getCPtr(SBMLConverter obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Пример #12
0
 private IntPtr SwigDirectorclone()
 {
     return(SBMLConverter.getCPtr(clone()).Handle);
 }
Пример #13
0
 internal static HandleRef getCPtr(SBMLConverter obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Пример #14
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);
Пример #15
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);
        }
 /**
    * 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.LIBSBML_OPERATION_SUCCESS LIBSBML_OPERATION_SUCCESS @endlink
    * @li @link libsbmlcs.libsbml.LIBSBML_INVALID_OBJECT LIBSBML_INVALID_OBJECT @endlink
    */
 public int addConverter(SBMLConverter converter)
 {
     int ret = libsbmlPINVOKE.SBMLConverterRegistry_addConverter(swigCPtr, SBMLConverter.getCPtr(converter));
     return ret;
 }
Пример #17
0
        int addConverter(SBMLConverter converter)
        {
            int ret = libsbmlPINVOKE.SBMLConverterRegistry_addConverter(swigCPtr, SBMLConverter.getCPtr(converter));

            return(ret);
        }
Пример #18
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;
        }
Пример #19
0
 /**
    * Copy constructor; creates a copy of an SBMLConverter object.
    *
    * @param c the SBMLConverter object to copy.
    *
    * @throws @if python ValueError @else SBMLConstructorException @endif
    * Thrown if the argument @p orig is @c null.
    */
 public SBMLConverter(SBMLConverter c)
     : this(libsbmlPINVOKE.new_SBMLConverter__SWIG_1(SBMLConverter.getCPtr(c)), true)
 {
     if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve();
     SwigDirectorConnect();
 }
 private global::System.IntPtr SwigDirectorclone()
 {
     return(SBMLConverter.getCPtr(clone()).Handle);
 }