aboutsummaryrefslogtreecommitdiffstats
path: root/bindings/swig/python/Sword.py
blob: c3758b5594f79ac75f290b13e295658dba439f15 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
# This file was created automatically by SWIG.
# Don't modify this file, modify the SWIG interface instead.
# This file is compatible with both classic and new-style classes.
import _Sword
def _swig_setattr(self,class_type,name,value):
    if (name == "this"):
        if isinstance(value, class_type):
            self.__dict__[name] = value.this
            if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown
            del value.thisown
            return
    method = class_type.__swig_setmethods__.get(name,None)
    if method: return method(self,value)
    self.__dict__[name] = value

def _swig_getattr(self,class_type,name):
    method = class_type.__swig_getmethods__.get(name,None)
    if method: return method(self)
    raise AttributeError,name

import types
try:
    _object = types.ObjectType
    _newclass = 1
except AttributeError:
    class _object : pass
    _newclass = 0


class SWConfig(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, SWConfig, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, SWConfig, name)
    __swig_setmethods__["filename"] = _Sword.SWConfig_filename_set
    __swig_getmethods__["filename"] = _Sword.SWConfig_filename_get
    if _newclass:filename = property(_Sword.SWConfig_filename_get,_Sword.SWConfig_filename_set)
    __swig_setmethods__["Sections"] = _Sword.SWConfig_Sections_set
    __swig_getmethods__["Sections"] = _Sword.SWConfig_Sections_get
    if _newclass:Sections = property(_Sword.SWConfig_Sections_get,_Sword.SWConfig_Sections_set)
    def __init__(self,*args):
        self.this = apply(_Sword.new_SWConfig,args)
        self.thisown = 1
    def __del__(self, destroy= _Sword.delete_SWConfig):
        try:
            if self.thisown: destroy(self)
        except: pass
    def Load(*args): return apply(_Sword.SWConfig_Load,args)
    def Save(*args): return apply(_Sword.SWConfig_Save,args)
    def set(*args): return apply(_Sword.SWConfig_set,args)
    def get(*args): return apply(_Sword.SWConfig_get,args)
    def __repr__(self):
        return "<C SWConfig instance at %s>" % (self.this,)

class SWConfigPtr(SWConfig):
    def __init__(self,this):
        self.this = this
        if not hasattr(self,"thisown"): self.thisown = 0
        self.__class__ = SWConfig
_Sword.SWConfig_swigregister(SWConfigPtr)

class SWMgr(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, SWMgr, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, SWMgr, name)
    __swig_getmethods__["findConfig"] = lambda x: _Sword.SWMgr_findConfig
    if _newclass:findConfig = staticmethod(_Sword.SWMgr_findConfig)
    __swig_setmethods__["config"] = _Sword.SWMgr_config_set
    __swig_getmethods__["config"] = _Sword.SWMgr_config_get
    if _newclass:config = property(_Sword.SWMgr_config_get,_Sword.SWMgr_config_set)
    __swig_setmethods__["sysconfig"] = _Sword.SWMgr_sysconfig_set
    __swig_getmethods__["sysconfig"] = _Sword.SWMgr_sysconfig_get
    if _newclass:sysconfig = property(_Sword.SWMgr_sysconfig_get,_Sword.SWMgr_sysconfig_set)
    __swig_setmethods__["Modules"] = _Sword.SWMgr_Modules_set
    __swig_getmethods__["Modules"] = _Sword.SWMgr_Modules_get
    if _newclass:Modules = property(_Sword.SWMgr_Modules_get,_Sword.SWMgr_Modules_set)
    __swig_setmethods__["prefixPath"] = _Sword.SWMgr_prefixPath_set
    __swig_getmethods__["prefixPath"] = _Sword.SWMgr_prefixPath_get
    if _newclass:prefixPath = property(_Sword.SWMgr_prefixPath_get,_Sword.SWMgr_prefixPath_set)
    __swig_setmethods__["configPath"] = _Sword.SWMgr_configPath_set
    __swig_getmethods__["configPath"] = _Sword.SWMgr_configPath_get
    if _newclass:configPath = property(_Sword.SWMgr_configPath_get,_Sword.SWMgr_configPath_set)
    def __init__(self,*args):
        self.this = apply(_Sword.new_SWMgr,args)
        self.thisown = 1
    def __del__(self, destroy= _Sword.delete_SWMgr):
        try:
            if self.thisown: destroy(self)
        except: pass
    def Load(*args): return apply(_Sword.SWMgr_Load,args)
    def setGlobalOption(*args): return apply(_Sword.SWMgr_setGlobalOption,args)
    def getGlobalOption(*args): return apply(_Sword.SWMgr_getGlobalOption,args)
    def getGlobalOptionTip(*args): return apply(_Sword.SWMgr_getGlobalOptionTip,args)
    def getGlobalOptions(*args): return apply(_Sword.SWMgr_getGlobalOptions,args)
    def getGlobalOptionValues(*args): return apply(_Sword.SWMgr_getGlobalOptionValues,args)
    def setCipherKey(*args): return apply(_Sword.SWMgr_setCipherKey,args)
    def module(*args): return apply(_Sword.SWMgr_module,args)
    def __repr__(self):
        return "<C SWMgr instance at %s>" % (self.this,)

