howto: reorganized directory structure
[debian/gnuradio] / gr-howto-write-a-block / swig / howto.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 1.3.36
3 #
4 # Don't modify this file, modify the SWIG interface instead.
5
6 import _howto
7 import new
8 new_instancemethod = new.instancemethod
9 try:
10     _swig_property = property
11 except NameError:
12     pass # Python < 2.2 doesn't have 'property'.
13 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
14     if (name == "thisown"): return self.this.own(value)
15     if (name == "this"):
16         if type(value).__name__ == 'PySwigObject':
17             self.__dict__[name] = value
18             return
19     method = class_type.__swig_setmethods__.get(name,None)
20     if method: return method(self,value)
21     if (not static) or hasattr(self,name):
22         self.__dict__[name] = value
23     else:
24         raise AttributeError("You cannot add attributes to %s" % self)
25
26 def _swig_setattr(self,class_type,name,value):
27     return _swig_setattr_nondynamic(self,class_type,name,value,0)
28
29 def _swig_getattr(self,class_type,name):
30     if (name == "thisown"): return self.this.own()
31     method = class_type.__swig_getmethods__.get(name,None)
32     if method: return method(self)
33     raise AttributeError,name
34
35 def _swig_repr(self):
36     try: strthis = "proxy of " + self.this.__repr__()
37     except: strthis = ""
38     return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
39
40 import types
41 try:
42     _object = types.ObjectType
43     _newclass = 1
44 except AttributeError:
45     class _object : pass
46     _newclass = 0
47 del types
48
49
50 def _swig_setattr_nondynamic_method(set):
51     def set_attr(self,name,value):
52         if (name == "thisown"): return self.this.own(value)
53         if hasattr(self,name) or (name == "this"):
54             set(self,name,value)
55         else:
56             raise AttributeError("You cannot add attributes to %s" % self)
57     return set_attr
58
59
60 class PySwigIterator(object):
61     """Proxy of C++ PySwigIterator class"""
62     thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
63     def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined"
64     __repr__ = _swig_repr
65     __swig_destroy__ = _howto.delete_PySwigIterator
66     __del__ = lambda self : None;
67     def value(*args, **kwargs):
68         """value(self) -> PyObject"""
69         return _howto.PySwigIterator_value(*args, **kwargs)
70
71     def incr(*args, **kwargs):
72         """incr(self, size_t n=1) -> PySwigIterator"""
73         return _howto.PySwigIterator_incr(*args, **kwargs)
74
75     def decr(*args, **kwargs):
76         """decr(self, size_t n=1) -> PySwigIterator"""
77         return _howto.PySwigIterator_decr(*args, **kwargs)
78
79     def distance(*args, **kwargs):
80         """distance(self, PySwigIterator x) -> ptrdiff_t"""
81         return _howto.PySwigIterator_distance(*args, **kwargs)
82
83     def equal(*args, **kwargs):
84         """equal(self, PySwigIterator x) -> bool"""
85         return _howto.PySwigIterator_equal(*args, **kwargs)
86
87     def copy(*args, **kwargs):
88         """copy(self) -> PySwigIterator"""
89         return _howto.PySwigIterator_copy(*args, **kwargs)
90
91     def next(*args, **kwargs):
92         """next(self) -> PyObject"""
93         return _howto.PySwigIterator_next(*args, **kwargs)
94
95     def previous(*args, **kwargs):
96         """previous(self) -> PyObject"""
97         return _howto.PySwigIterator_previous(*args, **kwargs)
98
99     def advance(*args, **kwargs):
100         """advance(self, ptrdiff_t n) -> PySwigIterator"""
101         return _howto.PySwigIterator_advance(*args, **kwargs)
102
103     def __eq__(*args, **kwargs):
104         """__eq__(self, PySwigIterator x) -> bool"""
105         return _howto.PySwigIterator___eq__(*args, **kwargs)
106
107     def __ne__(*args, **kwargs):
108         """__ne__(self, PySwigIterator x) -> bool"""
109         return _howto.PySwigIterator___ne__(*args, **kwargs)
110
111     def __iadd__(*args, **kwargs):
112         """__iadd__(self, ptrdiff_t n) -> PySwigIterator"""
113         return _howto.PySwigIterator___iadd__(*args, **kwargs)
114
115     def __isub__(*args, **kwargs):
116         """__isub__(self, ptrdiff_t n) -> PySwigIterator"""
117         return _howto.PySwigIterator___isub__(*args, **kwargs)
118
119     def __add__(*args, **kwargs):
120         """__add__(self, ptrdiff_t n) -> PySwigIterator"""
121         return _howto.PySwigIterator___add__(*args, **kwargs)
122
123     def __sub__(*args):
124         """
125         __sub__(self, ptrdiff_t n) -> PySwigIterator
126         __sub__(self, PySwigIterator x) -> ptrdiff_t
127         """
128         return _howto.PySwigIterator___sub__(*args)
129
130     def __iter__(self): return self
131 PySwigIterator_swigregister = _howto.PySwigIterator_swigregister
132 PySwigIterator_swigregister(PySwigIterator)
133
134 sizeof_char = _howto.sizeof_char
135 sizeof_short = _howto.sizeof_short
136 sizeof_int = _howto.sizeof_int
137 sizeof_float = _howto.sizeof_float
138 sizeof_double = _howto.sizeof_double
139 sizeof_gr_complex = _howto.sizeof_gr_complex
140 class howto_square_ff_sptr(object):
141     """Proxy of C++ howto_square_ff_sptr class"""
142     thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
143     __repr__ = _swig_repr
144     def __init__(self, *args): 
145         """
146         __init__(self) -> howto_square_ff_sptr
147         __init__(self,  p) -> howto_square_ff_sptr
148         """
149         this = _howto.new_howto_square_ff_sptr(*args)
150         try: self.this.append(this)
151         except: self.this = this
152     def __deref__(*args, **kwargs):
153         """__deref__(self)"""
154         return _howto.howto_square_ff_sptr___deref__(*args, **kwargs)
155
156     __swig_destroy__ = _howto.delete_howto_square_ff_sptr
157     __del__ = lambda self : None;
158     def history(*args, **kwargs):
159         """history(self) -> unsigned int"""
160         return _howto.howto_square_ff_sptr_history(*args, **kwargs)
161
162     def output_multiple(*args, **kwargs):
163         """output_multiple(self) -> int"""
164         return _howto.howto_square_ff_sptr_output_multiple(*args, **kwargs)
165
166     def relative_rate(*args, **kwargs):
167         """relative_rate(self) -> double"""
168         return _howto.howto_square_ff_sptr_relative_rate(*args, **kwargs)
169
170     def start(*args, **kwargs):
171         """start(self) -> bool"""
172         return _howto.howto_square_ff_sptr_start(*args, **kwargs)
173
174     def stop(*args, **kwargs):
175         """stop(self) -> bool"""
176         return _howto.howto_square_ff_sptr_stop(*args, **kwargs)
177
178     def detail(*args, **kwargs):
179         """detail(self) -> gr_block_detail_sptr"""
180         return _howto.howto_square_ff_sptr_detail(*args, **kwargs)
181
182     def set_detail(*args, **kwargs):
183         """set_detail(self, gr_block_detail_sptr detail)"""
184         return _howto.howto_square_ff_sptr_set_detail(*args, **kwargs)
185
186     def name(*args, **kwargs):
187         """name(self) -> string"""
188         return _howto.howto_square_ff_sptr_name(*args, **kwargs)
189
190     def input_signature(*args, **kwargs):
191         """input_signature(self) -> gr_io_signature_sptr"""
192         return _howto.howto_square_ff_sptr_input_signature(*args, **kwargs)
193
194     def output_signature(*args, **kwargs):
195         """output_signature(self) -> gr_io_signature_sptr"""
196         return _howto.howto_square_ff_sptr_output_signature(*args, **kwargs)
197
198     def unique_id(*args, **kwargs):
199         """unique_id(self) -> long"""
200         return _howto.howto_square_ff_sptr_unique_id(*args, **kwargs)
201
202     def basic_block(*args, **kwargs):
203         """basic_block(self) -> gr_basic_block_sptr"""
204         return _howto.howto_square_ff_sptr_basic_block(*args, **kwargs)
205
206     def check_topology(*args, **kwargs):
207         """check_topology(self, int ninputs, int noutputs) -> bool"""
208         return _howto.howto_square_ff_sptr_check_topology(*args, **kwargs)
209
210 howto_square_ff_sptr_swigregister = _howto.howto_square_ff_sptr_swigregister
211 howto_square_ff_sptr_swigregister(howto_square_ff_sptr)
212
213 howto_square_ff_sptr.block = lambda self: howto_square_ff_block (self)
214 howto_square_ff_sptr.__repr__ = lambda self: "<gr_block %s (%d)>" % (self.name(), self.unique_id ())
215
216
217 def square_ff(*args):
218   """square_ff() -> howto_square_ff_sptr"""
219   return _howto.square_ff(*args)
220 class howto_square2_ff_sptr(object):
221     """Proxy of C++ howto_square2_ff_sptr class"""
222     thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
223     __repr__ = _swig_repr
224     def __init__(self, *args): 
225         """
226         __init__(self) -> howto_square2_ff_sptr
227         __init__(self,  p) -> howto_square2_ff_sptr
228         """
229         this = _howto.new_howto_square2_ff_sptr(*args)
230         try: self.this.append(this)
231         except: self.this = this
232     def __deref__(*args, **kwargs):
233         """__deref__(self)"""
234         return _howto.howto_square2_ff_sptr___deref__(*args, **kwargs)
235
236     __swig_destroy__ = _howto.delete_howto_square2_ff_sptr
237     __del__ = lambda self : None;
238     def history(*args, **kwargs):
239         """history(self) -> unsigned int"""
240         return _howto.howto_square2_ff_sptr_history(*args, **kwargs)
241
242     def output_multiple(*args, **kwargs):
243         """output_multiple(self) -> int"""
244         return _howto.howto_square2_ff_sptr_output_multiple(*args, **kwargs)
245
246     def relative_rate(*args, **kwargs):
247         """relative_rate(self) -> double"""
248         return _howto.howto_square2_ff_sptr_relative_rate(*args, **kwargs)
249
250     def start(*args, **kwargs):
251         """start(self) -> bool"""
252         return _howto.howto_square2_ff_sptr_start(*args, **kwargs)
253
254     def stop(*args, **kwargs):
255         """stop(self) -> bool"""
256         return _howto.howto_square2_ff_sptr_stop(*args, **kwargs)
257
258     def detail(*args, **kwargs):
259         """detail(self) -> gr_block_detail_sptr"""
260         return _howto.howto_square2_ff_sptr_detail(*args, **kwargs)
261
262     def set_detail(*args, **kwargs):
263         """set_detail(self, gr_block_detail_sptr detail)"""
264         return _howto.howto_square2_ff_sptr_set_detail(*args, **kwargs)
265
266     def name(*args, **kwargs):
267         """name(self) -> string"""
268         return _howto.howto_square2_ff_sptr_name(*args, **kwargs)
269
270     def input_signature(*args, **kwargs):
271         """input_signature(self) -> gr_io_signature_sptr"""
272         return _howto.howto_square2_ff_sptr_input_signature(*args, **kwargs)
273
274     def output_signature(*args, **kwargs):
275         """output_signature(self) -> gr_io_signature_sptr"""
276         return _howto.howto_square2_ff_sptr_output_signature(*args, **kwargs)
277
278     def unique_id(*args, **kwargs):
279         """unique_id(self) -> long"""
280         return _howto.howto_square2_ff_sptr_unique_id(*args, **kwargs)
281
282     def basic_block(*args, **kwargs):
283         """basic_block(self) -> gr_basic_block_sptr"""
284         return _howto.howto_square2_ff_sptr_basic_block(*args, **kwargs)
285
286     def check_topology(*args, **kwargs):
287         """check_topology(self, int ninputs, int noutputs) -> bool"""
288         return _howto.howto_square2_ff_sptr_check_topology(*args, **kwargs)
289
290 howto_square2_ff_sptr_swigregister = _howto.howto_square2_ff_sptr_swigregister
291 howto_square2_ff_sptr_swigregister(howto_square2_ff_sptr)
292
293 howto_square2_ff_sptr.block = lambda self: howto_square2_ff_block (self)
294 howto_square2_ff_sptr.__repr__ = lambda self: "<gr_block %s (%d)>" % (self.name(), self.unique_id ())
295
296
297 def square2_ff(*args):
298   """square2_ff() -> howto_square2_ff_sptr"""
299   return _howto.square2_ff(*args)
300
301