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
5import _YamCha
6
7def _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
18def _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
23import types
24try:
25    _object = types.ObjectType
26    _newclass = 1
27except AttributeError:
28    class _object : pass
29    _newclass = 0
30del types
31
32
33class Chunker(_object):
34    __swig_setmethods__ = {}
35    __setattr__ = lambda self, name, value: _swig_setattr(self, Chunker, name, value)
36    __swig_getmethods__ = {}
37    __getattr__ = lambda self, name: _swig_getattr(self, Chunker, name)
38    def __repr__(self):
39        return "<C SWIG_YamCha::Chunker instance at %s>" % (self.this,)
40    def __init__(self, *args):
41        _swig_setattr(self, Chunker, 'this', _YamCha.new_Chunker(*args))
42        _swig_setattr(self, Chunker, 'thisown', 1)
43    def __del__(self, destroy=_YamCha.delete_Chunker):
44        try:
45            if self.thisown: destroy(self)
46        except: pass
47    def parse(*args): return _YamCha.Chunker_parse(*args)
48    def parseToString(*args): return _YamCha.Chunker_parseToString(*args)
49
50class ChunkerPtr(Chunker):
51    def __init__(self, this):
52        _swig_setattr(self, Chunker, 'this', this)
53        if not hasattr(self,"thisown"): _swig_setattr(self, Chunker, 'thisown', 0)
54        _swig_setattr(self, Chunker,self.__class__,Chunker)
55_YamCha.Chunker_swigregister(ChunkerPtr)
56
57
58