class SWMgrPtr(SWMgr):
    def __init__(self,this):
        self.this = this
        if not hasattr(self,"thisown"): self.thisown = 0
        self.__class__ = SWMgr
_Sword.SWMgr_swigregister(SWMgrPtr)
SWMgr_findConfig = _Sword.SWMgr_findConfig


class SWModule(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, SWModule, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, SWModule, name)
    __swig_setmethods__["terminateSearch"] = _Sword.SWModule_terminateSearch_set
    __swig_getmethods__["terminateSearch"] = _Sword.SWModule_terminateSearch_get
    if _newclass:terminateSearch = property(_Sword.SWModule_terminateSearch_get,_Sword.SWModule_terminateSearch_set)
    def __init__(self,*args):
        self.this = apply(_Sword.new_SWModule,args)
        self.thisown = 1
    def Error(*args): return apply(_Sword.SWModule_Error,args)
    def isUnicode(*args): return apply(_Sword.SWModule_isUnicode,args)
    def getConfig(*args): return apply(_Sword.SWModule_getConfig,args)
    def getConfigEntry(*args): return apply(_Sword.SWModule_getConfigEntry,args)
    def SetKey(*args): return apply(_Sword.SWModule_SetKey,args)
    def Key(*args): return apply(_Sword.SWModule_Key,args)
    def CreateKey(*args): return apply(_Sword.SWModule_CreateKey,args)
    def KeyText(*args): return apply(_Sword.SWModule_KeyText,args)
    def Display(*args): return apply(_Sword.SWModule_Display,args)
    __swig_getmethods__["nullPercent"] = lambda x: _Sword.SWModule_nullPercent
    if _newclass:nullPercent = staticmethod(_Sword.SWModule_nullPercent)
    def Search(*args): return apply(_Sword.SWModule_Search,args)
    def createSearchFramework(*args): return apply(_Sword.SWModule_createSearchFramework,args)
    def hasSearchFramework(*args): return apply(_Sword.SWModule_hasSearchFramework,args)
    def isSearchOptimallySupported(*args): return apply(_Sword.SWModule_isSearchOptimallySupported,args)
    def next(*args): return apply(_Sword.SWModule_next,args)
    def prev(*args): return apply(_Sword.SWModule_prev,args)
    def inc(*args): return apply(_Sword.SWModule_inc,args)
    def dec(*args): return apply(_Sword.SWModule_dec,args)
    def setPosition(*args): return apply(_Sword.SWModule_setPosition,args)
    def top(*args): return apply(_Sword.SWModule_top,args)
    def bottom(*args): return apply(_Sword.SWModule_bottom,args)
    def text(*args): return apply(_Sword.SWModule_text,args)
    def StripText(*args): return apply(_Sword.SWModule_StripText,args)
    def getRawEntry(*args): return apply(_Sword.SWModule_getRawEntry,args)
    def setSkipConsecutiveLinks(*args): return apply(_Sword.SWModule_setSkipConsecutiveLinks,args)
    def getSkipConsecutiveLinks(*args): return apply(_Sword.SWModule_getSkipConsecutiveLinks,args)
    def getEntryAttributes(*args): return apply(_Sword.SWModule_getEntryAttributes,args)
    def processEntryAttributes(*args): return apply(_Sword.SWModule_processEntryAttributes,args)
    def isProcessEntryAttributes(*args): return apply(_Sword.SWModule_isProcessEntryAttributes,args)
    def Name(*args): return apply(_Sword.SWModule_Name,args)
    def Description(*args): return apply(_Sword.SWModule_Description,args)
    def Type(*args): return apply(_Sword.SWModule_Type,args)
    def Direction(*args): return apply(_Sword.SWModule_Direction,args)
    def Encoding(*args): return apply(_Sword.SWModule_Encoding,args)
    def Markup(*args): return apply(_Sword.SWModule_Markup,args)
    def Lang(*args): return apply(_Sword.SWModule_Lang,args)
    def isWritable(*args): return apply(_Sword.SWModule_isWritable,args)
    __swig_getmethods__["createModule"] = lambda x: _Sword.SWModule_createModule
    if _newclass:createModule = staticmethod(_Sword.SWModule_createModule)
    def setEntry(*args): return apply(_Sword.SWModule_setEntry,args)
    def deleteEntry(*args): return apply(_Sword.SWModule_deleteEntry,args)
    def write(*args): return apply(_Sword.SWModule_write,args)
    def writeLink(*args): return apply(_Sword.SWModule_writeLink,args)
    def __del__(self, destroy= _Sword.delete_SWModule):
        try:
            if self.thisown: destroy(self)
        except: pass
    def __repr__(self):
        return "<C SWModule instance at %s>" % (self.this,)

