#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 std::map< std::string, PMakers > | Plugins |
typedef std::vector< std::pair < void *, std::string > > | PMakers |
Public Attributes inherited from edmplugin::PluginFactoryBase | |
sigc::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 |
Plugins::const_iterator | findPMaker (const std::string &iName) const |
void | finishedConstruction () |
void | newPlugin (const std::string &iName) |
void | registerPMaker (void *iPMaker, const std::string &iName) |
Plugins::const_iterator | tryToFindPMaker (const std::string &iName) const |
Protected Attributes inherited from edmplugin::PluginFactoryBase | |
Plugins | m_plugins |
Definition at line 33 of file PluginCapabilities.h.
|
virtual |
Definition at line 44 of file PluginCapabilities.cc.
|
private |
Definition at line 34 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 139 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 156 of file PluginCapabilities.cc.
Referenced by load(), tryToFind(), and tryToLoad().
|
static |
Definition at line 166 of file PluginCapabilities.cc.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), edm::ProductRegistryHelper::addToRegistry(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), edm::service::InitRootHandlers::InitRootHandlers(), edm::RootAutoLibraryLoader::loadAll(), edm::service::LoadAllDictionaries::LoadAllDictionaries(), edm::loadCap(), ora::ClassUtils::loadDictionary(), and main().
void PluginCapabilities::load | ( | const std::string & | iName | ) |
Definition at line 91 of file PluginCapabilities.cc.
References category(), classToLoadable_, edm::hlt::Exception, edmplugin::PluginManager::get(), edmplugin::PluginManager::load(), edmplugin::SharedLibrary::path(), and tryToFind().
Referenced by edm::service::InitRootHandlers::InitRootHandlers(), edm::RootAutoLibraryLoader::loadAll(), edm::service::LoadAllDictionaries::LoadAllDictionaries(), edm::loadCap(), and ora::ClassUtils::loadDictionary().
|
private |
bool PluginCapabilities::tryToFind | ( | const SharedLibrary & | iLoadable | ) |
Check to see if any capabilities are in the file, returns 'true' if found.
Definition at line 64 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, and edmplugin::SharedLibrary::symbol().
Referenced by load(), main(), and tryToLoad().
bool PluginCapabilities::tryToLoad | ( | const std::string & | iName | ) |
Definition at line 112 of file PluginCapabilities.cc.
References category(), classToLoadable_, edm::hlt::Exception, edmplugin::PluginManager::get(), edmplugin::SharedLibrary::path(), tryToFind(), and edmplugin::PluginManager::tryToLoad().
Referenced by edm::ProductRegistryHelper::addToRegistry().
|
friend |
Definition at line 35 of file PluginCapabilities.h.
|
private |
Definition at line 62 of file PluginCapabilities.h.
Referenced by available(), load(), tryToFind(), and tryToLoad().