Наследование: IDisposable
Пример #1
0
        internal static HandleRef getCPtrAndDisown(XMLErrorLog obj)
        {
            HandleRef ptr = new HandleRef(null, IntPtr.Zero);

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

            return ptr;
        }
Пример #2
0
 /** */
 /* libsbml-internal */
 public XMLErrorLog(XMLErrorLog other)
     : this(libsbmlPINVOKE.new_XMLErrorLog__SWIG_1(XMLErrorLog.getCPtr(other)), true)
 {
     if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve();
 }
Пример #3
0
 internal static HandleRef getCPtr(XMLErrorLog obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Пример #4
0
 /**
    * Creates a new XMLInputStream.
    *
    * @param content the source of the stream.
    *
    * @param isFile a boolean flag to indicate whether @p content is a file
    * name.  If @c true, @p content is assumed to be the file from which the
    * XML content is to be read.  If @c false, @p content is taken to be a
    * string that @em is the content to be read.
    *
    * @param library the name of the parser library to use.
    *
    * @param errorLog the XMLErrorLog object to use.
    *
    * @ifnot hasDefaultArgs @htmlinclude warn-default-args-in-docs.html @endif
    */
 public XMLInputStream(string content, bool isFile, string library, XMLErrorLog errorLog)
     : this(libsbmlPINVOKE.new_XMLInputStream__SWIG_0(content, isFile, library, XMLErrorLog.getCPtr(errorLog)), true)
 {
 }
Пример #5
0
 /**
    * Sets the XMLErrorLog this stream will use to log errors.
    *
    *
  * @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_OPERATION_FAILED LIBSBML_OPERATION_FAILED@endlink
    */
 public int setErrorLog(XMLErrorLog log)
 {
     int ret = libsbmlPINVOKE.XMLInputStream_setErrorLog(swigCPtr, XMLErrorLog.getCPtr(log));
     return ret;
 }
Пример #6
0
        int setErrorLog(XMLErrorLog log)
        {
            int ret = libsbmlPINVOKE.XMLInputStream_setErrorLog(swigCPtr, XMLErrorLog.getCPtr(log));

            return(ret);
        }
Пример #7
0
 XMLInputStream(string content, bool isFile, string library, XMLErrorLog errorLog) : this(libsbmlPINVOKE.new_XMLInputStream__SWIG_0(content, isFile, library, XMLErrorLog.getCPtr(errorLog)), true)
 {
 }
Пример #8
0
 internal static HandleRef getCPtr(XMLErrorLog obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }