21#ifndef GNSS_SDR_NTLAB_FILE_SIGNAL_SOURCE_H
22#define GNSS_SDR_NTLAB_FILE_SIGNAL_SOURCE_H
47 const std::string& role,
unsigned int in_streams,
50 ~NTLabFileSignalSource() =
default;
52 gr::basic_block_sptr get_left_block()
override;
53 gr::basic_block_sptr get_right_block()
override;
58 gnss_shared_ptr<gr::block>
source()
const override;
59 void create_file_source_hook()
override;
60 void pre_connect_hook(gr::top_block_sptr top_block)
override;
61 void pre_disconnect_hook(gr::top_block_sptr top_block)
override;
64 std::string sample_type_;
65 unpack_ntlab_2bit_samples_sptr unpack_samples_;
This class implements a thread-safe std::queue.
This abstract class represents an interface to configuration parameters.
FileSourceBase(ConfigurationInterface const *configuration, std::string const &role, std::string impl, Concurrent_Queue< pmt::pmt_t > *queue, std::string default_item_type="short")
Constructor.
double packetsPerSample() const override
The number of (possibly unpacked) samples in a (raw) file sample (default=1).
gnss_shared_ptr< gr::block > source() const override
Abstracted front-end source. Sub-classes may override if they create specialized chains to decode sou...
std::tuple< size_t, bool > itemTypeToSize() override
Compute the item size, from the item_type(). Subclasses may constrain types that don't make.
Header file of the base class to file-oriented signal_source GNSS blocks.
Unpacks multichannel 2-bit samples into 4 real-valued floats per input byte.