GNSS-SDR  0.0.19
An Open Source GNSS Software Defined Receiver
Public Member Functions | Protected Member Functions | List of all members
SignalSourceBase Class Reference
Inheritance diagram for SignalSourceBase:
SignalSourceInterface GNSSBlockInterface Ad9361FpgaSignalSource Ad936xCustomSignalSource CustomUDPSignalSource FifoSignalSource FileSourceBase FlexibandSignalSource Fmcomms2SignalSource GnMaxSignalSource LabsatSignalSource LimesdrSignalSource MultichannelFileSignalSource OsmosdrSignalSource PlutosdrSignalSource RawArraySignalSource RtlTcpSignalSource SpirGSS6450FileSignalSource UhdSignalSource ZmqSignalSource

Public Member Functions

std::string role () final
 
std::string implementation () final
 
size_t getRfChannels () const override
 
gr::basic_block_sptr get_left_block () override
 
- Public Member Functions inherited from GNSSBlockInterface
virtual size_t item_size ()=0
 
virtual void connect (gr::top_block_sptr top_block)=0
 
virtual void disconnect (gr::top_block_sptr top_block)=0
 
virtual gr::basic_block_sptr get_right_block ()=0
 
virtual gr::basic_block_sptr get_left_block (int RF_channel)
 
virtual gr::basic_block_sptr get_right_block (int RF_channel)
 
virtual void start ()
 Start the flow of samples if needed. More...
 

Protected Member Functions

 SignalSourceBase (ConfigurationInterface const *configuration, std::string role, std::string impl)
 Constructor. More...
 
size_t decode_item_type (std::string const &item_type, bool *is_interleaved=nullptr, bool throw_on_error=false)
 utility for decoding passed ".item_type" values More...
 

Detailed Description

Definition at line 28 of file signal_source_base.h.

Constructor & Destructor Documentation

◆ SignalSourceBase()

SignalSourceBase::SignalSourceBase ( ConfigurationInterface const *  configuration,
std::string  role,
std::string  impl 
)
protected

Constructor.

Member Function Documentation

◆ decode_item_type()

size_t SignalSourceBase::decode_item_type ( std::string const &  item_type,
bool *  is_interleaved = nullptr,
bool  throw_on_error = false 
)
protected

utility for decoding passed ".item_type" values

Parameters
[in]item_type- user provided string, should be one of the known types
[out]is_interleaved- if non-null, the pointed to memory is updated with whether the data is interleaved I/Q (e.g., ishort)
[in]throw_on_error- if true, throw an exception if the string does not represent a known type
Returns
the size in bytes of the passed type

The documentation for this class was generated from the following file: