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,
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_;
72 #endif // GNSS_SDR_NTLAB_FILE_SIGNAL_SOURCE_H std::tuple< size_t, bool > itemTypeToSize() override
Compute the item size, from the item_type(). Subclasses may constrain types that don't make...
Unpacks multichannel 2-bit samples into 4 real-valued floats per input byte.
Class that reads signals samples from a file and adapts it to a SignalSourceInterface.
gnss_shared_ptr< gr::block > source() const override
Abstracted front-end source. Sub-classes may override if they create specialized chains to decode sou...
This abstract class represents an interface to configuration parameters.
Header file of the base class to file-oriented signal_source GNSS blocks.
Base class to file-oriented SignalSourceBase GNSS blocks.
double packetsPerSample() const override
The number of (possibly unpacked) samples in a (raw) file sample (default=1)