#include <PluginCapabilities.h>
Public Member Functions | |
std::vector< PluginInfo > | available () const override |
return info about all plugins which are already available in the program More... | |
const std::string & | category () const override |
returns the name of the category to which this plugin factory belongs More... | |
void | load (const std::string &iName) |
const PluginCapabilities & | operator= (const PluginCapabilities &)=delete |
PluginCapabilities (const PluginCapabilities &)=delete | |
bool | tryToFind (const SharedLibrary &iLoadable) |
Check to see if any capabilities are in the file, returns 'true' if found. More... | |
bool | tryToLoad (const std::string &iName) |
~PluginCapabilities () override | |
Public Member Functions inherited from edmplugin::PluginFactoryBase | |
const PluginFactoryBase & | operator= (const PluginFactoryBase &)=delete |
PluginFactoryBase () | |
PluginFactoryBase (const PluginFactoryBase &)=delete | |
virtual | ~PluginFactoryBase () |
Static Public Member Functions | |
static PluginCapabilities * | get () |
Private Member Functions | |
PluginCapabilities () | |
Private Attributes | |
std::map< std::string, std::filesystem::path > | classToLoadable_ |
Friends | |
class | DummyFriend |
Additional Inherited Members | |
Public Types inherited from edmplugin::PluginFactoryBase | |
typedef tbb::concurrent_unordered_map < std::string, PMakers > | Plugins |
typedef tbb::concurrent_vector < PluginMakerInfo, edm::zero_allocator < PluginMakerInfo > > | PMakers |
Public Attributes inherited from edmplugin::PluginFactoryBase | |
edm::signalslot::Signal< void(const std::string &, const PluginInfo &)> | newPluginAdded_ |
signal containing plugin category, and plugin info for newly added plugin More... | |
Protected Member Functions inherited from edmplugin::PluginFactoryBase | |
void | fillAvailable (std::vector< PluginInfo > &iReturn) const |
void | fillInfo (const PMakers &makers, PluginInfo &iInfo, std::vector< PluginInfo > &iReturn) const |
void * | findPMaker (const std::string &iName) const |
void | finishedConstruction () |
void | newPlugin (const std::string &iName) |
void | registerPMaker (void *iPMaker, const std::string &iName) |
void * | tryToFindPMaker (const std::string &iName) const |
Definition at line 32 of file PluginCapabilities.h.
|
delete |
|
override |
Definition at line 41 of file PluginCapabilities.cc.
|
private |
Definition at line 34 of file PluginCapabilities.cc.
References edmplugin::PluginFactoryBase::finishedConstruction().
|
overridevirtual |
return info about all plugins which are already available in the program
Reimplemented from edmplugin::PluginFactoryBase.
Definition at line 133 of file PluginCapabilities.cc.
References classToLoadable_, info(), submitPVValidationJobs::infos, edmplugin::PluginInfo::loadable_, and edmplugin::PluginInfo::name_.
|
overridevirtual |
returns the name of the category to which this plugin factory belongs
Implements edmplugin::PluginFactoryBase.
Definition at line 148 of file PluginCapabilities.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by load(), tryToFind(), and tryToLoad().
|
static |
Definition at line 156 of file PluginCapabilities.cc.
References CMS_THREAD_SAFE.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), submitPVValidationJobs.BetterConfigParser::__updateDict(), rrapi.RRApi::columns(), rrapi.RRApi::count(), rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), submitPVValidationJobs.BetterConfigParser::getResultingSection(), edm::service::LoadAllDictionaries::LoadAllDictionaries(), main(), rrapi.RRApi::report(), rrapi.RRApi::reports(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), rrapi.RRApi::templates(), and rrapi.RRApi::workspaces().
void PluginCapabilities::load | ( | const std::string & | iName | ) |
Definition at line 83 of file PluginCapabilities.cc.
References category(), classToLoadable_, Exception, edmplugin::PluginManager::get(), mps_check::lib, edmplugin::PluginManager::load(), edmplugin::SharedLibrary::path(), and tryToFind().
Referenced by edm::service::LoadAllDictionaries::LoadAllDictionaries().
|
delete |
bool PluginCapabilities::tryToFind | ( | const SharedLibrary & | iLoadable | ) |
Check to see if any capabilities are in the file, returns 'true' if found.
Definition at line 58 of file PluginCapabilities.cc.
References category(), classToLoadable_, mps_fire::i, info(), edmplugin::PluginInfo::loadable_, mergeVDriftHistosByStation::name, edmplugin::PluginInfo::name_, names, edmplugin::PluginFactoryBase::newPluginAdded_, edmplugin::SharedLibrary::path(), findQualityFiles::size, AlCaHLTBitMon_QueryRunRegistry::string, and edmplugin::SharedLibrary::symbol().
Referenced by load(), main(), and tryToLoad().
bool PluginCapabilities::tryToLoad | ( | const std::string & | iName | ) |
Definition at line 105 of file PluginCapabilities.cc.
References category(), classToLoadable_, Exception, edmplugin::PluginManager::get(), mps_check::lib, edmplugin::SharedLibrary::path(), tryToFind(), and edmplugin::PluginManager::tryToLoad().
|
friend |
Definition at line 33 of file PluginCapabilities.h.
|
private |
Definition at line 60 of file PluginCapabilities.h.
Referenced by available(), load(), tryToFind(), and tryToLoad().