GNSS-SDR  0.0.19
An Open Source GNSS Software Defined Receiver
beamformer_filter.h
Go to the documentation of this file.
1 /*!
2  * \file beamformer_filter.h
3  * \brief Interface of an adapter of a digital beamformer
4  * \author Javier Arribas jarribas (at) cttc.es
5  *
6  * -----------------------------------------------------------------------------
7  *
8  * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
9  * This file is part of GNSS-SDR.
10  *
11  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
12  * SPDX-License-Identifier: GPL-3.0-or-later
13  *
14  * -----------------------------------------------------------------------------
15  */
16 
17 
18 #ifndef GNSS_SDR_BEAMFORMER_FILTER_H
19 #define GNSS_SDR_BEAMFORMER_FILTER_H
20 
21 #include "gnss_block_interface.h"
22 #include <gnuradio/hier_block2.h>
23 #include <cstdint>
24 #include <string>
25 
26 /** \addtogroup Input_Filter
27  * \{ */
28 /** \addtogroup Input_filter_adapters
29  * \{ */
30 
31 
33 
34 /*!
35  * \brief Interface of an adapter of a digital beamformer block
36  * to a GNSSBlockInterface
37  */
39 {
40 public:
41  BeamformerFilter(const ConfigurationInterface* configuration,
42  const std::string& role, unsigned int in_stream,
43  unsigned int out_stream);
44 
45  ~BeamformerFilter() = default;
46 
47  inline std::string role() override
48  {
49  return role_;
50  }
51 
52  //! returns "Beamformer_Filte"
53  inline std::string implementation() override
54  {
55  return "Beamformer_Filter";
56  }
57 
58  inline size_t item_size() override
59  {
60  return item_size_;
61  }
62 
63  void connect(gr::top_block_sptr top_block) override;
64  void disconnect(gr::top_block_sptr top_block) override;
65  gr::basic_block_sptr get_left_block() override;
66  gr::basic_block_sptr get_right_block() override;
67 
68 private:
69  gr::block_sptr beamformer_;
70  gr::block_sptr file_sink_;
71  std::string role_;
72  std::string item_type_;
73  std::string dump_filename_;
74  size_t item_size_;
75  unsigned int in_stream_;
76  unsigned int out_stream_;
77  bool dump_;
78 };
79 
80 
81 /** \} */
82 /** \} */
83 #endif // GNSS_SDR_BEAMFORMER_FILTER_H
Interface of an adapter of a digital beamformer block to a GNSSBlockInterface.
std::string implementation() override
returns "Beamformer_Filte"
This interface represents a GNSS block.
This abstract class represents an interface to configuration parameters.
This abstract class represents an interface to GNSS blocks.