/** * Creates a new XMLInputStream. * * @param content the source of the stream. * * @param isFile a bool 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) { if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve(); }
/** */ /* libsbml-internal */ public XMLErrorLog(XMLErrorLog other) : this(libsbmlPINVOKE.new_XMLErrorLog__SWIG_1(XMLErrorLog.getCPtr(other)), true) { if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve(); }
/** * 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; }
internal static HandleRef getCPtrAndDisown(XMLErrorLog obj) { HandleRef ptr = new HandleRef(null, IntPtr.Zero); if (obj != null) { ptr = obj.swigCPtr; obj.swigCMemOwn = false; } return ptr; }
internal static HandleRef getCPtr(XMLErrorLog obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }
int setErrorLog(XMLErrorLog log) { int ret = libsbmlPINVOKE.XMLInputStream_setErrorLog(swigCPtr, XMLErrorLog.getCPtr(log)); return(ret); }
XMLInputStream(string content, bool isFile, string library, XMLErrorLog errorLog) : this(libsbmlPINVOKE.new_XMLInputStream__SWIG_0(content, isFile, library, XMLErrorLog.getCPtr(errorLog)), true) { if (libsbmlPINVOKE.SWIGPendingException.Pending) { throw libsbmlPINVOKE.SWIGPendingException.Retrieve(); } }
internal static HandleRef getCPtr(XMLErrorLog obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }