3 * Copyright 2003,2004 Free Software Foundation, Inc.
5 * This file is part of GNU Radio
7 * GNU Radio is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3, or (at your option)
12 * GNU Radio is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with GNU Radio; see the file COPYING. If not, write to
19 * the Free Software Foundation, Inc., 51 Franklin Street,
20 * Boston, MA 02110-1301, USA.
23 ////////////////////////////////////////////////////////////////////////
25 // SWIG interface definition
26 ////////////////////////////////////////////////////////////////////////
30 // we set the module name on the command line (not any more)
31 %module(directors="1") gnuradio_swig_python
34 ////////////////////////////////////////////////////////////////////////
40 #include <stddef.h> // size_t
43 %feature("autodoc","1");
45 %include <shared_ptr.i>
47 %include <std_complex.i>
50 typedef std::complex<float> gr_complex;
51 typedef std::complex<double> gr_complexd;
54 // instantiate the required template specializations
57 %template() vector<unsigned char>;
58 %template() vector<char>;
59 %template() vector<short>;
60 %template() vector<int>;
61 %template() vector<float>;
62 %template() vector<double>;
63 %template() vector<std::complex<float> >;
66 ////////////////////////////////////////////////////////////////////////
68 %constant int sizeof_char = sizeof(char);
69 %constant int sizeof_short = sizeof(short);
70 %constant int sizeof_int = sizeof(int);
71 %constant int sizeof_float = sizeof(float);
72 %constant int sizeof_double = sizeof(double);
73 %constant int sizeof_gr_complex = sizeof(gr_complex);
75 ////////////////////////////////////////////////////////////////////////
84 ////////////////////////////////////////////////////////////////////////