/* ----------------------------------------------------------------------------
 * 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.
 * ----------------------------------------------------------------------------- */


public class OBOp extends OBPlugin {
  private long swigCPtr;

  protected OBOp(long cPtr, boolean cMemoryOwn) {
    super(openbabelJNI.SWIGOBOpUpcast(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  protected static long getCPtr(OBOp obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if(swigCPtr != 0 && swigCMemOwn) {
      swigCMemOwn = false;
      openbabelJNI.delete_OBOp(swigCPtr);
    }
    swigCPtr = 0;
    super.delete();
  }

  public static OBOp Default() {
    long cPtr = openbabelJNI.OBOp_Default();
    return (cPtr == 0) ? null : new OBOp(cPtr, false);
  }

  public static OBOp FindType(String ID) {
    long cPtr = openbabelJNI.OBOp_FindType(ID);
    return (cPtr == 0) ? null : new OBOp(cPtr, false);
  }

  public String TypeID() {
    return openbabelJNI.OBOp_TypeID(swigCPtr, this);
  }

  public boolean Do(OBBase pOb, SWIGTYPE_p_std__mapT_std__string_std__string_t pOptions, String OptionText) {
    return openbabelJNI.OBOp_Do__SWIG_0(swigCPtr, this, OBBase.getCPtr(pOb), pOb, SWIGTYPE_p_std__mapT_std__string_std__string_t.getCPtr(pOptions), OptionText);
  }

  public boolean Do(OBBase pOb, SWIGTYPE_p_std__mapT_std__string_std__string_t pOptions) {
    return openbabelJNI.OBOp_Do__SWIG_1(swigCPtr, this, OBBase.getCPtr(pOb), pOb, SWIGTYPE_p_std__mapT_std__string_std__string_t.getCPtr(pOptions));
  }

  public boolean Do(OBBase pOb) {
    return openbabelJNI.OBOp_Do__SWIG_2(swigCPtr, this, OBBase.getCPtr(pOb), pOb);
  }

  public boolean WorksWith(OBBase pOb) {
    return openbabelJNI.OBOp_WorksWith(swigCPtr, this, OBBase.getCPtr(pOb), pOb);
  }

  public static String OpOptions(OBBase pOb) {
    return openbabelJNI.OBOp_OpOptions(OBBase.getCPtr(pOb), pOb);
  }

  public static boolean DoOps(OBBase pOb, SWIGTYPE_p_std__mapT_std__string_std__string_t pOptions) {
    return openbabelJNI.OBOp_DoOps(OBBase.getCPtr(pOb), pOb, SWIGTYPE_p_std__mapT_std__string_std__string_t.getCPtr(pOptions));
  }

}
