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 2, 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.
24 * WARNING: This file is automatically generated by
25 * generate_gr_fir_sysconfig_generic.py.
27 * Any changes made to this file will be overwritten.
33 #include <gr_fir_sysconfig_generic.h>
35 #include <gr_fir_ccf_generic.h>
36 #include <gr_fir_fcc_generic.h>
37 #include <gr_fir_ccc_generic.h>
38 #include <gr_fir_fff_generic.h>
39 #include <gr_fir_scc_generic.h>
40 #include <gr_fir_fsf_generic.h>
43 * ----------------------------------------------------------------
44 * static functions that serve as constructors returned by info
45 * ----------------------------------------------------------------
49 make_gr_fir_ccf (const std::vector<float> &taps)
51 return new gr_fir_ccf_generic (taps);
55 make_gr_fir_fcc (const std::vector<gr_complex> &taps)
57 return new gr_fir_fcc_generic (taps);
61 make_gr_fir_ccc (const std::vector<gr_complex> &taps)
63 return new gr_fir_ccc_generic (taps);
67 make_gr_fir_fff (const std::vector<float> &taps)
69 return new gr_fir_fff_generic (taps);
73 make_gr_fir_scc (const std::vector<gr_complex> &taps)
75 return new gr_fir_scc_generic (taps);
79 make_gr_fir_fsf (const std::vector<float> &taps)
81 return new gr_fir_fsf_generic (taps);
85 * ----------------------------------------------------------------
86 * return instances of the generic C++ versions of these classes.
87 * ----------------------------------------------------------------
91 gr_fir_sysconfig_generic::create_gr_fir_ccf (const std::vector<float> &taps)
93 return make_gr_fir_ccf (taps);
97 gr_fir_sysconfig_generic::create_gr_fir_fcc (const std::vector<gr_complex> &taps)
99 return make_gr_fir_fcc (taps);
103 gr_fir_sysconfig_generic::create_gr_fir_ccc (const std::vector<gr_complex> &taps)
105 return make_gr_fir_ccc (taps);
109 gr_fir_sysconfig_generic::create_gr_fir_fff (const std::vector<float> &taps)
111 return make_gr_fir_fff (taps);
115 gr_fir_sysconfig_generic::create_gr_fir_scc (const std::vector<gr_complex> &taps)
117 return make_gr_fir_scc (taps);
121 gr_fir_sysconfig_generic::create_gr_fir_fsf (const std::vector<float> &taps)
123 return make_gr_fir_fsf (taps);
127 * Return info about available implementations.
129 * This is the bottom of the concrete hierarchy, so we set the
130 * size of the vector to 1, and install our info. Classes derived
131 * from us invoke us first, then append their own info.
135 gr_fir_sysconfig_generic::get_gr_fir_ccf_info (std::vector<gr_fir_ccf_info> *info)
138 (*info)[0].name = "generic";
139 (*info)[0].create = make_gr_fir_ccf;
143 gr_fir_sysconfig_generic::get_gr_fir_fcc_info (std::vector<gr_fir_fcc_info> *info)
146 (*info)[0].name = "generic";
147 (*info)[0].create = make_gr_fir_fcc;
151 gr_fir_sysconfig_generic::get_gr_fir_ccc_info (std::vector<gr_fir_ccc_info> *info)
154 (*info)[0].name = "generic";
155 (*info)[0].create = make_gr_fir_ccc;
159 gr_fir_sysconfig_generic::get_gr_fir_fff_info (std::vector<gr_fir_fff_info> *info)
162 (*info)[0].name = "generic";
163 (*info)[0].create = make_gr_fir_fff;
167 gr_fir_sysconfig_generic::get_gr_fir_scc_info (std::vector<gr_fir_scc_info> *info)
170 (*info)[0].name = "generic";
171 (*info)[0].create = make_gr_fir_scc;
175 gr_fir_sysconfig_generic::get_gr_fir_fsf_info (std::vector<gr_fir_fsf_info> *info)
178 (*info)[0].name = "generic";
179 (*info)[0].create = make_gr_fir_fsf;