SoapySDR  0.8.0-gab626068
Vendor and platform neutral SDR interface library
Modules.hpp
Go to the documentation of this file.
1 
13 #pragma once
14 #include <SoapySDR/Config.hpp>
15 #include <SoapySDR/Types.hpp>
16 #include <vector>
17 #include <string>
18 
19 namespace SoapySDR
20 {
21 
23 SOAPY_SDR_API std::string getRootPath(void);
24 
29 SOAPY_SDR_API std::vector<std::string> listSearchPaths(void);
30 
35 SOAPY_SDR_API std::vector<std::string> listModules(void);
36 
42 SOAPY_SDR_API std::vector<std::string> listModules(const std::string &path);
43 
49 SOAPY_SDR_API std::string loadModule(const std::string &path);
50 
59 SOAPY_SDR_API Kwargs getLoaderResult(const std::string &path);
60 
67 SOAPY_SDR_API std::string getModuleVersion(const std::string &path);
68 
74 SOAPY_SDR_API std::string unloadModule(const std::string &path);
75 
81 SOAPY_SDR_API void loadModules(void);
82 
86 SOAPY_SDR_API void unloadModules(void);
87 
93 {
94 public:
100  ModuleManager(const bool load = true);
101 
106  ~ModuleManager(void);
107 };
108 
111 class SOAPY_SDR_API ModuleVersion
112 {
113 public:
114  ModuleVersion(const std::string &version);
115 };
117 
118 }
SOAPY_SDR_API
#define SOAPY_SDR_API
Definition: Config.h:41
SoapySDR::loadModules
SOAPY_SDR_API void loadModules(void)
SoapySDR::listModules
SOAPY_SDR_API std::vector< std::string > listModules(void)
SoapySDR::listSearchPaths
SOAPY_SDR_API std::vector< std::string > listSearchPaths(void)
SoapySDR::loadModule
SOAPY_SDR_API std::string loadModule(const std::string &path)
SoapySDR
Definition: ConverterPrimitives.hpp:14
SoapySDR::unloadModule
SOAPY_SDR_API std::string unloadModule(const std::string &path)
Config.hpp
SoapySDR::getRootPath
SOAPY_SDR_API std::string getRootPath(void)
Query the root installation path.
SoapySDR::Kwargs
std::map< std::string, std::string > Kwargs
Typedef for a dictionary of key-value string arguments.
Definition: Types.hpp:23
SoapySDR::unloadModules
SOAPY_SDR_API void unloadModules(void)
Types.hpp
SoapySDR::getLoaderResult
SOAPY_SDR_API Kwargs getLoaderResult(const std::string &path)
SoapySDR::getModuleVersion
SOAPY_SDR_API std::string getModuleVersion(const std::string &path)
SoapySDR::ModuleManager
Definition: Modules.hpp:92