GNSS-SDR  0.0.17
An Open Source GNSS Software Defined Receiver
signal_source_base.h
Go to the documentation of this file.
1 /*!
2  * \file signal_source_base.h
3  * \brief Header file of the base class to signal_source GNSS blocks.
4  * \author Jim Melton, 2020. jim.melton(at)sncorp.com
5  *
6  *
7  * -----------------------------------------------------------------------------
8  *
9  * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
10  * This file is part of GNSS-SDR.
11  *
12  * Copyright (C) 2010-2021 (see AUTHORS file for a list of contributors)
13  * SPDX-License-Identifier: GPL-3.0-or-later
14  *
15  * -----------------------------------------------------------------------------
16  */
17 
18 #ifndef GNSS_SDR_SIGNAL_SOURCE_BASE_H
19 #define GNSS_SDR_SIGNAL_SOURCE_BASE_H
20 
21 #include "signal_source_interface.h"
22 #include <cstddef>
23 #include <string>
24 
25 
27 
29 {
30 public:
31  std::string role() final;
32  std::string implementation() final;
33 
34  size_t getRfChannels() const override;
35 
36 protected:
37  //! Constructor
38  SignalSourceBase(ConfigurationInterface const* configuration, std::string role, std::string impl);
39 
40 private:
41  std::string const role_;
42  std::string const implementation_;
43  size_t rfChannels_;
44 };
45 
46 
47 #endif
This abstract class represents an interface to signal_source GNSS block.
SignalSourceBase(ConfigurationInterface const *configuration, std::string role, std::string impl)
Constructor.
This abstract class represents an interface to configuration parameters.