f5ba6d4f747fbbd1b2679193a6839322c834bcde
[debian/gnuradio] / gnuradio-core / src / lib / filter / gr_fir_sysconfig_generic.cc
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2003,2004 Free Software Foundation, Inc.
4  * 
5  * This file is part of GNU Radio
6  * 
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)
10  * any later version.
11  * 
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.
16  * 
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.
21  */
22
23 /*
24  * WARNING: This file is automatically generated by
25  * generate_gr_fir_sysconfig_generic.py.
26  *
27  * Any changes made to this file will be overwritten.
28  */
29
30 #ifdef HAVE_CONFIG_H
31 #include <config.h>
32 #endif
33 #include <gr_fir_sysconfig_generic.h>
34
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>
41
42 /*
43  * ----------------------------------------------------------------
44  * static functions that serve as constructors returned by info
45  * ----------------------------------------------------------------
46  */
47
48 static gr_fir_ccf *
49 make_gr_fir_ccf (const std::vector<float> &taps)
50 {
51   return new gr_fir_ccf_generic (taps);
52 }
53
54 static gr_fir_fcc *
55 make_gr_fir_fcc (const std::vector<gr_complex> &taps)
56 {
57   return new gr_fir_fcc_generic (taps);
58 }
59
60 static gr_fir_ccc *
61 make_gr_fir_ccc (const std::vector<gr_complex> &taps)
62 {
63   return new gr_fir_ccc_generic (taps);
64 }
65
66 static gr_fir_fff *
67 make_gr_fir_fff (const std::vector<float> &taps)
68 {
69   return new gr_fir_fff_generic (taps);
70 }
71
72 static gr_fir_scc *
73 make_gr_fir_scc (const std::vector<gr_complex> &taps)
74 {
75   return new gr_fir_scc_generic (taps);
76 }
77
78 static gr_fir_fsf *
79 make_gr_fir_fsf (const std::vector<float> &taps)
80 {
81   return new gr_fir_fsf_generic (taps);
82 }
83
84 /*
85  * ----------------------------------------------------------------
86  * return instances of the generic C++ versions of these classes.
87  * ----------------------------------------------------------------
88  */
89
90 gr_fir_ccf *
91 gr_fir_sysconfig_generic::create_gr_fir_ccf (const std::vector<float> &taps)
92 {
93   return make_gr_fir_ccf (taps);
94 }
95
96 gr_fir_fcc *
97 gr_fir_sysconfig_generic::create_gr_fir_fcc (const std::vector<gr_complex> &taps)
98 {
99   return make_gr_fir_fcc (taps);
100 }
101
102 gr_fir_ccc *
103 gr_fir_sysconfig_generic::create_gr_fir_ccc (const std::vector<gr_complex> &taps)
104 {
105   return make_gr_fir_ccc (taps);
106 }
107
108 gr_fir_fff *
109 gr_fir_sysconfig_generic::create_gr_fir_fff (const std::vector<float> &taps)
110 {
111   return make_gr_fir_fff (taps);
112 }
113
114 gr_fir_scc *
115 gr_fir_sysconfig_generic::create_gr_fir_scc (const std::vector<gr_complex> &taps)
116 {
117   return make_gr_fir_scc (taps);
118 }
119
120 gr_fir_fsf *
121 gr_fir_sysconfig_generic::create_gr_fir_fsf (const std::vector<float> &taps)
122 {
123   return make_gr_fir_fsf (taps);
124 }
125
126 /*
127  * Return info about available implementations.
128  *
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.
132  */
133
134 void
135 gr_fir_sysconfig_generic::get_gr_fir_ccf_info (std::vector<gr_fir_ccf_info> *info)
136 {
137   info->resize (1);
138   (*info)[0].name = "generic";
139   (*info)[0].create = make_gr_fir_ccf;
140 }
141
142 void
143 gr_fir_sysconfig_generic::get_gr_fir_fcc_info (std::vector<gr_fir_fcc_info> *info)
144 {
145   info->resize (1);
146   (*info)[0].name = "generic";
147   (*info)[0].create = make_gr_fir_fcc;
148 }
149
150 void
151 gr_fir_sysconfig_generic::get_gr_fir_ccc_info (std::vector<gr_fir_ccc_info> *info)
152 {
153   info->resize (1);
154   (*info)[0].name = "generic";
155   (*info)[0].create = make_gr_fir_ccc;
156 }
157
158 void
159 gr_fir_sysconfig_generic::get_gr_fir_fff_info (std::vector<gr_fir_fff_info> *info)
160 {
161   info->resize (1);
162   (*info)[0].name = "generic";
163   (*info)[0].create = make_gr_fir_fff;
164 }
165
166 void
167 gr_fir_sysconfig_generic::get_gr_fir_scc_info (std::vector<gr_fir_scc_info> *info)
168 {
169   info->resize (1);
170   (*info)[0].name = "generic";
171   (*info)[0].create = make_gr_fir_scc;
172 }
173
174 void
175 gr_fir_sysconfig_generic::get_gr_fir_fsf_info (std::vector<gr_fir_fsf_info> *info)
176 {
177   info->resize (1);
178   (*info)[0].name = "generic";
179   (*info)[0].create = make_gr_fir_fsf;
180 }