From 462fa4522da00d263122cccdc7cab00772376f98 Mon Sep 17 00:00:00 2001 From: Roman Khassraf Date: Mon, 20 Jul 2015 17:46:52 +0200 Subject: Added block burst_source_qa for unit testing of burst-based blocks --- include/grgsm/misc_utils/CMakeLists.txt | 1 + include/grgsm/misc_utils/burst_source_qa.h | 64 ++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 include/grgsm/misc_utils/burst_source_qa.h (limited to 'include/grgsm') diff --git a/include/grgsm/misc_utils/CMakeLists.txt b/include/grgsm/misc_utils/CMakeLists.txt index 3d63d46..adedf1d 100644 --- a/include/grgsm/misc_utils/CMakeLists.txt +++ b/include/grgsm/misc_utils/CMakeLists.txt @@ -24,6 +24,7 @@ install(FILES bursts_printer.h burst_sink.h burst_source.h + burst_source_qa.h extract_system_info.h extract_immediate_assignment.h controlled_rotator_cc.h diff --git a/include/grgsm/misc_utils/burst_source_qa.h b/include/grgsm/misc_utils/burst_source_qa.h new file mode 100644 index 0000000..c3c5713 --- /dev/null +++ b/include/grgsm/misc_utils/burst_source_qa.h @@ -0,0 +1,64 @@ +/* -*- c++ -*- */ +/* @file + * @author Roman Khassraf + * @section LICENSE + * + * Gr-gsm 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. + * + * Gr-gsm 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 gr-gsm; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, + * Boston, MA 02110-1301, USA. + * + */ + +#ifndef INCLUDED_GSM_BURST_SOURCE_QA_H +#define INCLUDED_GSM_BURST_SOURCE_QA_H + +#include +#include + +namespace gr { + namespace gsm { + + /*! + * \brief <+description of block+> + * \ingroup gsm + * + */ + class GSM_API burst_source_qa : virtual public gr::block + { + public: + typedef boost::shared_ptr sptr; + + /*! + * \brief Return a shared_ptr to a new instance of grgsm::burst_source_qa. + * + * To avoid accidental use of raw pointers, grgsm::burst_source_qa's + * constructor is in a private implementation + * class. grgsm::burst_source_qa::make is the public interface for + * creating new instances. + */ + static sptr make(const std::vector &framenumbers, + const std::vector ×lots, + const std::vector &burst_data); + + virtual void set_framenumbers(const std::vector &framenumbers) = 0; + virtual void set_timeslots(const std::vector ×lots) = 0; + virtual void set_burst_data(const std::vector &burst_data) = 0; + }; + + } // namespace gsm +} // namespace gr + +#endif /* INCLUDED_GSM_BURST_SOURCE_QA_H */ + + -- cgit v1.2.3