~ubuntu-branches/ubuntu/maverick/speech-tools/maverick

« back to all changes in this revision

Viewing changes to wrappers/python/EST_Relation.py

  • Committer: Bazaar Package Importer
  • Author(s): Kumar Appaiah, Kartik Mistry, Kumar Appaiah
  • Date: 2010-07-17 11:32:04 UTC
  • mfrom: (3.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100717113204-mnse3jo236j107q8
Tags: 1:2.0.95~beta-1
[ Kartik Mistry ]
* debian/control:
  + [Lintian] Added missing ${misc:Depends}
  + Updated Standards-Version to 3.8.4 (no changes needed)
* debian/patches/const_char.diff:
  + Added missing patch header
* Removed unused patch invalid_const_char_conversion_fixes.diff

[ Kumar Appaiah ]
* New upstream release.
* Standards Version is now 3.9.0 (No changes needed)
* Update debian/rules to specify version numbers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This file was automatically generated by SWIG (http://www.swig.org).
 
2
# Version 1.3.40
 
3
#
 
4
# Do not make changes to this file unless you know what you are doing--modify
 
5
# the SWIG interface file instead.
 
6
# This file is compatible with both classic and new-style classes.
 
7
 
 
8
from sys import version_info
 
9
if version_info >= (2,6,0):
 
10
    def swig_import_helper():
 
11
        from os.path import dirname
 
12
        import imp
 
13
        fp = None
 
14
        try:
 
15
            fp, pathname, description = imp.find_module('_EST_Relation', [dirname(__file__)])
 
16
        except ImportError:
 
17
            import _EST_Relation
 
18
            return _EST_Relation
 
19
        if fp is not None:
 
20
            try:
 
21
                _mod = imp.load_module('_EST_Relation', fp, pathname, description)
 
22
            finally:
 
23
                fp.close()
 
24
            return _mod
 
25
    _EST_Relation = swig_import_helper()
 
26
    del swig_import_helper
 
27
else:
 
28
    import _EST_Relation
 
29
del version_info
 
30
try:
 
31
    _swig_property = property
 
32
except NameError:
 
33
    pass # Python < 2.2 doesn't have 'property'.
 
34
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
 
35
    if (name == "thisown"): return self.this.own(value)
 
36
    if (name == "this"):
 
37
        if type(value).__name__ == 'SwigPyObject':
 
38
            self.__dict__[name] = value
 
39
            return
 
40
    method = class_type.__swig_setmethods__.get(name,None)
 
41
    if method: return method(self,value)
 
42
    if (not static) or hasattr(self,name):
 
43
        self.__dict__[name] = value
 
44
    else:
 
45
        raise AttributeError("You cannot add attributes to %s" % self)
 
46
 
 
47
def _swig_setattr(self,class_type,name,value):
 
48
    return _swig_setattr_nondynamic(self,class_type,name,value,0)
 
49
 
 
50
def _swig_getattr(self,class_type,name):
 
51
    if (name == "thisown"): return self.this.own()
 
52
    method = class_type.__swig_getmethods__.get(name,None)
 
53
    if method: return method(self)
 
54
    raise AttributeError(name)
 
55
 
 
56
def _swig_repr(self):
 
57
    try: strthis = "proxy of " + self.this.__repr__()
 
58
    except: strthis = ""
 
59
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
 
60
 
 
61
try:
 
62
    _object = object
 
63
    _newclass = 1
 
64
except AttributeError:
 
65
    class _object : pass
 
66
    _newclass = 0
 
67
 
 
68
 
 
69
read_ok = _EST_Relation.read_ok
 
70
read_format_error = _EST_Relation.read_format_error
 
71
read_not_found_error = _EST_Relation.read_not_found_error
 
72
read_error = _EST_Relation.read_error
 
73
write_ok = _EST_Relation.write_ok
 
74
write_fail = _EST_Relation.write_fail
 
75
write_error = _EST_Relation.write_error
 
76
write_partial = _EST_Relation.write_partial
 
77
connect_ok = _EST_Relation.connect_ok
 
78
connect_not_found_error = _EST_Relation.connect_not_found_error
 
79
connect_not_allowed_error = _EST_Relation.connect_not_allowed_error
 
80
connect_system_error = _EST_Relation.connect_system_error
 
81
connect_error = _EST_Relation.connect_error
 
82
import EST_Item
 
83
class EST_Relation(_object):
 
84
    __swig_setmethods__ = {}
 
85
    __setattr__ = lambda self, name, value: _swig_setattr(self, EST_Relation, name, value)
 
86
    __swig_getmethods__ = {}
 
87
    __getattr__ = lambda self, name: _swig_getattr(self, EST_Relation, name)
 
88
    __repr__ = _swig_repr
 
89
    def __init__(self, *args): 
 
90
        this = _EST_Relation.new_EST_Relation(*args)
 
91
        try: self.this.append(this)
 
92
        except: self.this = this
 
93
    __swig_destroy__ = _EST_Relation.delete_EST_Relation
 
94
    __del__ = lambda self : None;
 
95
    def load(self, *args): return _EST_Relation.EST_Relation_load(self, *args)
 
96
    def save(self, *args): return _EST_Relation.EST_Relation_save(self, *args)
 
97
    def evaluate_item_features(self): return _EST_Relation.EST_Relation_evaluate_item_features(self)
 
98
    def clear(self): return _EST_Relation.EST_Relation_clear(self)
 
99
    def utt(self): return _EST_Relation.EST_Relation_utt(self)
 
100
    def set_utt(self, *args): return _EST_Relation.EST_Relation_set_utt(self, *args)
 
101
    def name(self): return _EST_Relation.EST_Relation_name(self)
 
102
    def head(self): return _EST_Relation.EST_Relation_head(self)
 
103
    def root(self): return _EST_Relation.EST_Relation_root(self)
 
104
    def tail(self): return _EST_Relation.EST_Relation_tail(self)
 
105
    def first(self): return _EST_Relation.EST_Relation_first(self)
 
106
    def first_leaf(self): return _EST_Relation.EST_Relation_first_leaf(self)
 
107
    def last(self): return _EST_Relation.EST_Relation_last(self)
 
108
    def last_leaf(self): return _EST_Relation.EST_Relation_last_leaf(self)
 
109
    def append(self, *args): return _EST_Relation.EST_Relation_append(self, *args)
 
110
    def prepend(self, *args): return _EST_Relation.EST_Relation_prepend(self, *args)
 
111
    def length(self): return _EST_Relation.EST_Relation_length(self)
 
112
    def empty(self): return _EST_Relation.EST_Relation_empty(self)
 
113
    def remove_item(self, *args): return _EST_Relation.EST_Relation_remove_item(self, *args)
 
114
    def remove_item_feature(self, *args): return _EST_Relation.EST_Relation_remove_item_feature(self, *args)
 
115
    def items(self): return _EST_Relation.EST_Relation_items(self)
 
116
EST_Relation_swigregister = _EST_Relation.EST_Relation_swigregister
 
117
EST_Relation_swigregister(EST_Relation)
 
118
 
 
119
 
 
120
def copy_relation(*args):
 
121
  return _EST_Relation.copy_relation(*args)
 
122
copy_relation = _EST_Relation.copy_relation
 
123
 
 
124