add Vcs entries to control file
[debian/gnuradio] / gnuradio-core / src / lib / filter / gr_fir_util.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 #ifdef HAVE_CONFIG_H
25 #include <config.h>
26 #endif
27 #include <gr_fir_util.h>
28 #include <gr_fir_sysconfig.h>
29
30 //
31 // There's no problem that can't be solved by the addition of
32 // another layer of indirection...
33 //
34
35 // --- constructors ---
36
37
38 gr_fir_ccf *
39 gr_fir_util::create_gr_fir_ccf (const std::vector<float> &taps)
40 {
41   return gr_fir_sysconfig_singleton()->create_gr_fir_ccf (taps);
42 }
43
44 gr_fir_fcc *
45 gr_fir_util::create_gr_fir_fcc (const std::vector<gr_complex> &taps)
46 {
47   return gr_fir_sysconfig_singleton()->create_gr_fir_fcc (taps);
48 }
49
50 gr_fir_ccc *
51 gr_fir_util::create_gr_fir_ccc (const std::vector<gr_complex> &taps)
52 {
53   return gr_fir_sysconfig_singleton()->create_gr_fir_ccc (taps);
54 }
55
56 gr_fir_fff *
57 gr_fir_util::create_gr_fir_fff (const std::vector<float> &taps)
58 {
59   return gr_fir_sysconfig_singleton()->create_gr_fir_fff (taps);
60 }
61
62 gr_fir_scc *
63 gr_fir_util::create_gr_fir_scc (const std::vector<gr_complex> &taps)
64 {
65   return gr_fir_sysconfig_singleton()->create_gr_fir_scc (taps);
66 }
67
68 gr_fir_fsf *
69 gr_fir_util::create_gr_fir_fsf (const std::vector<float> &taps)
70 {
71   return gr_fir_sysconfig_singleton()->create_gr_fir_fsf (taps);
72 }
73
74 // --- info gatherers ---
75
76
77 void
78 gr_fir_util::get_gr_fir_ccf_info (std::vector<gr_fir_ccf_info> *info)
79 {
80   gr_fir_sysconfig_singleton()->get_gr_fir_ccf_info (info);
81 }
82
83 void
84 gr_fir_util::get_gr_fir_fcc_info (std::vector<gr_fir_fcc_info> *info)
85 {
86   gr_fir_sysconfig_singleton()->get_gr_fir_fcc_info (info);
87 }
88
89 void
90 gr_fir_util::get_gr_fir_ccc_info (std::vector<gr_fir_ccc_info> *info)
91 {
92   gr_fir_sysconfig_singleton()->get_gr_fir_ccc_info (info);
93 }
94
95 void
96 gr_fir_util::get_gr_fir_fff_info (std::vector<gr_fir_fff_info> *info)
97 {
98   gr_fir_sysconfig_singleton()->get_gr_fir_fff_info (info);
99 }
100
101 void
102 gr_fir_util::get_gr_fir_scc_info (std::vector<gr_fir_scc_info> *info)
103 {
104   gr_fir_sysconfig_singleton()->get_gr_fir_scc_info (info);
105 }
106
107 void
108 gr_fir_util::get_gr_fir_fsf_info (std::vector<gr_fir_fsf_info> *info)
109 {
110   gr_fir_sysconfig_singleton()->get_gr_fir_fsf_info (info);
111 }