class SWModulePtr(SWModule):
    def __init__(self,this):
        self.this = this
        if not hasattr(self,"thisown"): self.thisown = 0
        self.__class__ = SWModule
_Sword.SWModule_swigregister(SWModulePtr)
SWModule_nullPercent = _Sword.SWModule_nullPercent

SWModule_createModule = _Sword.SWModule_createModule


class SW_POSITION(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, SW_POSITION, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, SW_POSITION, name)
    def __init__(self,*args):
        self.this = apply(_Sword.new_SW_POSITION,args)
        self.thisown = 1
    def __del__(self, destroy= _Sword.delete_SW_POSITION):
        try:
            if self.thisown: destroy(self)
        except: pass
    def __repr__(self):
        return "<C SW_POSITION instance at %s>" % (self.this,)

class SW_POSITIONPtr(SW_POSITION):
    def __init__(self,this):
        self.this = this
        if not hasattr(self,"thisown"): self.thisown = 0
        self.__class__ = SW_POSITION
_Sword.SW_POSITION_swigregister(SW_POSITIONPtr)

class SWKey(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, SWKey, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, SWKey, name)
    def __init__(self,*args):
        self.this = apply(_Sword.new_SWKey,args)
        self.thisown = 1
    def clone(*args): return apply(_Sword.SWKey_clone,args)
    def Persist(*args): return apply(_Sword.SWKey_Persist,args)
    def setPersist(*args): return apply(_Sword.SWKey_setPersist,args)
    def Error(*args): return apply(_Sword.SWKey_Error,args)
    def setText(*args): return apply(_Sword.SWKey_setText,args)
    def getText(*args): return apply(_Sword.SWKey_getText,args)
    def getShortText(*args): return apply(_Sword.SWKey_getShortText,args)
    def compare(*args): return apply(_Sword.SWKey_compare,args)
    def equals(*args): return apply(_Sword.SWKey_equals,args)
    def decrement(*args): return apply(_Sword.SWKey_decrement,args)
    def increment(*args): return apply(_Sword.SWKey_increment,args)
    def Traversable(*args): return apply(_Sword.SWKey_Traversable,args)
    def Index(*args): return apply(_Sword.SWKey_Index,args)
    def next(*args): return apply(_Sword.SWKey_next,args)
    def prev(*args): return apply(_Sword.SWKey_prev,args)
    def setKey(*args): return apply(_Sword.SWKey_setKey,args)
    def __del__(self, destroy= _Sword.delete_SWKey):
        try:
            if self.thisown: destroy(self)
        except: pass
    def __repr__(self):
        return "<C SWKey instance at %s>" % (self.this,)

class SWKeyPtr(SWKey):
    def __init__(self,this):
        self.this = this
        if not hasattr(self,"thisown"): self.thisown = 0
        self.__class__ = SWKey
_Sword.SWKey_swigregister(SWKeyPtr)

class VerseKey(SWKey):
    __swig_setmethods__ = {}
    for _s in [SWKey]: __swig_setmethods__.update(_s.__swig_setmethods__)
    __setattr__ = lambda self, name, value: _swig_setattr(self, VerseKey, name, value)
    __swig_getmethods__ = {}
    for _s in [SWKey]: __swig_getmethods__.update(_s.__swig_getmethods__)
    __getattr__ = lambda self, name: _swig_getattr(self, VerseKey, name)
    def __init__(self,*args):
        self.this = apply(_Sword.new_VerseKey,args)
        self.thisown = 1
    def __del__(self, destroy= _Sword.delete_VerseKey):
        try:
            if self.thisown: destroy(self)
        except: pass
    def clone(*args): return apply(_Sword.VerseKey_clone,args)
    def LowerBound(*args): return apply(_Sword.VerseKey_LowerBound,args)
    def UpperBound(*args): return apply(_Sword.VerseKey_UpperBound,args)
    def ClearBounds(*args): return apply(_Sword.VerseKey_ClearBounds,args)
    def decrement(*args): return apply(_Sword.VerseKey_decrement,args)
    def increment(*args): return apply(_Sword.VerseKey_increment,args)
    def Traversable(*args): return apply(_Sword.VerseKey_Traversable,args)
    def getBookName(*args): return apply(_Sword.VerseKey_getBookName,args)
    def getBookAbbrev(*args): return apply(_Sword.VerseKey_getBookAbbrev,args)
    def Testament(*args): return apply(_Sword.VerseKey_Testament,args)
    def Book(*args): return apply(_Sword.VerseKey_Book,args)
    def Chapter(*args): return apply(_Sword.VerseKey_Chapter,args)
    def Verse(*args): return apply(_Sword.VerseKey_Verse,args)
    def Normalize(*args): return apply(_Sword.VerseKey_Normalize,args)
    def AutoNormalize(*args): return apply(_Sword.VerseKey_AutoNormalize,args)
    def Headings(*args): return apply(_Sword.VerseKey_Headings,args)
    def getOSISRef(*args): return apply(_Sword.VerseKey_getOSISRef,args)
    def compare(*args): return apply(_Sword.VerseKey_compare,args)
    def _compare(*args): return apply(_Sword.VerseKey__compare,args)
    def setLocale(*args): return apply(_Sword.VerseKey_setLocale,args)
    def getLocale(*args): return apply(_Sword.VerseKey_getLocale,args)
    def __repr__(self):
        return "<C VerseKey instance at %s>" % (self.this,)

