SBMLExtension clone() { SBMLExtension ret = (SBMLExtension)libsbml.DowncastExtension(libsbmlPINVOKE.SBMLExtension_clone(swigCPtr), true); return(ret); }
SBMLExtension getSBMLExtension() { SBMLExtension ret = (SBMLExtension)libsbml.DowncastExtension(libsbmlPINVOKE.SBasePlugin_getSBMLExtension(swigCPtr), false); return(ret); }
SBMLExtension getExtension(string package) { SBMLExtension ret = (SBMLExtension)libsbml.DowncastExtension(libsbmlPINVOKE.SBMLExtensionRegistry_getExtension(swigCPtr, package), false); if (libsbmlPINVOKE.SWIGPendingException.Pending) { throw libsbmlPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
internal static HandleRef getCPtrAndDisown(SBMLExtension obj) { HandleRef ptr = new HandleRef(null, IntPtr.Zero); if (obj != null) { ptr = obj.swigCPtr; obj.swigCMemOwn = false; } return(ptr); }
internal static HandleRef getCPtr(SBMLExtension obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }
int setSBMLExtension(SBMLExtension ext) { int ret = libsbmlPINVOKE.ASTBasePlugin_setSBMLExtension(swigCPtr, SBMLExtension.getCPtr(ext)); return(ret); }
int addExtension(SBMLExtension ext) { int ret = libsbmlPINVOKE.SBMLExtensionRegistry_addExtension(swigCPtr, SBMLExtension.getCPtr(ext)); return(ret); }
internal static HandleRef getCPtrAndDisown(SBMLExtension obj) { HandleRef ptr = new HandleRef(null, IntPtr.Zero); if (obj != null) { ptr = obj.swigCPtr; obj.swigCMemOwn = false; } return ptr; }
internal static HandleRef getCPtr(SBMLExtension obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }
/** * Add the given SBMLExtension object to this SBMLExtensionRegistry. * * @param ext the SBMLExtension object to be added. * * * @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_PKG_CONFLICT LIBSBML_PKG_CONFLICT@endlink * @li @link libsbml#LIBSBML_INVALID_ATTRIBUTE_VALUE LIBSBML_INVALID_ATTRIBUTE_VALUE@endlink */ public int addExtension(SBMLExtension ext) { int ret = libsbmlPINVOKE.SBMLExtensionRegistry_addExtension(swigCPtr, SBMLExtension.getCPtr(ext)); return ret; }
public static SBMLExtension DowncastExtension(IntPtr cPtr, bool owner) { if (cPtr.Equals(IntPtr.Zero)) return null; SBMLExtension ext = new SBMLExtension(cPtr, false); string pkgName = ext.getName(); return new SBMLExtension(cPtr,owner); }
/** */ /* libsbml-internal */ public int setSBMLExtension(SBMLExtension ext) { int ret = libsbmlPINVOKE.ASTBasePlugin_setSBMLExtension(swigCPtr, SBMLExtension.getCPtr(ext)); return ret; }