root/swish-e/branches/Vendor/swish-python/swish.py

Revision 1677, 9.8 kB (checked in by augur, 4 years ago)

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
3 # This file is compatible with both classic and new-style classes.
4
5 import _swish
6
7 def _swig_setattr(self,class_type,name,value):
8     if (name == "this"):
9         if isinstance(value, class_type):
10             self.__dict__[name] = value.this
11             if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown
12             del value.thisown
13             return
14     method = class_type.__swig_setmethods__.get(name,None)
15     if method: return method(self,value)
16     self.__dict__[name] = value
17
18 def _swig_getattr(self,class_type,name):
19     method = class_type.__swig_getmethods__.get(name,None)
20     if method: return method(self)
21     raise AttributeError,name
22
23 import types
24 try:
25     _object = types.ObjectType
26     _newclass = 1
27 except AttributeError:
28     class _object : pass
29     _newclass = 0
30 del types
31
32
33 SEARCHSWISH_H = _swish.SEARCHSWISH_H
34 SWISH_NUMBER = _swish.SWISH_NUMBER
35 SWISH_STRING = _swish.SWISH_STRING
36 SWISH_LIST = _swish.SWISH_LIST
37 SWISH_BOOL = _swish.SWISH_BOOL
38 SWISH_WORD_HASH = _swish.SWISH_WORD_HASH
39 SWISH_OTHER_DATA = _swish.SWISH_OTHER_DATA
40 SWISH_HEADER_ERROR = _swish.SWISH_HEADER_ERROR
41 class SWISH_HEADER_VALUE(_object):
42     __swig_setmethods__ = {}
43     __setattr__ = lambda self, name, value: _swig_setattr(self, SWISH_HEADER_VALUE, name, value)
44     __swig_getmethods__ = {}
45     __getattr__ = lambda self, name: _swig_getattr(self, SWISH_HEADER_VALUE, name)
46     def __repr__(self):
47         return "<C SWISH_HEADER_VALUE instance at %s>" % (self.this,)
48     __swig_setmethods__["string"] = _swish.SWISH_HEADER_VALUE_string_set
49     __swig_getmethods__["string"] = _swish.SWISH_HEADER_VALUE_string_get
50     if _newclass:string = property(_swish.SWISH_HEADER_VALUE_string_get, _swish.SWISH_HEADER_VALUE_string_set)
51     __swig_setmethods__["string_list"] = _swish.SWISH_HEADER_VALUE_string_list_set
52     __swig_getmethods__["string_list"] = _swish.SWISH_HEADER_VALUE_string_list_get
53     if _newclass:string_list = property(_swish.SWISH_HEADER_VALUE_string_list_get, _swish.SWISH_HEADER_VALUE_string_list_set)
54     __swig_setmethods__["number"] = _swish.SWISH_HEADER_VALUE_number_set
55     __swig_getmethods__["number"] = _swish.SWISH_HEADER_VALUE_number_get
56     if _newclass:number = property(_swish.SWISH_HEADER_VALUE_number_get, _swish.SWISH_HEADER_VALUE_number_set)
57     __swig_setmethods__["boolean"] = _swish.SWISH_HEADER_VALUE_boolean_set
58     __swig_getmethods__["boolean"] = _swish.SWISH_HEADER_VALUE_boolean_get
59     if _newclass:boolean = property(_swish.SWISH_HEADER_VALUE_boolean_get, _swish.SWISH_HEADER_VALUE_boolean_set)
60     def __init__(self, *args):
61         _swig_setattr(self, SWISH_HEADER_VALUE, 'this', _swish.new_SWISH_HEADER_VALUE(*args))
62         _swig_setattr(self, SWISH_HEADER_VALUE, 'thisown', 1)
63     def __del__(self, destroy=_swish.delete_SWISH_HEADER_VALUE):
64         try:
65             if self.thisown: destroy(self)
66         except: pass
67
68 class SWISH_HEADER_VALUEPtr(SWISH_HEADER_VALUE):
69     def __init__(self, this):
70         _swig_setattr(self, SWISH_HEADER_VALUE, 'this', this)
71         if not hasattr(self,"thisown"): _swig_setattr(self, SWISH_HEADER_VALUE, 'thisown', 0)
72         _swig_setattr(self, SWISH_HEADER_VALUE,self.__class__,SWISH_HEADER_VALUE)
73 _swish.SWISH_HEADER_VALUE_swigregister(SWISH_HEADER_VALUEPtr)
74
75
76 SwishHeaderNames = _swish.SwishHeaderNames
77
78 SwishIndexNames = _swish.SwishIndexNames
79
80 SwishHeaderValue = _swish.SwishHeaderValue
81
82 SwishResultIndexValue = _swish.SwishResultIndexValue
83 IN_FILE_BIT = _swish.IN_FILE_BIT
84 IN_TITLE_BIT = _swish.IN_TITLE_BIT
85 IN_HEAD_BIT = _swish.IN_HEAD_BIT
86 IN_BODY_BIT = _swish.IN_BODY_BIT
87 IN_COMMENTS_BIT = _swish.IN_COMMENTS_BIT
88 IN_HEADER_BIT = _swish.IN_HEADER_BIT
89 IN_EMPHASIZED_BIT = _swish.IN_EMPHASIZED_BIT
90 IN_META_BIT = _swish.IN_META_BIT
91 IN_FILE = _swish.IN_FILE
92 IN_TITLE = _swish.IN_TITLE
93 IN_HEAD = _swish.IN_HEAD
94 IN_BODY = _swish.IN_BODY
95 IN_COMMENTS = _swish.IN_COMMENTS
96 IN_HEADER = _swish.IN_HEADER
97 IN_EMPHASIZED = _swish.IN_EMPHASIZED
98 IN_META = _swish.IN_META
99 IN_ALL = _swish.IN_ALL
100
101 SwishInit = _swish.SwishInit
102
103 SwishQuery = _swish.SwishQuery
104
105 New_Search_Object = _swish.New_Search_Object
106
107 SwishSetRefPtr = _swish.SwishSetRefPtr
108
109 SwishSearch_parent = _swish.SwishSearch_parent
110
111 SwishResults_parent = _swish.SwishResults_parent
112
113 SwishResult_parent = _swish.SwishResult_parent
114
115 ResultsSetRefPtr = _swish.ResultsSetRefPtr
116
117 SwishSetStructure = _swish.SwishSetStructure
118
119 SwishPhraseDelimiter = _swish.SwishPhraseDelimiter
120
121 SwishSetSort = _swish.SwishSetSort
122
123 SwishSetQuery = _swish.SwishSetQuery
124
125 SwishSetSearchLimit = _swish.SwishSetSearchLimit
126
127 SwishResetSearchLimit = _swish.SwishResetSearchLimit
128
129 SwishExecute = _swish.SwishExecute
130
131 SwishHits = _swish.SwishHits
132
133 SwishParsedWords = _swish.SwishParsedWords
134
135 SwishRemovedStopwords = _swish.SwishRemovedStopwords
136
137 SwishSeekResult = _swish.SwishSeekResult
138
139 SwishNextResult = _swish.SwishNextResult
140
141 SwishResultPropertyStr = _swish.SwishResultPropertyStr
142
143 SwishResultPropertyULong = _swish.SwishResultPropertyULong
144
145 SW_ResultToSW_HANDLE = _swish.SW_ResultToSW_HANDLE
146
147 SW_ResultsToSW_HANDLE = _swish.SW_ResultsToSW_HANDLE
148
149 Free_Search_Object = _swish.Free_Search_Object
150
151 Free_Results_Object = _swish.Free_Results_Object
152
153 SwishClose = _swish.SwishClose
154
155 SwishError = _swish.SwishError
156
157 SwishCriticalError = _swish.SwishCriticalError
158
159 SwishAbortLastError = _swish.SwishAbortLastError
160
161 SwishErrorString = _swish.SwishErrorString
162
163 SwishLastErrorMsg = _swish.SwishLastErrorMsg
164
165 set_error_handle = _swish.set_error_handle
166
167 SwishErrorsToStderr = _swish.SwishErrorsToStderr
168
169 SwishWordsByLetter = _swish.SwishWordsByLetter
170
171 SwishStemWord = _swish.SwishStemWord
172
173 SwishFuzzyWord = _swish.SwishFuzzyWord
174
175 SwishFuzzyWordList = _swish.SwishFuzzyWordList
176
177 SwishFuzzyWordCount = _swish.SwishFuzzyWordCount
178
179 SwishFuzzyWordError = _swish.SwishFuzzyWordError
180
181 SwishFuzzyWordFree = _swish.SwishFuzzyWordFree
182
183 SwishFuzzyMode = _swish.SwishFuzzyMode
184 PROP_UNDEFINED = _swish.PROP_UNDEFINED
185 PROP_UNKNOWN = _swish.PROP_UNKNOWN
186 PROP_STRING = _swish.PROP_STRING
187 PROP_INTEGER = _swish.PROP_INTEGER
188 PROP_FLOAT = _swish.PROP_FLOAT
189 PROP_DATE = _swish.PROP_DATE
190 PROP_ULONG = _swish.PROP_ULONG
191 class u_PropValue1(_object):
192     __swig_setmethods__ = {}
193     __setattr__ = lambda self, name, value: _swig_setattr(self, u_PropValue1, name, value)
194     __swig_getmethods__ = {}
195     __getattr__ = lambda self, name: _swig_getattr(self, u_PropValue1, name)
196     def __repr__(self):
197         return "<C u_PropValue1 instance at %s>" % (self.this,)
198     __swig_setmethods__["v_str"] = _swish.u_PropValue1_v_str_set
199     __swig_getmethods__["v_str"] = _swish.u_PropValue1_v_str_get
200     if _newclass:v_str = property(_swish.u_PropValue1_v_str_get, _swish.u_PropValue1_v_str_set)
201     __swig_setmethods__["v_int"] = _swish.u_PropValue1_v_int_set
202     __swig_getmethods__["v_int"] = _swish.u_PropValue1_v_int_get
203     if _newclass:v_int = property(_swish.u_PropValue1_v_int_get, _swish.u_PropValue1_v_int_set)
204     __swig_setmethods__["v_date"] = _swish.u_PropValue1_v_date_set
205     __swig_getmethods__["v_date"] = _swish.u_PropValue1_v_date_get
206     if _newclass:v_date = property(_swish.u_PropValue1_v_date_get, _swish.u_PropValue1_v_date_set)
207     __swig_setmethods__["v_float"] = _swish.u_PropValue1_v_float_set
208     __swig_getmethods__["v_float"] = _swish.u_PropValue1_v_float_get
209     if _newclass:v_float = property(_swish.u_PropValue1_v_float_get, _swish.u_PropValue1_v_float_set)
210     __swig_setmethods__["v_ulong"] = _swish.u_PropValue1_v_ulong_set
211     __swig_getmethods__["v_ulong"] = _swish.u_PropValue1_v_ulong_get
212     if _newclass:v_ulong = property(_swish.u_PropValue1_v_ulong_get, _swish.u_PropValue1_v_ulong_set)
213     def __init__(self, *args):
214         _swig_setattr(self, u_PropValue1, 'this', _swish.new_u_PropValue1(*args))
215         _swig_setattr(self, u_PropValue1, 'thisown', 1)
216     def __del__(self, destroy=_swish.delete_u_PropValue1):
217         try:
218             if self.thisown: destroy(self)
219         except: pass
220
221 class u_PropValue1Ptr(u_PropValue1):
222     def __init__(self, this):
223         _swig_setattr(self, u_PropValue1, 'this', this)
224         if not hasattr(self,"thisown"): _swig_setattr(self, u_PropValue1, 'thisown', 0)
225         _swig_setattr(self, u_PropValue1,self.__class__,u_PropValue1)
226 _swish.u_PropValue1_swigregister(u_PropValue1Ptr)
227
228 class PropValue(_object):
229     __swig_setmethods__ = {}
230     __setattr__ = lambda self, name, value: _swig_setattr(self, PropValue, name, value)
231     __swig_getmethods__ = {}
232     __getattr__ = lambda self, name: _swig_getattr(self, PropValue, name)
233     def __repr__(self):
234         return "<C PropValue instance at %s>" % (self.this,)
235     __swig_setmethods__["datatype"] = _swish.PropValue_datatype_set
236     __swig_getmethods__["datatype"] = _swish.PropValue_datatype_get
237     if _newclass:datatype = property(_swish.PropValue_datatype_get, _swish.PropValue_datatype_set)
238     __swig_setmethods__["value"] = _swish.PropValue_value_set
239     __swig_getmethods__["value"] = _swish.PropValue_value_get
240     if _newclass:value = property(_swish.PropValue_value_get, _swish.PropValue_value_set)
241     __swig_setmethods__["destroy"] = _swish.PropValue_destroy_set
242     __swig_getmethods__["destroy"] = _swish.PropValue_destroy_get
243     if _newclass:destroy = property(_swish.PropValue_destroy_get, _swish.PropValue_destroy_set)
244     def __init__(self, *args):
245         _swig_setattr(self, PropValue, 'this', _swish.new_PropValue(*args))
246         _swig_setattr(self, PropValue, 'thisown', 1)
247     def __del__(self, destroy=_swish.delete_PropValue):
248         try:
249             if self.thisown: destroy(self)
250         except: pass
251
252 class PropValuePtr(PropValue):
253     def __init__(self, this):
254         _swig_setattr(self, PropValue, 'this', this)
255         if not hasattr(self,"thisown"): _swig_setattr(self, PropValue, 'thisown', 0)
256         _swig_setattr(self, PropValue,self.__class__,PropValue)
257 _swish.PropValue_swigregister(PropValuePtr)
258
259
260 getResultPropValue = _swish.getResultPropValue
261
262 freeResultPropValue = _swish.freeResultPropValue
263
Note: See TracBrowser for help on using the browser.