class VerseKeyPtr(VerseKey):
    def __init__(self,this):
        self.this = this
        if not hasattr(self,"thisown"): self.thisown = 0
        self.__class__ = VerseKey
_Sword.VerseKey_swigregister(VerseKeyPtr)

class ListKey(SWKey):
    __swig_setmethods__ = {}
    for _s in [SWKey]: __swig_setmethods__.update(_s.__swig_setmethods__)
    __setattr__ = lambda self, name, value: _swig_setattr(self, ListKey, name, value)
    __swig_getmethods__ = {}
    for _s in [SWKey]: __swig_getmethods__.update(_s.__swig_getmethods__)
    __getattr__ = lambda self, name: _swig_getattr(self, ListKey, name)
    def __init__(self,*args):
        self.this = apply(_Sword.new_ListKey,args)
        self.thisown = 1
    def __del__(self, destroy= _Sword.delete_ListKey):
        try:
            if self.thisown: destroy(self)
        except: pass
    def clone(*args): return apply(_Sword.ListKey_clone,args)
    def ClearList(*args): return apply(_Sword.ListKey_ClearList,args)
    def Count(*args): return apply(_Sword.ListKey_Count,args)
    def Remove(*args): return apply(_Sword.ListKey_Remove,args)
    def SetToElement(*args): return apply(_Sword.ListKey_SetToElement,args)
    def GetElement(*args): return apply(_Sword.ListKey_GetElement,args)
    def add(*args): return apply(_Sword.ListKey_add,args)
    def copyFrom(*args): return apply(_Sword.ListKey_copyFrom,args)
    def setPosition(*args): return apply(_Sword.ListKey_setPosition,args)
    def decrement(*args): return apply(_Sword.ListKey_decrement,args)
    def increment(*args): return apply(_Sword.ListKey_increment,args)
    def Traversable(*args): return apply(_Sword.ListKey_Traversable,args)
    def Index(*args): return apply(_Sword.ListKey_Index,args)
    def __repr__(self):
        return "<C ListKey instance at %s>" % (self.this,)

class ListKeyPtr(ListKey):
    def __init__(self,this):
        self.this = this
        if not hasattr(self,"thisown"): self.thisown = 0
        self.__class__ = ListKey
_Sword.ListKey_swigregister(ListKeyPtr)

class TreeKey(SWKey):
    __swig_setmethods__ = {}
    for _s in [SWKey]: __swig_setmethods__.update(_s.__swig_setmethods__)
    __setattr__ = lambda self, name, value: _swig_setattr(self, TreeKey, name, value)
    __swig_getmethods__ = {}
    for _s in [SWKey]: __swig_getmethods__.update(_s.__swig_getmethods__)
    __getattr__ = lambda self, name: _swig_getattr(self, TreeKey, name)
    def getLocalName(*args): return apply(_Sword.TreeKey_getLocalName,args)
    def setLocalName(*args): return apply(_Sword.TreeKey_setLocalName,args)
    def getUserData(*args): return apply(_Sword.TreeKey_getUserData,args)
    def setUserData(*args): return apply(_Sword.TreeKey_setUserData,args)
    def getFullName(*args): return apply(_Sword.TreeKey_getFullName,args)
    def root(*args): return apply(_Sword.TreeKey_root,args)
    def parent(*args): return apply(_Sword.TreeKey_parent,args)
    def firstChild(*args): return apply(_Sword.TreeKey_firstChild,args)
    def nextSibling(*args): return apply(_Sword.TreeKey_nextSibling,args)
    def previousSibling(*args): return apply(_Sword.TreeKey_previousSibling,args)
    def hasChildren(*args): return apply(_Sword.TreeKey_hasChildren,args)
    def append(*args): return apply(_Sword.TreeKey_append,args)
    def appendChild(*args): return apply(_Sword.TreeKey_appendChild,args)
    def insertBefore(*args): return apply(_Sword.TreeKey_insertBefore,args)
    def remove(*args): return apply(_Sword.TreeKey_remove,args)
    def setOffset(*args): return apply(_Sword.TreeKey_setOffset,args)
    def getOffset(*args): return apply(_Sword.TreeKey_getOffset,args)
    def setPosition(*args): return apply(_Sword.TreeKey_setPosition,args)
    def Traversable(*args): return apply(_Sword.TreeKey_Traversable,args)
    def Index(*args): return apply(_Sword.TreeKey_Index,args)
    def __init__(self): raise RuntimeError, "No constructor defined"
    def __repr__(self):
        return "<C TreeKey instance at %s>" % (self.this,)

