MCPcopy Create free account
hub / github.com/AlexandreRouma/SDRPlusPlus / registerSource

Method registerSource

core/src/signal_path/source.cpp:9–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7}
8
9void SourceManager::registerSource(std::string name, SourceHandler* handler) {
10 if (sources.find(name) != sources.end()) {
11 spdlog::error("Tried to register new source with existing name: {0}", name);
12 return;
13 }
14 sources[name] = handler;
15 onSourceRegistered.emit(name);
16}
17
18void SourceManager::unregisterSource(std::string name) {
19 if (sources.find(name) == sources.end()) {

Callers 13

HackRFSourceModuleMethod · 0.80
RTLTCPSourceModuleMethod · 0.80
FileSourceModuleMethod · 0.80
RTLSDRSourceModuleMethod · 0.80
AirspyHFSourceModuleMethod · 0.80
AirspyHFSourceModuleMethod · 0.80
SpyServerSourceModuleMethod · 0.80
LimeSDRSourceModuleMethod · 0.80
BladeRFSourceModuleMethod · 0.80
SDRPlaySourceModuleMethod · 0.80
PlutoSDRSourceModuleMethod · 0.80
SoapyModuleMethod · 0.80

Calls 4

findMethod · 0.80
emitMethod · 0.80
errorFunction · 0.50
endMethod · 0.45

Tested by

no test coverage detected