/* -*- c++ -*- */ /* * Copyright 2015 <+YOU OR YOUR COMPANY+>. * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3, or (at your option) * any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this software; see the file COPYING. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, * Boston, MA 02110-1301, USA. */ #ifndef INCLUDED_HOWTO_HOWTO_DETECT_FF_IMPL_H #define INCLUDED_HOWTO_HOWTO_DETECT_FF_IMPL_H #include namespace gr { namespace howto { class howto_detect_ff_impl; typedef boost::shared_ptr howto_detect_ff_impl_sptr; howto_detect_ff_impl_sptr howto_make_detect_ff_impl (float pfa, int L, int samples); class howto_detect_ff_impl : public howto_detect_ff { private: // Nothing to declare in this block. friend howto_detect_ff_impl_sptr howto_make_detect_ff_impl (float pfa, int L, int samples); howto_detect_ff_impl (float pfa, int L, int samples); float d_pfa; int d_L; int d_samples; public: howto_detect_ff_impl(); ~howto_detect_ff_impl(); // Where all the action really happens void set_pfa(float input_a) { d_pfa = input_a; } int get_pfa() { return d_pfa; } void set_L(int input_b) { d_L = input_b; } int get_L() { return d_L; } void set_samples(int input_c) { d_samples = input_c; } int get_samples() { return d_samples; } int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items); }; } // namespace howto } // namespace gr #endif /* INCLUDED_HOWTO_HOWTO_DETECT_FF_IMPL_H */