SoDaRadio-12.2.0-cut_dependencies:6c82803
Loading...
Searching...
No Matches
SoDa::RadioModels Class Reference

#include <RadioModels.hxx>

Static Public Member Functions

static RadioPtr make (const std::string &hardware_name, ParamsPtr params)
 create a Radio unit.
static std::vector< std::string > getModels ()

Private Member Functions

 RadioModels ()
 an actual RadioModels object should never be created.

Static Private Member Functions

static void init ()
 this initializes the model map.

Static Private Attributes

static bool init_complete
static std::map< std::string, std::function< RadioPtr(ParamsPtr params)> > model_map

Detailed Description

Definition at line 49 of file RadioModels.hxx.

Constructor & Destructor Documentation

◆ RadioModels()

SoDa::RadioModels::RadioModels ( )
private

an actual RadioModels object should never be created.

Member Function Documentation

◆ getModels()

std::vector< std::string > SoDa::RadioModels::getModels ( )
static

◆ init()

void SoDa::RadioModels::init ( )
staticprivate

this initializes the model map.

When a new model is written, add the model name and a pointer to the model's static RadioPtr make method to the model map.

◆ make()

RadioPtr SoDa::RadioModels::make ( const std::string & hardware_name,
ParamsPtr params )
static

create a Radio unit.

Parameters
hardware_namethe name of the radio type (e.g. USRP, Pluto, RTLSDR)
paramsinitialization parameters
Returns
a pointer to a Radio model, or nullptr if there is no model registered with hardware_name.

Member Data Documentation

◆ init_complete

bool SoDa::RadioModels::init_complete
staticprivate

Definition at line 78 of file RadioModels.hxx.

◆ model_map

std::map<std::string, std::function<RadioPtr(ParamsPtr params)> > SoDa::RadioModels::model_map
staticprivate

Definition at line 80 of file RadioModels.hxx.


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