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

using System;
public class XmlIndexSpecification : IDisposable {
  private IntPtr swigCPtr;
  protected bool swigCMemOwn;

  internal XmlIndexSpecification(IntPtr cPtr, bool cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public virtual void Dispose() {
    delete();
  }

  protected virtual void delete() {
    if(swigCPtr != IntPtr.Zero && swigCMemOwn) {
      dbxml_dotnetPINVOKE.delete_XmlIndexSpecification(swigCPtr);
      swigCMemOwn = false;
    }
    swigCPtr = IntPtr.Zero;
  }

  internal static IntPtr getCPtr(XmlIndexSpecification obj) {
    return (obj == null) ? IntPtr.Zero : obj.swigCPtr;
  }

  public XmlIndexSpecification() : this(dbxml_dotnetPINVOKE.new_XmlIndexSpecification(), true) {
  }

  public void addIndex(SWIGTYPE_p_std__string uri, SWIGTYPE_p_std__string name, SWIGTYPE_p_std__string index) {
    dbxml_dotnetPINVOKE.XmlIndexSpecification_addIndex(swigCPtr, SWIGTYPE_p_std__string.getCPtr(uri), SWIGTYPE_p_std__string.getCPtr(name), SWIGTYPE_p_std__string.getCPtr(index));
  }

  public void deleteIndex(SWIGTYPE_p_std__string uri, SWIGTYPE_p_std__string name, SWIGTYPE_p_std__string index) {
    dbxml_dotnetPINVOKE.XmlIndexSpecification_deleteIndex(swigCPtr, SWIGTYPE_p_std__string.getCPtr(uri), SWIGTYPE_p_std__string.getCPtr(name), SWIGTYPE_p_std__string.getCPtr(index));
  }

  public void replaceIndex(SWIGTYPE_p_std__string uri, SWIGTYPE_p_std__string name, SWIGTYPE_p_std__string index) {
    dbxml_dotnetPINVOKE.XmlIndexSpecification_replaceIndex(swigCPtr, SWIGTYPE_p_std__string.getCPtr(uri), SWIGTYPE_p_std__string.getCPtr(name), SWIGTYPE_p_std__string.getCPtr(index));
  }

  public void reset() {
    dbxml_dotnetPINVOKE.XmlIndexSpecification_reset(swigCPtr);
  }

  public XmlIndexDeclaration find(SWIGTYPE_p_std__string uri, SWIGTYPE_p_std__string name) {
    IntPtr cPtr = dbxml_dotnetPINVOKE.XmlIndexSpecification_find(swigCPtr, SWIGTYPE_p_std__string.getCPtr(uri), SWIGTYPE_p_std__string.getCPtr(name));
    return (cPtr == IntPtr.Zero) ? null : new XmlIndexDeclaration(cPtr, true);
  }

  public XmlIndexDeclaration next() {
    IntPtr cPtr = dbxml_dotnetPINVOKE.XmlIndexSpecification_next(swigCPtr);
    return (cPtr == IntPtr.Zero) ? null : new XmlIndexDeclaration(cPtr, true);
  }

}
