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

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

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

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

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

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

  public XmlUpdateContext(XmlContainer container) : this(dbxml_dotnetPINVOKE.new_XmlUpdateContext(XmlContainer.getCPtr(container)), true) {
  }

}