class TreeKeyPtr(TreeKey):
    def __init__(self,this):
        self.this = this
        if not hasattr(self,"thisown"): self.thisown = 0
        self.__class__ = TreeKey
_Sword.TreeKey_swigregister(TreeKeyPtr)

class TreeKeyIdx(TreeKey):
    __swig_setmethods__ = {}
    for _s in [TreeKey]: __swig_setmethods__.update(_s.__swig_setmethods__)
    __setattr__ = lambda self, name, value: _swig_setattr(self, TreeKeyIdx, name, value)
    __swig_getmethods__ = {}
    for _s in [TreeKey]: __swig_getmethods__.update(_s.__swig_getmethods__)
    __getattr__ = lambda self, name: _swig_getattr(self, TreeKeyIdx, name)
    def __init__(self): raise RuntimeError, "No constructor defined"
    def __repr__(self):
        return "<C TreeKeyIdx instance at %s>" % (self.this,)

class TreeKeyIdxPtr(TreeKeyIdx):
    def __init__(self,this):
        self.this = this
        if not hasattr(self,"thisown"): self.thisown = 0
        self.__class__ = TreeKeyIdx
_Sword.TreeKeyIdx_swigregister(TreeKeyIdxPtr)

class LocaleMgr(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, LocaleMgr, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, LocaleMgr, name)
    def __init__(self,*args):
        self.this = apply(_Sword.new_LocaleMgr,args)
        self.thisown = 1
    def __del__(self, destroy= _Sword.delete_LocaleMgr):
        try:
            if self.thisown: destroy(self)
        except: pass
    def getLocale(*args): return apply(_Sword.LocaleMgr_getLocale,args)
    def getAvailableLocales(*args): return apply(_Sword.LocaleMgr_getAvailableLocales,args)
    def getDefaultLocaleName(*args): return apply(_Sword.LocaleMgr_getDefaultLocaleName,args)
    def setDefaultLocaleName(*args): return apply(_Sword.LocaleMgr_setDefaultLocaleName,args)
    __swig_getmethods__["systemLocaleMgr"] = lambda x: _Sword.LocaleMgr_systemLocaleMgr
    if _newclass:systemLocaleMgr = staticmethod(_Sword.LocaleMgr_systemLocaleMgr)
    def __repr__(self):
        return "<C LocaleMgr instance at %s>" % (self.this,)

class LocaleMgrPtr(LocaleMgr):
    def __init__(self,this):
        self.this = this
        if not hasattr(self,"thisown"): self.thisown = 0
        self.__class__ = LocaleMgr
_Sword.LocaleMgr_swigregister(LocaleMgrPtr)
LocaleMgr_systemLocaleMgr = _Sword.LocaleMgr_systemLocaleMgr


class SWFilterMgr(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, SWFilterMgr, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, SWFilterMgr, name)
    def __init__(self): raise RuntimeError, "No constructor defined"
    def __repr__(self):
        return "<C SWFilterMgr instance at %s>" % (self.this,)

class SWFilterMgrPtr(SWFilterMgr):
    def __init__(self,this):
        self.this = this
        if not hasattr(self,"thisown"): self.thisown = 0
        self.__class__ = SWFilterMgr
_Sword.SWFilterMgr_swigregister(SWFilterMgrPtr)

class SWText(SWModule):
    __swig_setmethods__ = {}
    for _s in [SWModule]: __swig_setmethods__.update(_s.__swig_setmethods__)
    __setattr__ = lambda self, name, value: _swig_setattr(self, SWText, name, value)
    __swig_getmethods__ = {}
    for _s in [SWModule]: __swig_getmethods__.update(_s.__swig_getmethods__)
    __getattr__ = lambda self, name: _swig_getattr(self, SWText, name)
    def __init__(self,*args):
        self.this = apply(_Sword.new_SWText,args)
        self.thisown = 1
    def __del__(self, destroy= _Sword.delete_SWText):
        try:
            if self.thisown: destroy(self)
        except: pass
    def __repr__(self):
        return "<C SWText instance at %s>" % (self.this,)

class SWTextPtr(SWText):
    def __init__(self,this):
        self.this = this
        if not hasattr(self,"thisown"): self.thisown = 0
        self.__class__ = SWText
_Sword.SWText_swigregister(SWTextPtr)

class RawText(SWText):
    __swig_setmethods__ = {}
    for _s in [SWText]: __swig_setmethods__.update(_s.__swig_setmethods__)
    __setattr__ = lambda self, name, value: _swig_setattr(self, RawText, name, value)
    __swig_getmethods__ = {}
    for _s in [SWText]: __swig_getmethods__.update(_s.__swig_getmethods__)
    __getattr__ = lambda self, name: _swig_getattr(self, RawText, name)
    def __init__(self,*args):
        self.this = apply(_Sword.new_RawText,args)
        self.thisown = 1
    __swig_getmethods__["createModule"] = lambda x: _Sword.RawText_createModule
    if _newclass:createModule = staticmethod(_Sword.RawText_createModule)
    def __del__(self, destroy= _Sword.delete_RawText):
        try:
            if self.thisown: destroy(self)
        except: pass
    def __repr__(self):
        return "<C RawText instance at %s>" % (self.this,)

