#include <PluginCapabilities.h>
Public Member Functions | |
virtual std::vector< PluginInfo > | available () const |
return info about all plugins which are already available in the program More... | |
virtual const std::string & | category () const |
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) |
virtual | ~PluginCapabilities () |
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 &) |
PluginCapabilities () | |
PluginCapabilities (const PluginCapabilities &) | |
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.
|
virtual |
Definition at line 43 of file PluginCapabilities.cc.
|
private |
Definition at line 33 of file PluginCapabilities.cc.
References edmplugin::PluginFactoryBase::finishedConstruction().
|
private |
|
virtual |
return info about all plugins which are already available in the program
Reimplemented from edmplugin::PluginFactoryBase.
Definition at line 138 of file PluginCapabilities.cc.
References classToLoadable_, info(), benchmark_cfg::infos, edmplugin::PluginInfo::loadable_, and edmplugin::PluginInfo::name_.
|
virtual |
returns the name of the category to which this plugin factory belongs
Implements edmplugin::PluginFactoryBase.
Definition at line 155 of file PluginCapabilities.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by load(), tryToFind(), and tryToLoad().
|
static |
Definition at line 165 of file PluginCapabilities.cc.
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 90 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().
|
private |
bool PluginCapabilities::tryToFind | ( | const SharedLibrary & | iLoadable | ) |
Check to see if any capabilities are in the file, returns 'true' if found.
Definition at line 63 of file PluginCapabilities.cc.
References category(), classToLoadable_, i, info(), edmplugin::PluginInfo::loadable_, mergeVDriftHistosByStation::name, edmplugin::PluginInfo::name_, cscdqm::h::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 111 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 34 of file PluginCapabilities.h.
|
private |
Definition at line 61 of file PluginCapabilities.h.
Referenced by available(), load(), tryToFind(), and tryToLoad().