aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPiotr Krysik <ptrkrysik@gmail.com>2016-05-29 13:06:39 +0200
committerPiotr Krysik <ptrkrysik@gmail.com>2016-05-29 13:06:39 +0200
commitc6eb3b5c6a013d5c19878a584b03c31813f87e77 (patch)
tree0f35d7738227b5842335c80216f123b109ca7bc4 /include
parentaf8ad5dddf61ab57a514474627c1a2de0936a718 (diff)
Added msg_to_tag block - currently it does nothing
Diffstat (limited to 'include')
-rw-r--r--include/grgsm/CMakeLists.txt2
-rw-r--r--include/grgsm/msg_to_tag.h58
2 files changed, 59 insertions, 1 deletions
diff --git a/include/grgsm/CMakeLists.txt b/include/grgsm/CMakeLists.txt
index e9f6cc2..50788ae 100644
--- a/include/grgsm/CMakeLists.txt
+++ b/include/grgsm/CMakeLists.txt
@@ -24,7 +24,7 @@ install(FILES
plotting.hpp
api.h
gsmtap.h
- DESTINATION include/grgsm
+ msg_to_tag.h DESTINATION include/grgsm
)
add_subdirectory(decoding)
diff --git a/include/grgsm/msg_to_tag.h b/include/grgsm/msg_to_tag.h
new file mode 100644
index 0000000..3d63460
--- /dev/null
+++ b/include/grgsm/msg_to_tag.h
@@ -0,0 +1,58 @@
+/* -*- c++ -*- */
+/* @file
+ * @author Piotr Krysik <ptrkrysik@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_GRGSM_MSG_TO_TAG_H
+#define INCLUDED_GRGSM_MSG_TO_TAG_H
+
+#include <grgsm/api.h>
+#include <gnuradio/sync_block.h>
+
+namespace gr {
+ namespace grgsm {
+
+ /*!
+ * \brief <+description of block+>
+ * \ingroup grgsm
+ *
+ */
+ class GRGSM_API msg_to_tag : virtual public gr::sync_block
+ {
+ public:
+ typedef boost::shared_ptr<msg_to_tag> sptr;
+
+ /*!
+ * \brief Return a shared_ptr to a new instance of grgsm::msg_to_tag.
+ *
+ * To avoid accidental use of raw pointers, grgsm::msg_to_tag's
+ * constructor is in a private implementation
+ * class. grgsm::msg_to_tag::make is the public interface for
+ * creating new instances.
+ */
+ static sptr make();
+ };
+
+ } // namespace grgsm
+} // namespace gr
+
+#endif /* INCLUDED_GRGSM_MSG_TO_TAG_H */
+