1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 3.0.13
6 //
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
10 
11 namespace Xapian {
12 
13 public class DateRangeProcessor : RangeProcessor {
14   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15 
DateRangeProcessor(global::System.IntPtr cPtr, bool cMemoryOwn)16   internal DateRangeProcessor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(XapianPINVOKE.DateRangeProcessor_SWIGUpcast(cPtr), cMemoryOwn) {
17     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
18   }
19 
getCPtr(DateRangeProcessor obj)20   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(DateRangeProcessor obj) {
21     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
22   }
23 
~DateRangeProcessor()24   ~DateRangeProcessor() {
25     Dispose();
26   }
27 
Dispose()28   public override void Dispose() {
29     lock(this) {
30       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
31         if (swigCMemOwn) {
32           swigCMemOwn = false;
33           XapianPINVOKE.delete_DateRangeProcessor(swigCPtr);
34         }
35         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
36       }
37       global::System.GC.SuppressFinalize(this);
38       base.Dispose();
39     }
40   }
41 
DateRangeProcessor(uint slot_, uint flags_, int epoch_year_)42   public DateRangeProcessor(uint slot_, uint flags_, int epoch_year_) : this(XapianPINVOKE.new_DateRangeProcessor__SWIG_0(slot_, flags_, epoch_year_), true) {
43     if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve();
44   }
45 
DateRangeProcessor(uint slot_, uint flags_)46   public DateRangeProcessor(uint slot_, uint flags_) : this(XapianPINVOKE.new_DateRangeProcessor__SWIG_1(slot_, flags_), true) {
47     if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve();
48   }
49 
DateRangeProcessor(uint slot_)50   public DateRangeProcessor(uint slot_) : this(XapianPINVOKE.new_DateRangeProcessor__SWIG_2(slot_), true) {
51     if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve();
52   }
53 
DateRangeProcessor(uint slot_, string str_, uint flags_, int epoch_year_)54   public DateRangeProcessor(uint slot_, string str_, uint flags_, int epoch_year_) : this(XapianPINVOKE.new_DateRangeProcessor__SWIG_3(slot_, str_, flags_, epoch_year_), true) {
55     if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve();
56   }
57 
DateRangeProcessor(uint slot_, string str_, uint flags_)58   public DateRangeProcessor(uint slot_, string str_, uint flags_) : this(XapianPINVOKE.new_DateRangeProcessor__SWIG_4(slot_, str_, flags_), true) {
59     if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve();
60   }
61 
DateRangeProcessor(uint slot_, string str_)62   public DateRangeProcessor(uint slot_, string str_) : this(XapianPINVOKE.new_DateRangeProcessor__SWIG_5(slot_, str_), true) {
63     if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve();
64   }
65 
Apply(string begin, string end)66   public override Query Apply(string begin, string end) {
67     Query ret = new Query(XapianPINVOKE.DateRangeProcessor_Apply(swigCPtr, begin, end), true);
68     if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve();
69     return ret;
70   }
71 
72 }
73 
74 }
75