MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / ConfiguredPlugin

Method ConfiguredPlugin

src/yvalve/PluginManager.cpp:452–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450 {
451 public:
452 ConfiguredPlugin(RefPtr<PluginModule> pmodule, unsigned int preg,
453 RefPtr<ConfigFile> pconfig, const PathName& pconfName,
454 const PathName& pplugName)
455 : module(pmodule), regPlugin(preg), pluginLoaderConfig(pconfig),
456 confName(getPool(), pconfName), plugName(getPool(), pplugName),
457 processingDelayedDelete(false), delay(DEFAULT_DELAY)
458 {
459 if (pluginLoaderConfig.hasData())
460 {
461 const ConfigFile::Parameter* p = pluginLoaderConfig->findParameter("ConfigFile");
462 if (p && p->value.hasData())
463 {
464 confName = p->value.ToPathName();
465 }
466 }
467 if (module != builtin)
468 {
469 byTypeCounters->get(module->getPlugin(regPlugin).type).counter++;
470 }
471#ifdef DEBUG_PLUGINS
472 RegisteredPlugin& r(module->getPlugin(regPlugin));
473 fprintf(stderr, " ConfiguredPlugin %s module %s registered as %s type %d order %d\n",
474 plugName.c_str(), module->getName(), r.name.c_str(), r.type, regPlugin);
475#endif
476 }
477
478 const char* getConfigFileName()
479 {

Callers

nothing calls this directly

Calls 7

findParameterMethod · 0.80
ToPathNameMethod · 0.80
hasDataMethod · 0.45
getMethod · 0.45
getPluginMethod · 0.45
c_strMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected