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

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

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

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

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

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

  public XmlModify(SWIGTYPE_p_std__string xpath, int operation, int type, SWIGTYPE_p_std__string name, SWIGTYPE_p_std__string content, int location, XmlQueryContext context) : this(dbxml_dotnetPINVOKE.new_XmlModify__SWIG_0(SWIGTYPE_p_std__string.getCPtr(xpath), operation, type, SWIGTYPE_p_std__string.getCPtr(name), SWIGTYPE_p_std__string.getCPtr(content), location, XmlQueryContext.getCPtr(context)), true) {
  }

  public XmlModify(XmlQueryExpression expression, int operation, int type, SWIGTYPE_p_std__string name, SWIGTYPE_p_std__string content, int location) : this(dbxml_dotnetPINVOKE.new_XmlModify__SWIG_1(XmlQueryExpression.getCPtr(expression), operation, type, SWIGTYPE_p_std__string.getCPtr(name), SWIGTYPE_p_std__string.getCPtr(content), location), true) {
  }

  public void setNewEncoding(SWIGTYPE_p_std__string newEncoding) {
    dbxml_dotnetPINVOKE.XmlModify_setNewEncoding(swigCPtr, SWIGTYPE_p_std__string.getCPtr(newEncoding));
  }

  public int getNumModifications() {
    return dbxml_dotnetPINVOKE.XmlModify_getNumModifications(swigCPtr);
  }

  // enums and constants
  public static int InsertAfter = dbxml_dotnetPINVOKE.get_XmlModify_InsertAfter();
  public static int InsertBefore = dbxml_dotnetPINVOKE.get_XmlModify_InsertBefore();
  public static int Append = dbxml_dotnetPINVOKE.get_XmlModify_Append();
  public static int Update = dbxml_dotnetPINVOKE.get_XmlModify_Update();
  public static int Remove = dbxml_dotnetPINVOKE.get_XmlModify_Remove();
  public static int Rename = dbxml_dotnetPINVOKE.get_XmlModify_Rename();
  public static int Element = dbxml_dotnetPINVOKE.get_XmlModify_Element();
  public static int Attribute = dbxml_dotnetPINVOKE.get_XmlModify_Attribute();
  public static int Text = dbxml_dotnetPINVOKE.get_XmlModify_Text();
  public static int ProcessingInstruction = dbxml_dotnetPINVOKE.get_XmlModify_ProcessingInstruction();
  public static int Comment = dbxml_dotnetPINVOKE.get_XmlModify_Comment();
  public static int None = dbxml_dotnetPINVOKE.get_XmlModify_None();
}
