GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
probe_signal_v.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2005,2012-2013,2018 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU Radio
6  *
7  * SPDX-License-Identifier: GPL-3.0-or-later
8  *
9  */
10 
11 #ifndef PROBE_SIGNAL_V_H
12 #define PROBE_SIGNAL_V_H
13 
14 #include <gnuradio/blocks/api.h>
15 #include <gnuradio/sync_block.h>
16 #include <cstdint>
17 #include <vector>
18 
19 namespace gr {
20 namespace blocks {
21 
22 /*!
23  * \brief Sink that allows a vector of samples to be grabbed from Python.
24  * \ingroup sink_blk
25  * \ingroup measurement_tools_blk
26  */
27 template <class T>
28 class BLOCKS_API probe_signal_v : virtual public sync_block
29 {
30 public:
31  typedef std::shared_ptr<probe_signal_v<T>> sptr;
32 
33  static sptr make(size_t size);
34 
35  virtual std::vector<T> level() const = 0;
36 };
37 
43 
44 } /* namespace blocks */
45 } /* namespace gr */
46 
47 #endif /* PROBE_SIGNAL_V_H */
Sink that allows a vector of samples to be grabbed from Python.
Definition: probe_signal_v.h:29
std::shared_ptr< probe_signal_v< T > > sptr
Definition: probe_signal_v.h:31
virtual std::vector< T > level() const =0
static sptr make(size_t size)
synchronous 1:1 input to output with history
Definition: sync_block.h:26
#define BLOCKS_API
Definition: gr-blocks/include/gnuradio/blocks/api.h:18
probe_signal_v< std::int16_t > probe_signal_vs
Definition: probe_signal_v.h:39
probe_signal_v< std::uint8_t > probe_signal_vb
Definition: probe_signal_v.h:38
probe_signal_v< gr_complex > probe_signal_vc
Definition: probe_signal_v.h:42
probe_signal_v< float > probe_signal_vf
Definition: probe_signal_v.h:41
probe_signal_v< std::int32_t > probe_signal_vi
Definition: probe_signal_v.h:40
GNU Radio logging wrapper.
Definition: basic_block.h:29