ConversionOption(ConversionOption orig) : this(libsbmlPINVOKE.new_ConversionOption__SWIG_14(ConversionOption.getCPtr(orig)), true)
 {
     if (libsbmlPINVOKE.SWIGPendingException.Pending)
     {
         throw libsbmlPINVOKE.SWIGPendingException.Retrieve();
     }
 }
        ConversionOption clone()
        {
            IntPtr           cPtr = libsbmlPINVOKE.ConversionOption_clone(swigCPtr);
            ConversionOption ret  = (cPtr == IntPtr.Zero) ? null : new ConversionOption(cPtr, true);

            return(ret);
        }
        ConversionOption getOption(int index)
        {
            global::System.IntPtr cPtr = libsbmlPINVOKE.ConversionProperties_getOption__SWIG_1(swigCPtr, index);
            ConversionOption      ret  = (cPtr == global::System.IntPtr.Zero) ? null : new ConversionOption(cPtr, false);

            return(ret);
        }
 void addOption(ConversionOption option)
 {
     libsbmlPINVOKE.ConversionProperties_addOption__SWIG_0(swigCPtr, ConversionOption.getCPtr(option));
     if (libsbmlPINVOKE.SWIGPendingException.Pending)
     {
         throw libsbmlPINVOKE.SWIGPendingException.Retrieve();
     }
 }
        ConversionOption removeOption(string key)
        {
            global::System.IntPtr cPtr = libsbmlPINVOKE.ConversionProperties_removeOption(swigCPtr, key);
            ConversionOption      ret  = (cPtr == global::System.IntPtr.Zero) ? null : new ConversionOption(cPtr, false);

            if (libsbmlPINVOKE.SWIGPendingException.Pending)
            {
                throw libsbmlPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        ConversionOption getOption(string key)
        {
            IntPtr           cPtr = libsbmlPINVOKE.ConversionProperties_getOption__SWIG_0(swigCPtr, key);
            ConversionOption ret  = (cPtr == IntPtr.Zero) ? null : new ConversionOption(cPtr, false);

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

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

            return(ptr);
        }
 internal static HandleRef getCPtr(ConversionOption obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
 /**
    * Adds a copy of the given option to this properties object.
    *
    * @param option the option to add
    */
 public new void addOption(ConversionOption option)
 {
     libsbmlPINVOKE.ConversionProperties_addOption__SWIG_0(swigCPtr, ConversionOption.getCPtr(option));
     if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve();
 }
Esempio n. 10
0
        internal static HandleRef getCPtrAndDisown(ConversionOption obj)
        {
            HandleRef ptr = new HandleRef(null, IntPtr.Zero);

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

            return ptr;
        }
Esempio n. 11
0
 internal static HandleRef getCPtr(ConversionOption obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Esempio n. 12
0
 /**
    * Copy constructor; creates a copy of an ConversionOption object.
    *
    * @param orig the ConversionOption object to copy.
    *
    * @throws SBMLConstructorException
    * Thrown if the argument @p orig is @c null.
    */
 public ConversionOption(ConversionOption orig)
     : this(libsbmlPINVOKE.new_ConversionOption__SWIG_14(ConversionOption.getCPtr(orig)), true)
 {
     if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve();
 }