diff options
author | Roman Khassraf <roman@khassraf.at> | 2015-08-03 10:08:18 +0200 |
---|---|---|
committer | Roman Khassraf <roman@khassraf.at> | 2015-08-03 10:08:18 +0200 |
commit | b8f4909d37c2c16c9c5deb09264fccfad973ed7d (patch) | |
tree | 4d7ec8d85ed284a593ded7809884ac932bf3a6ac /include/grgsm/qa_utils | |
parent | c0cb6998da3c0cad463964fcc6643ff61c6e64b5 (diff) |
Moved qa utilities to a separate directory
Diffstat (limited to 'include/grgsm/qa_utils')
-rw-r--r-- | include/grgsm/qa_utils/CMakeLists.txt | 28 | ||||
-rw-r--r-- | include/grgsm/qa_utils/burst_sink_qa.h | 60 | ||||
-rw-r--r-- | include/grgsm/qa_utils/burst_source_qa.h | 64 | ||||
-rw-r--r-- | include/grgsm/qa_utils/message_sink.h | 60 | ||||
-rw-r--r-- | include/grgsm/qa_utils/message_source.h | 60 |
5 files changed, 272 insertions, 0 deletions
diff --git a/include/grgsm/qa_utils/CMakeLists.txt b/include/grgsm/qa_utils/CMakeLists.txt new file mode 100644 index 0000000..e0b5579 --- /dev/null +++ b/include/grgsm/qa_utils/CMakeLists.txt @@ -0,0 +1,28 @@ +# Copyright 2011,2012 Free Software Foundation, Inc. +# +# This file is part of GNU Radio +# +# GNU Radio 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. +# +# GNU Radio 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 GNU Radio; see the file COPYING. If not, write to +# the Free Software Foundation, Inc., 51 Franklin Street, +# Boston, MA 02110-1301, USA. + +######################################################################## +# Install public header files +######################################################################## +install(FILES + burst_sink_qa.h + burst_source_qa.h + message_source.h + message_sink.h DESTINATION include/grgsm/qa_utils +) diff --git a/include/grgsm/qa_utils/burst_sink_qa.h b/include/grgsm/qa_utils/burst_sink_qa.h new file mode 100644 index 0000000..3b5cac2 --- /dev/null +++ b/include/grgsm/qa_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 */ + diff --git a/include/grgsm/qa_utils/burst_source_qa.h b/include/grgsm/qa_utils/burst_source_qa.h new file mode 100644 index 0000000..c3c5713 --- /dev/null +++ b/include/grgsm/qa_utils/burst_source_qa.h @@ -0,0 +1,64 @@ +/* -*- 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_SOURCE_QA_H +#define INCLUDED_GSM_BURST_SOURCE_QA_H + +#include <grgsm/api.h> +#include <gnuradio/block.h> + +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<burst_source_qa> 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<int> &framenumbers, + const std::vector<int> ×lots, + const std::vector<std::string> &burst_data); + + virtual void set_framenumbers(const std::vector<int> &framenumbers) = 0; + virtual void set_timeslots(const std::vector<int> ×lots) = 0; + virtual void set_burst_data(const std::vector<std::string> &burst_data) = 0; + }; + + } // namespace gsm +} // namespace gr + +#endif /* INCLUDED_GSM_BURST_SOURCE_QA_H */ + + diff --git a/include/grgsm/qa_utils/message_sink.h b/include/grgsm/qa_utils/message_sink.h new file mode 100644 index 0000000..5cfe2f7 --- /dev/null +++ b/include/grgsm/qa_utils/message_sink.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_MESSAGE_SINK_H +#define INCLUDED_GSM_MESSAGE_SINK_H + +#include <grgsm/api.h> +#include <gnuradio/block.h> + +namespace gr { + namespace gsm { + + /*! + * \brief <+description of block+> + * \ingroup gsm + * + */ + class GSM_API message_sink : virtual public gr::block + { + public: + typedef boost::shared_ptr<message_sink> sptr; + + /*! + * \brief Return a shared_ptr to a new instance of grgsm::message_sink. + * + * To avoid accidental use of raw pointers, grgsm::message_sink's + * constructor is in a private implementation + * class. grgsm::message_sink::make is the public interface for + * creating new instances. + */ + static sptr make(); + + virtual std::vector<std::string> get_messages() = 0; + }; + + } // namespace gsm +} // namespace gr + +#endif /* INCLUDED_GSM_MESSAGE_SINK_H */ + diff --git a/include/grgsm/qa_utils/message_source.h b/include/grgsm/qa_utils/message_source.h new file mode 100644 index 0000000..5c3e8a1 --- /dev/null +++ b/include/grgsm/qa_utils/message_source.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_MESSAGE_SOURCE_H +#define INCLUDED_GSM_MESSAGE_SOURCE_H + +#include <grgsm/api.h> +#include <gnuradio/block.h> + +namespace gr { + namespace gsm { + + /*! + * \brief <+description of block+> + * \ingroup gsm + * + */ + class GSM_API message_source : virtual public gr::block + { + public: + typedef boost::shared_ptr<message_source> sptr; + + /*! + * \brief Return a shared_ptr to a new instance of grgsm::message_source. + * + * To avoid accidental use of raw pointers, grgsm::message_source's + * constructor is in a private implementation + * class. grgsm::message_source::make is the public interface for + * creating new instances. + */ + static sptr make(const std::vector<std::string> &msg_data); + + virtual void set_msg_data(const std::vector<std::string> &msg_data) = 0; + }; + + } // namespace gsm +} // namespace gr + +#endif /* INCLUDED_GSM_MESSAGE_SOURCE_H */ + |