SoapySDR 0.8.1-ARCH
Vendor and platform neutral SDR interface library
Loading...
Searching...
No Matches
Registry.hpp
Go to the documentation of this file.
1
10
11#pragma once
12#include <SoapySDR/Config.hpp>
13#include <SoapySDR/Version.hpp>
14#include <SoapySDR/Types.hpp>
15#include <vector>
16#include <string>
17#include <map>
18
19namespace SoapySDR
20{
21
23class Device;
24
26typedef KwargsList (*FindFunction)(const Kwargs &);
27
29typedef Device* (*MakeFunction)(const Kwargs &);
30
32typedef std::map<std::string, FindFunction> FindFunctions;
33
35typedef std::map<std::string, MakeFunction> MakeFunctions;
36
41{
42public:
43
51 Registry(const std::string &name, const FindFunction &find, const MakeFunction &make, const std::string &abi);
52
54 ~Registry(void);
55
61
67
68private:
69 std::string _name;
70};
71
72}
#define SOAPY_SDR_API
Definition Config.h:41
Definition Device.hpp:33
Definition Registry.hpp:41
static MakeFunctions listMakeFunctions(void)
static FindFunctions listFindFunctions(void)
~Registry(void)
Cleanup this registry entry.
Registry(const std::string &name, const FindFunction &find, const MakeFunction &make, const std::string &abi)
Definition ConverterPrimitives.hpp:15
std::map< std::string, MakeFunction > MakeFunctions
typedef for a dictionary of make functions
Definition Registry.hpp:35
std::map< std::string, FindFunction > FindFunctions
typedef for a dictionary of find functions
Definition Registry.hpp:32
KwargsList(* FindFunction)(const Kwargs &)
typedef for a device enumeration function
Definition Registry.hpp:26
std::map< std::string, std::string > Kwargs
Typedef for a dictionary of key-value string arguments.
Definition Types.hpp:24
std::vector< Kwargs > KwargsList
Typedef for a list of key-word dictionaries.
Definition Types.hpp:39