/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 1.3.36
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */


using System;
using System.Runtime.InteropServices;

public class OBOp : OBPlugin {
  private HandleRef swigCPtr;

  internal OBOp(IntPtr cPtr, bool cMemoryOwn) : base(openbabelPINVOKE.OBOpUpcast(cPtr), cMemoryOwn) {
    swigCPtr = new HandleRef(this, cPtr);
  }

  internal static HandleRef getCPtr(OBOp obj) {
    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  }

  ~OBOp() {
    Dispose();
  }

  public override void Dispose() {
    lock(this) {
      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
        swigCMemOwn = false;
        openbabelPINVOKE.delete_OBOp(swigCPtr);
      }
      swigCPtr = new HandleRef(null, IntPtr.Zero);
      GC.SuppressFinalize(this);
      base.Dispose();
    }
  }

  public static OBOp Default() {
    IntPtr cPtr = openbabelPINVOKE.OBOp_Default();
    OBOp ret = (cPtr == IntPtr.Zero) ? null : new OBOp(cPtr, false);
    return ret;
  }

  public static OBOp FindType(string ID) {
    IntPtr cPtr = openbabelPINVOKE.OBOp_FindType(ID);
    OBOp ret = (cPtr == IntPtr.Zero) ? null : new OBOp(cPtr, false);
    return ret;
  }

  public virtual string TypeID() {
    string ret = openbabelPINVOKE.OBOp_TypeID(swigCPtr);
    return ret;
  }

  public virtual bool Do(OBBase pOb, SWIGTYPE_p_std__mapT_std__string_std__string_t pOptions, string OptionText) {
    bool ret = openbabelPINVOKE.OBOp_Do__SWIG_0(swigCPtr, OBBase.getCPtr(pOb), SWIGTYPE_p_std__mapT_std__string_std__string_t.getCPtr(pOptions), OptionText);
    return ret;
  }

  public virtual bool Do(OBBase pOb, SWIGTYPE_p_std__mapT_std__string_std__string_t pOptions) {
    bool ret = openbabelPINVOKE.OBOp_Do__SWIG_1(swigCPtr, OBBase.getCPtr(pOb), SWIGTYPE_p_std__mapT_std__string_std__string_t.getCPtr(pOptions));
    return ret;
  }

  public virtual bool Do(OBBase pOb) {
    bool ret = openbabelPINVOKE.OBOp_Do__SWIG_2(swigCPtr, OBBase.getCPtr(pOb));
    return ret;
  }

  public virtual bool WorksWith(OBBase pOb) {
    bool ret = openbabelPINVOKE.OBOp_WorksWith(swigCPtr, OBBase.getCPtr(pOb));
    return ret;
  }

  public static string OpOptions(OBBase pOb) {
    string ret = openbabelPINVOKE.OBOp_OpOptions(OBBase.getCPtr(pOb));
    return ret;
  }

  public static bool DoOps(OBBase pOb, SWIGTYPE_p_std__mapT_std__string_std__string_t pOptions) {
    bool ret = openbabelPINVOKE.OBOp_DoOps(OBBase.getCPtr(pOb), SWIGTYPE_p_std__mapT_std__string_std__string_t.getCPtr(pOptions));
    return ret;
  }

}
