GNSS-SDR  0.0.13
An Open Source GNSS Software Defined Receiver
direct_resampler_conditioner.h
Go to the documentation of this file.
1 /*!
2  * \file direct_resampler_conditioner.h
3  * \brief Interface of an adapter of a direct resampler conditioner block
4  * to a SignalConditionerInterface
5  * \author Carlos Aviles, 2010. carlos.avilesr(at)googlemail.com
6  *
7  * -----------------------------------------------------------------------------
8  *
9  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
10  *
11  * GNSS-SDR is a software defined Global Navigation
12  * Satellite Systems receiver
13  *
14  * This file is part of GNSS-SDR.
15  *
16  * SPDX-License-Identifier: GPL-3.0-or-later
17  *
18  * -----------------------------------------------------------------------------
19  */
20 
21 
22 #ifndef GNSS_SDR_DIRECT_RESAMPLER_CONDITIONER_H
23 #define GNSS_SDR_DIRECT_RESAMPLER_CONDITIONER_H
24 
25 #include "gnss_block_interface.h"
26 #include <gnuradio/hier_block2.h>
27 #include <string>
28 
30 
31 /*!
32  * \brief Interface of an adapter of a direct resampler conditioner block
33  * to a SignalConditionerInterface
34  */
36 {
37 public:
39  const std::string& role, unsigned int in_stream,
40  unsigned int out_stream);
41 
42  ~DirectResamplerConditioner() = default;
43 
44  inline std::string role() override
45  {
46  return role_;
47  }
48 
49  //! Returns "Direct_Resampler"
50  inline std::string implementation() override
51  {
52  return "Direct_Resampler";
53  }
54 
55  inline size_t item_size() override
56  {
57  return item_size_;
58  }
59 
60  void connect(gr::top_block_sptr top_block) override;
61  void disconnect(gr::top_block_sptr top_block) override;
62  gr::basic_block_sptr get_left_block() override;
63  gr::basic_block_sptr get_right_block() override;
64 
65 private:
66  gr::block_sptr resampler_;
67  gr::block_sptr file_sink_;
68  std::string role_;
69  std::string item_type_;
70  std::string dump_filename_;
71  double sample_freq_in_;
72  double sample_freq_out_;
73  size_t item_size_;
74  unsigned int in_stream_;
75  unsigned int out_stream_;
76  bool dump_;
77 };
78 
79 #endif // GNSS_SDR_DIRECT_RESAMPLER_CONDITIONER_H
std::string implementation() override
Returns "Direct_Resampler".
This interface represents a GNSS block.
This abstract class represents an interface to configuration parameters.
Interface of an adapter of a direct resampler conditioner block to a SignalConditionerInterface.
This abstract class represents an interface to GNSS blocks.