class RawTextPtr(RawText):
    def __init__(self,this):
        self.this = this
        if not hasattr(self,"thisown"): self.thisown = 0
        self.__class__ = RawText
_Sword.RawText_swigregister(RawTextPtr)
RawText_createModule = _Sword.RawText_createModule


class zText(SWText):
    __swig_setmethods__ = {}
    for _s in [SWText]: __swig_setmethods__.update(_s.__swig_setmethods__)
    __setattr__ = lambda self, name, value: _swig_setattr(self, zText, name, value)
    __swig_getmethods__ = {}
    for _s in [SWText]: __swig_getmethods__.update(_s.__swig_getmethods__)
    __getattr__ = lambda self, name: _swig_getattr(self, zText, name)
    def __init__(self,*args):
        self.this = apply(_Sword.new_zText,args)
        self.thisown = 1
    def __del__(self, destroy= _Sword.delete_zText):
        try:
            if self.thisown: destroy(self)
        except: pass
    __swig_getmethods__["createModule"] = lambda x: _Sword.zText_createModule
    if _newclass:createModule = staticmethod(_Sword.zText_createModule)
    def __repr__(self):
        return "<C zText instance at %s>" % (self.this,)

class zTextPtr(zText):
    def __init__(self,this):
        self.this = this
        if not hasattr(self,"thisown"): self.thisown = 0
        self.__class__ = zText
_Sword.zText_swigregister(zTextPtr)
zText_createModule = _Sword.zText_createModule


class SWCom(SWModule):
    __swig_setmethods__ = {}
    for _s in [SWModule]: __swig_setmethods__.update(_s.__swig_setmethods__)
    __setattr__ = lambda self, name, value: _swig_setattr(self, SWCom, name, value)
    __swig_getmethods__ = {}
    for _s in [SWModule]: __swig_getmethods__.update(_s.__swig_getmethods__)
    __getattr__ = lambda self, name: _swig_getattr(self, SWCom, name)
    def __init__(self): raise RuntimeError, "No constructor defined"
    def __repr__(self):
        return "<C SWCom instance at %s>" % (self.this,)

class SWComPtr(SWCom):
    def __init__(self,this):
        self.this = this
        if not hasattr(self,"thisown"): self.thisown = 0
        self.__class__ = SWCom
_Sword.SWCom_swigregister(SWComPtr)

class RawCom(SWCom):
    __swig_setmethods__ = {}
    for _s in [SWCom]: __swig_setmethods__.update(_s.__swig_setmethods__)
    __setattr__ = lambda self, name, value: _swig_setattr(self, RawCom, name, value)
    __swig_getmethods__ = {}
    for _s in [SWCom]: __swig_getmethods__.update(_s.__swig_getmethods__)
    __getattr__ = lambda self, name: _swig_getattr(self, RawCom, name)
    def __init__(self): raise RuntimeError, "No constructor defined"
    def __repr__(self):
        return "<C RawCom instance at %s>" % (self.this,)

class RawComPtr(RawCom):
    def __init__(self,this):
        self.this = this
        if not hasattr(self,"thisown"): self.thisown = 0
        self.__class__ = RawCom
_Sword.RawCom_swigregister(RawComPtr)

class zCom(SWCom):
    __swig_setmethods__ = {}
    for _s in [SWCom]: __swig_setmethods__.update(_s.__swig_setmethods__)
    __setattr__ = lambda self, name, value: _swig_setattr(self, zCom, name, value)
    __swig_getmethods__ = {}
    for _s in [SWCom]: __swig_getmethods__.update(_s.__swig_getmethods__)
    __getattr__ = lambda self, name: _swig_getattr(self, zCom, name)
    def __init__(self): raise RuntimeError, "No constructor defined"
    def __repr__(self):
        return "<C zCom instance at %s>" % (self.this,)

class zComPtr(zCom):
    def __init__(self,this):
        self.this = this
        if not hasattr(self,"thisown"): self.thisown = 0
        self.__class__ = zCom
_Sword.zCom_swigregister(zComPtr)

class SWGenBook(SWModule):
    __swig_setmethods__ = {}
    for _s in [SWModule]: __swig_setmethods__.update(_s.__swig_setmethods__)
    __setattr__ = lambda self, name, value: _swig_setattr(self, SWGenBook, name, value)
    __swig_getmethods__ = {}
    for _s in [SWModule]: __swig_getmethods__.update(_s.__swig_getmethods__)
    __getattr__ = lambda self, name: _swig_getattr(self, SWGenBook, name)
    def __init__(self): raise RuntimeError, "No constructor defined"
    def __repr__(self):
        return "<C SWGenBook instance at %s>" % (self.this,)

class SWGenBookPtr(SWGenBook):
    def __init__(self,this):
        self.this = this
        if not hasattr(self,"thisown"): self.thisown = 0
        self.__class__ = SWGenBook
