/* ----------------------------------------------------------------------------
 * 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 XPathExpression : IDisposable {
  private IntPtr swigCPtr;
  protected bool swigCMemOwn;

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

  protected XPathExpression() : this(IntPtr.Zero, false) {
  }

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

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

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

  public XPathExpression(XmlContainer arg0) : this(dbxml_dotnetPINVOKE.new_XPathExpression(XmlContainer.getCPtr(arg0)), true) {
  }

  public string getXPathQuery() {
    return dbxml_dotnetPINVOKE.XPathExpression_getXPathQuery(swigCPtr);
  }

}
