Loading...
Searching...
No Matches
Registry.hpp
Go to the documentation of this file.
#pragma once
#include <SoapySDR/Config.hpp>
#include <SoapySDR/Version.hpp>
#include <SoapySDR/Types.hpp>
#include <vector>
#include <string>
#include <map>
namespace SoapySDR
{
class Device;
typedef KwargsList (*FindFunction)(const Kwargs &);
typedef Device* (*MakeFunction)(const Kwargs &);
typedef std::map<std::string, FindFunction> FindFunctions;
typedef std::map<std::string, MakeFunction> MakeFunctions;
class SOAPY_SDR_API Registry
{
public:
Registry(const std::string &name, const FindFunction &find, const MakeFunction &make, const std::string &abi);
~Registry(void);
static FindFunctions listFindFunctions(void);
static MakeFunctions listMakeFunctions(void);
private:
std::string _name;
};
}
SOAPY_SDR_API
#define SOAPY_SDR_API
Definition Config.h:41
Config.hpp
Types.hpp
Version.hpp
SoapySDR::Device
Definition Device.hpp:33
SoapySDR::Registry::listMakeFunctions
static MakeFunctions listMakeFunctions(void)
SoapySDR::Registry::listFindFunctions
static FindFunctions listFindFunctions(void)
SoapySDR::Registry::~Registry
~Registry(void)
Cleanup this registry entry.
SoapySDR::Registry::Registry
Registry(const std::string &name, const FindFunction &find, const MakeFunction &make, const std::string &abi)
SoapySDR
Definition ConverterPrimitives.hpp:15
SoapySDR::MakeFunctions
std::map< std::string, MakeFunction > MakeFunctions
typedef for a dictionary of make functions
Definition Registry.hpp:35
SoapySDR::FindFunctions
std::map< std::string, FindFunction > FindFunctions
typedef for a dictionary of find functions
Definition Registry.hpp:32
SoapySDR::FindFunction
KwargsList(* FindFunction)(const Kwargs &)
typedef for a device enumeration function
Definition Registry.hpp:26
SoapySDR::Kwargs
std::map< std::string, std::string > Kwargs
Typedef for a dictionary of key-value string arguments.
Definition Types.hpp:24
SoapySDR::MakeFunction
Device *(* MakeFunction)(const Kwargs &)
typedef for a device factory function
Definition Registry.hpp:29
SoapySDR::KwargsList
std::vector< Kwargs > KwargsList
Typedef for a list of key-word dictionaries.
Definition Types.hpp:39