1
# This file was automatically generated by SWIG (http://www.swig.org).
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.
8
from sys import version_info
9
if version_info >= (2,6,0):
10
def swig_import_helper():
11
from os.path import dirname
15
fp, pathname, description = imp.find_module('_EST_Relation', [dirname(__file__)])
21
_mod = imp.load_module('_EST_Relation', fp, pathname, description)
25
_EST_Relation = swig_import_helper()
26
del swig_import_helper
31
_swig_property = property
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)
37
if type(value).__name__ == 'SwigPyObject':
38
self.__dict__[name] = value
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
45
raise AttributeError("You cannot add attributes to %s" % self)
47
def _swig_setattr(self,class_type,name,value):
48
return _swig_setattr_nondynamic(self,class_type,name,value,0)
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)
57
try: strthis = "proxy of " + self.this.__repr__()
59
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
64
except AttributeError:
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
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)
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)
120
def copy_relation(*args):
121
return _EST_Relation.copy_relation(*args)
122
copy_relation = _EST_Relation.copy_relation