diff options
author | Roman Khassraf <roman@khassraf.at> | 2015-07-21 10:53:41 +0200 |
---|---|---|
committer | Roman Khassraf <roman@khassraf.at> | 2015-07-21 10:53:41 +0200 |
commit | b8942892bc8c126c247e40851593dd5a8bef879d (patch) | |
tree | 2a7dd8716837f7a0e6119675f2aff8d7781a9078 /include/grgsm/misc_utils | |
parent | 462fa4522da00d263122cccdc7cab00772376f98 (diff) |
Added block burst_sink_qa for unit testing of burst-based blocks
Diffstat (limited to 'include/grgsm/misc_utils')
-rw-r--r-- | include/grgsm/misc_utils/CMakeLists.txt | 1 | ||||
-rw-r--r-- | include/grgsm/misc_utils/burst_sink_qa.h | 60 |
2 files changed, 61 insertions, 0 deletions
diff --git a/include/grgsm/misc_utils/CMakeLists.txt b/include/grgsm/misc_utils/CMakeLists.txt index adedf1d..8b74fc7 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_sink_qa.h burst_source_qa.h extract_system_info.h extract_immediate_assignment.h diff --git a/include/grgsm/misc_utils/burst_sink_qa.h b/include/grgsm/misc_utils/burst_sink_qa.h new file mode 100644 index 0000000..3b5cac2 --- /dev/null +++ b/include/grgsm/misc_utils/burst_sink_qa.h @@ -0,0 +1,60 @@ +/* -*- c++ -*- */ +/* @file + * @author Roman Khassraf <rkhassraf@gmail.com> + * @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_SINK_QA_H +#define INCLUDED_GSM_BURST_SINK_QA_H + +#include <grgsm/api.h> +#include <gnuradio/block.h> + +namespace gr { + namespace gsm { + + /*! + * \brief <+description of block+> + * \ingroup gsm + * + */ + class GSM_API burst_sink_qa : virtual public gr::block + { + public: + typedef boost::shared_ptr<burst_sink_qa> sptr; + + /*! + * \brief Return a shared_ptr to a new instance of grgsm::burst_sink_qa. + * + * To avoid accidental use of raw pointers, grgsm::burst_sink_qa's + * constructor is in a private implementation + * class. grgsm::burst_sink_qa::make is the public interface for + * creating new instances. + */ + static sptr make(); + + virtual std::vector<int> get_framenumbers() = 0; + virtual std::vector<int> get_timeslots() = 0; + virtual std::vector<std::string> get_burst_data() = 0; + }; + } // namespace gsm +} // namespace gr + +#endif /* INCLUDED_GSM_BURST_SINK_QA_H */ + |