MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / registerFactory

Method registerFactory

Suscan/Plugin.cpp:322–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320}
321
322bool
323Plugin::registerFactory(FeatureFactory *factory)
324{
325 if (this->m_factorySet.contains(factory)) {
326 SU_ERROR(
327 "%s: attempting to register a %s factory twice\n",
328 this->m_path.c_str(),
329 factory->name());
330 return false;
331 }
332
333 this->m_factorySet.insert(factory);
334
335 return true;
336}
337
338bool
339Plugin::unregisterFactory(FeatureFactory *factory)

Callers 1

FeatureFactoryMethod · 0.80

Calls 1

nameMethod · 0.45

Tested by

no test coverage detected