_Sword.SWGenBook_swigregister(SWGenBookPtr)

class RawGenBook(SWGenBook):
    __swig_setmethods__ = {}
    for _s in [SWGenBook]: __swig_setmethods__.update(_s.__swig_setmethods__)
    __setattr__ = lambda self, name, value: _swig_setattr(self, RawGenBook, name, value)
    __swig_getmethods__ = {}
    for _s in [SWGenBook]: __swig_getmethods__.update(_s.__swig_getmethods__)
    __getattr__ = lambda self, name: _swig_getattr(self, RawGenBook, name)
    def __init__(self,*args):
        self.this = apply(_Sword.new_RawGenBook,args)
        self.thisown = 1
    def __del__(self, destroy= _Sword.delete_RawGenBook):
        try:
            if self.thisown: destroy(self)
        except: pass
    __swig_getmethods__["createModule"] = lambda x: _Sword.RawGenBook_createModule
    if _newclass:createModule = staticmethod(_Sword.RawGenBook_createModule)
    def __repr__(self):
        return "<C RawGenBook instance at %s>" % (self.this,)

class RawGenBookPtr(RawGenBook):
    def __init__(self,this):
        self.this = this
        if not hasattr(self,"thisown"): self.thisown = 0
        self.__class__ = RawGenBook
_Sword.RawGenBook_swigregister(RawGenBookPtr)
RawGenBook_createModule = _Sword.RawGenBook_createModule


class SWLD(SWModule):
    __swig_setmethods__ = {}
    for _s in [SWModule]: __swig_setmethods__.update(_s.__swig_setmethods__)
    __setattr__ = lambda self, name, value: _swig_setattr(self, SWLD, name, value)
    __swig_getmethods__ = {}
    for _s in [SWModule]: __swig_getmethods__.update(_s.__swig_getmethods__)
    __getattr__ = lambda self, name: _swig_getattr(self, SWLD, name)
    def __init__(self,*args):
        self.this = apply(_Sword.new_SWLD,args)
        self.thisown = 1
    def __del__(self, destroy= _Sword.delete_SWLD):
        try:
            if self.thisown: destroy(self)
        except: pass
    def __repr__(self):
        return "<C SWLD instance at %s>" % (self.this,)

class SWLDPtr(SWLD):
    def __init__(self,this):
        self.this = this
        if not hasattr(self,"thisown"): self.thisown = 0
        self.__class__ = SWLD
_Sword.SWLD_swigregister(SWLDPtr)

class RawLD(SWLD):
    __swig_setmethods__ = {}
    for _s in [SWLD]: __swig_setmethods__.update(_s.__swig_setmethods__)
    __setattr__ = lambda self, name, value: _swig_setattr(self, RawLD, name, value)
    __swig_getmethods__ = {}
    for _s in [SWLD]: __swig_getmethods__.update(_s.__swig_getmethods__)
    __getattr__ = lambda self, name: _swig_getattr(self, RawLD, name)
    def __init__(self,*args):
        self.this = apply(_Sword.new_RawLD,args)
        self.thisown = 1
    def __del__(self, destroy= _Sword.delete_RawLD):
        try:
            if self.thisown: destroy(self)
        except: pass
    __swig_getmethods__["createModule"] = lambda x: _Sword.RawLD_createModule
    if _newclass:createModule = staticmethod(_Sword.RawLD_createModule)
    def __repr__(self):
        return "<C RawLD instance at %s>" % (self.this,)

class RawLDPtr(RawLD):
    def __init__(self,this):
        self.this = this
        if not hasattr(self,"thisown"): self.thisown = 0
        self.__class__ = RawLD
_Sword.RawLD_swigregister(RawLDPtr)
RawLD_createModule = _Sword.RawLD_createModule


class RawLD4(SWLD):
    __swig_setmethods__ = {}
    for _s in [SWLD]: __swig_setmethods__.update(_s.__swig_setmethods__)
    __setattr__ = lambda self, name, value: _swig_setattr(self, RawLD4, name, value)
    __swig_getmethods__ = {}
    for _s in [SWLD]: __swig_getmethods__.update(_s.__swig_getmethods__)
    __getattr__ = lambda self, name: _swig_getattr(self, RawLD4, name)
    def __init__(self,*args):
        self.this = apply(_Sword.new_RawLD4,args)
        self.thisown = 1
    def __del__(self, destroy= _Sword.delete_RawLD4):
        try:
            if self.thisown: destroy(self)
        except: pass
    __swig_getmethods__["createModule"] = lambda x: _Sword.RawLD4_createModule
    if _newclass:createModule = staticmethod(_Sword.RawLD4_createModule)
    def __repr__(self):
        return "<C RawLD4 instance at %s>" % (self.this,)

class RawLD4Ptr(RawLD4):
    def __init__(self,this):
        self.this = this
        if not hasattr(self,"thisown"): self.thisown = 0
        self.__class__ = RawLD4
