#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) |
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 | |
PluginFactoryBase () | |
virtual | ~PluginFactoryBase () |
Static Public Member Functions | |
static PluginCapabilities * | get () |
Private Member Functions | |
const PluginCapabilities & | operator= (const PluginCapabilities &)=delete |
PluginCapabilities () | |
PluginCapabilities (const PluginCapabilities &)=delete | |
Private Attributes | |
std::map< std::string, boost::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 > | 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.
|
override |
Definition at line 41 of file PluginCapabilities.cc.
|
private |
Definition at line 34 of file PluginCapabilities.cc.
References edmplugin::PluginFactoryBase::finishedConstruction().
|
privatedelete |
|
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(), MessageLogger_cfi::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(), rrapi.RRApi::columns(), rrapi.RRApi::count(), rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.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().
|
privatedelete |
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_, Skims_PA_cff::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 61 of file PluginCapabilities.h.
Referenced by available(), load(), tryToFind(), and tryToLoad().