diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2013-12-06 19:53:15 -0800 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2014-04-22 15:07:20 -0700 |
commit | 922f29c4d8d81ce76aaebda65ce5c7a797310c46 (patch) | |
tree | 7cc25ae1263d42b1ff106a1bea2e9de1e7136176 /gr-zeromq/include/gnuradio | |
parent | 2cf1a303e999d7168c5c419058dc5fb895f210bb (diff) |
zeromq: Initial conversion of include/gnuradio/zeromq files
Diffstat (limited to 'gr-zeromq/include/gnuradio')
-rw-r--r-- | gr-zeromq/include/gnuradio/zeromq/CMakeLists.txt | 35 | ||||
-rw-r--r-- | gr-zeromq/include/gnuradio/zeromq/api.h | 33 | ||||
-rw-r--r-- | gr-zeromq/include/gnuradio/zeromq/sink_pubsub.h | 56 | ||||
-rw-r--r-- | gr-zeromq/include/gnuradio/zeromq/sink_pushpull.h | 56 | ||||
-rw-r--r-- | gr-zeromq/include/gnuradio/zeromq/sink_reqrep.h | 56 | ||||
-rw-r--r-- | gr-zeromq/include/gnuradio/zeromq/sink_reqrep_nopoll.h | 56 | ||||
-rw-r--r-- | gr-zeromq/include/gnuradio/zeromq/source_pushpull.h | 56 | ||||
-rw-r--r-- | gr-zeromq/include/gnuradio/zeromq/source_pushpull_feedback.h | 56 | ||||
-rw-r--r-- | gr-zeromq/include/gnuradio/zeromq/source_reqrep.h | 56 | ||||
-rw-r--r-- | gr-zeromq/include/gnuradio/zeromq/source_reqrep_nopoll.h | 56 |
10 files changed, 516 insertions, 0 deletions
diff --git a/gr-zeromq/include/gnuradio/zeromq/CMakeLists.txt b/gr-zeromq/include/gnuradio/zeromq/CMakeLists.txt new file mode 100644 index 0000000000..c23b9d60b0 --- /dev/null +++ b/gr-zeromq/include/gnuradio/zeromq/CMakeLists.txt @@ -0,0 +1,35 @@ +# Copyright 2013 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 header files +######################################################################## +install(FILES + api.h + sink_pubsub.h + sink_pushpull.h + sink_reqrep.h + sink_reqrep_nopoll.h + source_pushpull_feedback.h + source_pushpull.h + source_reqrep.h + source_reqrep_nopoll.h + DESTINATION ${GR_INCLUDE_DIR}/gnuradio/zeromq + COMPONENT "zeromq_devel" +) diff --git a/gr-zeromq/include/gnuradio/zeromq/api.h b/gr-zeromq/include/gnuradio/zeromq/api.h new file mode 100644 index 0000000000..82d022f2b0 --- /dev/null +++ b/gr-zeromq/include/gnuradio/zeromq/api.h @@ -0,0 +1,33 @@ +/* + * Copyright 2013 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. + */ + +#ifndef INCLUDED_ZEROMQ_API_H +#define INCLUDED_ZEROMQ_API_H + +#include <gnuradio/attributes.h> + +#ifdef gnuradio_zeromq_EXPORTS +# define ZEROMQ_API __GR_ATTR_EXPORT +#else +# define ZEROMQ_API __GR_ATTR_IMPORT +#endif + +#endif /* INCLUDED_ZEROMQ_API_H */ diff --git a/gr-zeromq/include/gnuradio/zeromq/sink_pubsub.h b/gr-zeromq/include/gnuradio/zeromq/sink_pubsub.h new file mode 100644 index 0000000000..bba8836af7 --- /dev/null +++ b/gr-zeromq/include/gnuradio/zeromq/sink_pubsub.h @@ -0,0 +1,56 @@ +/* -*- c++ -*- */ +/* + * Copyright 2013 Free Software Foundation, Inc. + * + * This file is part of GNU Radio. + * + * 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_ZEROMQ_SINK_PUBSUB_H +#define INCLUDED_ZEROMQ_SINK_PUBSUB_H + +#include <gnuradio/zeromq/api.h> +#include <gnuradio/sync_block.h> + +namespace gr { + namespace zeromq { + + /*! + * \brief <+description of block+> + * \ingroup zeromq + * + */ + class ZEROMQ_API sink_pubsub : virtual public gr::sync_block + { + public: + typedef boost::shared_ptr<sink_pubsub> sptr; + + /*! + * \brief Return a shared_ptr to a new instance of zeromq::sink_pubsub. + * + * To avoid accidental use of raw pointers, zeromq::sink_pubsub's + * constructor is in a private implementation + * class. zeromq::sink_pubsub::make is the public interface for + * creating new instances. + */ + static sptr make(size_t itemsize, char *address); + }; + + } // namespace zeromq +} // namespace gr + +#endif /* INCLUDED_ZEROMQ_SINK_PUBSUB_H */ diff --git a/gr-zeromq/include/gnuradio/zeromq/sink_pushpull.h b/gr-zeromq/include/gnuradio/zeromq/sink_pushpull.h new file mode 100644 index 0000000000..7c6434f6b6 --- /dev/null +++ b/gr-zeromq/include/gnuradio/zeromq/sink_pushpull.h @@ -0,0 +1,56 @@ +/* -*- c++ -*- */ +/* + * Copyright 2013 Free Software Foundation, Inc. + * + * This file is part of GNU Radio. + * + * 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_ZEROMQ_SINK_PUSHPULL_H +#define INCLUDED_ZEROMQ_SINK_PUSHPULL_H + +#include <gnuradio/zeromq/api.h> +#include <gnuradio/sync_block.h> + +namespace gr { + namespace zeromq { + + /*! + * \brief <+description of block+> + * \ingroup zeromq + * + */ + class ZEROMQ_API sink_pushpull : virtual public gr::sync_block + { + public: + typedef boost::shared_ptr<sink_pushpull> sptr; + + /*! + * \brief Return a shared_ptr to a new instance of zeromq::sink_pushpull. + * + * To avoid accidental use of raw pointers, zeromq::sink_pushpull's + * constructor is in a private implementation + * class. zeromq::sink_pushpull::make is the public interface for + * creating new instances. + */ + static sptr make(size_t itemsize, char *address); + }; + + } // namespace zeromq +} // namespace gr + +#endif /* INCLUDED_ZEROMQ_SINK_PUSHPULL_H */ diff --git a/gr-zeromq/include/gnuradio/zeromq/sink_reqrep.h b/gr-zeromq/include/gnuradio/zeromq/sink_reqrep.h new file mode 100644 index 0000000000..bcecc8beb0 --- /dev/null +++ b/gr-zeromq/include/gnuradio/zeromq/sink_reqrep.h @@ -0,0 +1,56 @@ +/* -*- c++ -*- */ +/* + * Copyright 2013 Free Software Foundation, Inc. + * + * This file is part of GNU Radio. + * + * 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_ZEROMQ_SINK_REQREP_H +#define INCLUDED_ZEROMQ_SINK_REQREP_H + +#include <gnuradio/zeromq/api.h> +#include <gnuradio/sync_block.h> + +namespace gr { + namespace zeromq { + + /*! + * \brief <+description of block+> + * \ingroup zeromq + * + */ + class ZEROMQ_API sink_reqrep : virtual public gr::sync_block + { + public: + typedef boost::shared_ptr<sink_reqrep> sptr; + + /*! + * \brief Return a shared_ptr to a new instance of zeromq::sink_reqrep. + * + * To avoid accidental use of raw pointers, zeromq::sink_reqrep's + * constructor is in a private implementation + * class. zeromq::sink_reqrep::make is the public interface for + * creating new instances. + */ + static sptr make(size_t itemsize, char *address); + }; + + } // namespace zeromq +} // namespace gr + +#endif /* INCLUDED_ZEROMQ_SINK_REQREP_H */ diff --git a/gr-zeromq/include/gnuradio/zeromq/sink_reqrep_nopoll.h b/gr-zeromq/include/gnuradio/zeromq/sink_reqrep_nopoll.h new file mode 100644 index 0000000000..943e78474f --- /dev/null +++ b/gr-zeromq/include/gnuradio/zeromq/sink_reqrep_nopoll.h @@ -0,0 +1,56 @@ +/* -*- c++ -*- */ +/* + * Copyright 2013 Free Software Foundation, Inc. + * + * This file is part of GNU Radio. + * + * 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_ZEROMQ_SINK_REQREP_NOPOLL_H +#define INCLUDED_ZEROMQ_SINK_REQREP_NOPOLL_H + +#include <gnuradio/zeromq/api.h> +#include <gnuradio/sync_block.h> + +namespace gr { + namespace zeromq { + + /*! + * \brief <+description of block+> + * \ingroup zeromq + * + */ + class ZEROMQ_API sink_reqrep_nopoll : virtual public gr::sync_block + { + public: + typedef boost::shared_ptr<sink_reqrep_nopoll> sptr; + + /*! + * \brief Return a shared_ptr to a new instance of zeromq::sink_reqrep_nopoll. + * + * To avoid accidental use of raw pointers, zeromq::sink_reqrep_nopoll's + * constructor is in a private implementation + * class. zeromq::sink_reqrep_nopoll::make is the public interface for + * creating new instances. + */ + static sptr make(size_t itemsize, char *address); + }; + + } // namespace zeromq +} // namespace gr + +#endif /* INCLUDED_ZEROMQ_SINK_REQREP_NOPOLL_H */ diff --git a/gr-zeromq/include/gnuradio/zeromq/source_pushpull.h b/gr-zeromq/include/gnuradio/zeromq/source_pushpull.h new file mode 100644 index 0000000000..076d7a0f07 --- /dev/null +++ b/gr-zeromq/include/gnuradio/zeromq/source_pushpull.h @@ -0,0 +1,56 @@ +/* -*- c++ -*- */ +/* + * Copyright 2013 Free Software Foundation, Inc. + * + * This file is part of GNU Radio. + * + * 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_ZEROMQ_SOURCE_PUSHPULL_H +#define INCLUDED_ZEROMQ_SOURCE_PUSHPULL_H + +#include <gnuradio/zeromq/api.h> +#include <gnuradio/sync_block.h> + +namespace gr { + namespace zeromq { + + /*! + * \brief <+description of block+> + * \ingroup zeromq + * + */ + class ZEROMQ_API source_pushpull : virtual public gr::sync_block + { + public: + typedef boost::shared_ptr<source_pushpull> sptr; + + /*! + * \brief Return a shared_ptr to a new instance of zeromq::source_pushpull. + * + * To avoid accidental use of raw pointers, zeromq::source_pushpull's + * constructor is in a private implementation + * class. zeromq::source_pushpull::make is the public interface for + * creating new instances. + */ + static sptr make(size_t itemsize, char *address); + }; + + } // namespace zeromq +} // namespace gr + +#endif /* INCLUDED_ZEROMQ_SOURCE_PUSHPULL_H */ diff --git a/gr-zeromq/include/gnuradio/zeromq/source_pushpull_feedback.h b/gr-zeromq/include/gnuradio/zeromq/source_pushpull_feedback.h new file mode 100644 index 0000000000..2bcfe7bd8b --- /dev/null +++ b/gr-zeromq/include/gnuradio/zeromq/source_pushpull_feedback.h @@ -0,0 +1,56 @@ +/* -*- c++ -*- */ +/* + * Copyright 2013 Free Software Foundation, Inc. + * + * This file is part of GNU Radio. + * + * 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_ZEROMQ_SOURCE_PUSHPULL_FEEDBACK_H +#define INCLUDED_ZEROMQ_SOURCE_PUSHPULL_FEEDBACK_H + +#include <gnuradio/zeromq/api.h> +#include <gnuradio/sync_block.h> + +namespace gr { + namespace zeromq { + + /*! + * \brief <+description of block+> + * \ingroup zeromq + * + */ + class ZEROMQ_API source_pushpull_feedback : virtual public gr::sync_block + { + public: + typedef boost::shared_ptr<source_pushpull_feedback> sptr; + + /*! + * \brief Return a shared_ptr to a new instance of zeromq::source_pushpull_feedback. + * + * To avoid accidental use of raw pointers, zeromq::source_pushpull_feedback's + * constructor is in a private implementation + * class. zeromq::source_pushpull_feedback::make is the public interface for + * creating new instances. + */ + static sptr make(size_t itemsize, char *address); + }; + + } // namespace zeromq +} // namespace gr + +#endif /* INCLUDED_ZEROMQ_SOURCE_PUSHPULL_FEEDBACK_H */ diff --git a/gr-zeromq/include/gnuradio/zeromq/source_reqrep.h b/gr-zeromq/include/gnuradio/zeromq/source_reqrep.h new file mode 100644 index 0000000000..a6c3fe67e1 --- /dev/null +++ b/gr-zeromq/include/gnuradio/zeromq/source_reqrep.h @@ -0,0 +1,56 @@ +/* -*- c++ -*- */ +/* + * Copyright 2013 Free Software Foundation, Inc. + * + * This file is part of GNU Radio. + * + * 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_ZEROMQ_SOURCE_REQREP_H +#define INCLUDED_ZEROMQ_SOURCE_REQREP_H + +#include <gnuradio/zeromq/api.h> +#include <gnuradio/sync_block.h> + +namespace gr { + namespace zeromq { + + /*! + * \brief <+description of block+> + * \ingroup zeromq + * + */ + class ZEROMQ_API source_reqrep : virtual public gr::sync_block + { + public: + typedef boost::shared_ptr<source_reqrep> sptr; + + /*! + * \brief Return a shared_ptr to a new instance of zeromq::source_reqrep. + * + * To avoid accidental use of raw pointers, zeromq::source_reqrep's + * constructor is in a private implementation + * class. zeromq::source_reqrep::make is the public interface for + * creating new instances. + */ + static sptr make(size_t itemsize, char *address); + }; + + } // namespace zeromq +} // namespace gr + +#endif /* INCLUDED_ZEROMQ_SOURCE_REQREP_H */ diff --git a/gr-zeromq/include/gnuradio/zeromq/source_reqrep_nopoll.h b/gr-zeromq/include/gnuradio/zeromq/source_reqrep_nopoll.h new file mode 100644 index 0000000000..21da57ebc7 --- /dev/null +++ b/gr-zeromq/include/gnuradio/zeromq/source_reqrep_nopoll.h @@ -0,0 +1,56 @@ +/* -*- c++ -*- */ +/* + * Copyright 2013 Free Software Foundation, Inc. + * + * This file is part of GNU Radio. + * + * 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_ZEROMQ_SOURCE_REQREP_NOPOLL_H +#define INCLUDED_ZEROMQ_SOURCE_REQREP_NOPOLL_H + +#include <gnuradio/zeromq/api.h> +#include <gnuradio/sync_block.h> + +namespace gr { + namespace zeromq { + + /*! + * \brief <+description of block+> + * \ingroup zeromq + * + */ + class ZEROMQ_API source_reqrep_nopoll : virtual public gr::sync_block + { + public: + typedef boost::shared_ptr<source_reqrep_nopoll> sptr; + + /*! + * \brief Return a shared_ptr to a new instance of zeromq::source_reqrep_nopoll. + * + * To avoid accidental use of raw pointers, zeromq::source_reqrep_nopoll's + * constructor is in a private implementation + * class. zeromq::source_reqrep_nopoll::make is the public interface for + * creating new instances. + */ + static sptr make(size_t itemsize, char *address); + }; + + } // namespace zeromq +} // namespace gr + +#endif /* INCLUDED_ZEROMQ_SOURCE_REQREP_NOPOLL_H */ |