_Sword.RawLD4_swigregister(RawLD4Ptr)
RawLD4_createModule = _Sword.RawLD4_createModule


class zLD(SWLD):
    __swig_setmethods__ = {}
    for _s in [SWLD]: __swig_setmethods__.update(_s.__swig_setmethods__)
    __setattr__ = lambda self, name, value: _swig_setattr(self, zLD, name, value)
    __swig_getmethods__ = {}
    for _s in [SWLD]: __swig_getmethods__.update(_s.__swig_getmethods__)
    __getattr__ = lambda self, name: _swig_getattr(self, zLD, name)
    def __init__(self,*args):
        self.this = apply(_Sword.new_zLD,args)
        self.thisown = 1
    def __del__(self, destroy= _Sword.delete_zLD):
        try:
            if self.thisown: destroy(self)
        except: pass
    __swig_getmethods__["createModule"] = lambda x: _Sword.zLD_createModule
    if _newclass:createModule = staticmethod(_Sword.zLD_createModule)
    def __repr__(self):
        return "<C zLD instance at %s>" % (self.this,)

class zLDPtr(zLD):
    def __init__(self,this):
        self.this = this
        if not hasattr(self,"thisown"): self.thisown = 0
        self.__class__ = zLD
_Sword.zLD_swigregister(zLDPtr)
zLD_createModule = _Sword.zLD_createModule


class SWCompress(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, SWCompress, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, SWCompress, name)
    def __init__(self,*args):
        self.this = apply(_Sword.new_SWCompress,args)
        self.thisown = 1
    def __del__(self, destroy= _Sword.delete_SWCompress):
        try:
            if self.thisown: destroy(self)
        except: pass
    def Buf(*args): return apply(_Sword.SWCompress_Buf,args)
    def zBuf(*args): return apply(_Sword.SWCompress_zBuf,args)
    def GetChars(*args): return apply(_Sword.SWCompress_GetChars,args)
    def SendChars(*args): return apply(_Sword.SWCompress_SendChars,args)
    def Encode(*args): return apply(_Sword.SWCompress_Encode,args)
    def Decode(*args): return apply(_Sword.SWCompress_Decode,args)
    def __repr__(self):
        return "<C SWCompress instance at %s>" % (self.this,)

class SWCompressPtr(SWCompress):
    def __init__(self,this):
        self.this = this
        if not hasattr(self,"thisown"): self.thisown = 0
        self.__class__ = SWCompress
_Sword.SWCompress_swigregister(SWCompressPtr)

class LZSSCompress(SWCompress):
    __swig_setmethods__ = {}
    for _s in [SWCompress]: __swig_setmethods__.update(_s.__swig_setmethods__)
    __setattr__ = lambda self, name, value: _swig_setattr(self, LZSSCompress, name, value)
    __swig_getmethods__ = {}
    for _s in [SWCompress]: __swig_getmethods__.update(_s.__swig_getmethods__)
    __getattr__ = lambda self, name: _swig_getattr(self, LZSSCompress, name)
    def __init__(self,*args):
        self.this = apply(_Sword.new_LZSSCompress,args)
        self.thisown = 1
    def __del__(self, destroy= _Sword.delete_LZSSCompress):
        try:
            if self.thisown: destroy(self)
        except: pass
    def Encode(*args): return apply(_Sword.LZSSCompress_Encode,args)
    def Decode(*args): return apply(_Sword.LZSSCompress_Decode,args)
    def __repr__(self):
        return "<C LZSSCompress instance at %s>" % (self.this,)

class LZSSCompressPtr(LZSSCompress):
    def __init__(self,this):
        self.this = this
        if not hasattr(self,"thisown"): self.thisown = 0
        self.__class__ = LZSSCompress
_Sword.LZSSCompress_swigregister(LZSSCompressPtr)

class ZipCompress(SWCompress):
    __swig_setmethods__ = {}
    for _s in [SWCompress]: __swig_setmethods__.update(_s.__swig_setmethods__)
    __setattr__ = lambda self, name, value: _swig_setattr(self, ZipCompress, name, value)
    __swig_getmethods__ = {}
    for _s in [SWCompress]: __swig_getmethods__.update(_s.__swig_getmethods__)
    __getattr__ = lambda self, name: _swig_getattr(self, ZipCompress, name)
    def __init__(self,*args):
        self.this = apply(_Sword.new_ZipCompress,args)
        self.thisown = 1
    def __del__(self, destroy= _Sword.delete_ZipCompress):
        try:
            if self.thisown: destroy(self)
        except: pass
    def Encode(*args): return apply(_Sword.ZipCompress_Encode,args)
    def Decode(*args): return apply(_Sword.ZipCompress_Decode,args)
    def __repr__(self):
        return "<C ZipCompress instance at %s>" % (self.this,)

class ZipCompressPtr(ZipCompress):
    def __init__(self,this):
        self.this = this
        if not hasattr(self,"thisown"): self.thisown = 0
        self.__class__ = ZipCompress
_Sword.ZipCompress_swigregister(ZipCompressPtr)