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

Method instanceEnabled

core/src/module.cpp:135–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135bool ModuleManager::instanceEnabled(std::string name) {
136 if (instances.find(name) == instances.end()) {
137 spdlog::error("Cannot check if '{0}' is enabled, instance doesn't exist", name);
138 return false;
139 }
140 return instances[name].instance->isEnabled();
141}
142
143void ModuleManager::postInit(std::string name) {
144 if (instances.find(name) == instances.end()) {

Callers

nothing calls this directly

Calls 4

findMethod · 0.80
errorFunction · 0.50
endMethod · 0.45
isEnabledMethod · 0.45

Tested by

no test coverage detected