1 #ifndef FWCore_PluginManager_PluginManager_h
2 #define FWCore_PluginManager_PluginManager_h
29 #include "oneapi/tbb/concurrent_unordered_map.h"
50 typedef std::vector<PluginInfo>
Infos;
115 bool& ioThrowIfFailElseSucceedStatus);
118 oneapi::tbb::concurrent_unordered_map<std::filesystem::path, std::shared_ptr<SharedLibrary>,
PluginManagerPathHasher>
CategoryToInfos categoryToInfos_
const CategoryToInfos & categoryToInfos() const
const SharedLibrary * tryToLoad(const std::string &iCategory, const std::string &iPlugin)
static PluginManager & configure(const Config &)
edm::signalslot::Signal< void(const std::filesystem::path &)> goingToLoad_
static PluginManager *& singleton()
std::map< std::string, Infos > CategoryToInfos
oneapi::tbb::concurrent_unordered_map< std::filesystem::path, std::shared_ptr< SharedLibrary >, PluginManagerPathHasher > loadables_
static const std::string & staticallyLinkedLoadingFileName()
if the value returned from loadingFile matches this string then the file is statically linked ...
static bool isAvailable()
const SearchPath & searchPath() const
const std::filesystem::path & loadableFor_(const std::string &iCategory, const std::string &iPlugin, bool &ioThrowIfFailElseSucceedStatus)
size_t operator()(std::filesystem::path const &iPath) const
const PluginManager & operator=(const PluginManager &)=delete
PluginManager(const PluginManager &)=delete
edm::signalslot::Signal< void(const std::string &, const std::string &)> askedToLoadCategoryWithPlugin_
static const std::string & loadingFile()
file name of the shared object being loaded
std::vector< std::string > SearchPath
edm::signalslot::Signal< void(const SharedLibrary &)> justLoaded_
bool mustHaveCache() const
std::recursive_mutex & pluginLoadMutex()
const std::filesystem::path & loadableFor(const std::string &iCategory, const std::string &iPlugin)
Config & searchPath(const SearchPath &iPath)
static std::string & loadingLibraryNamed_()
std::vector< PluginInfo > Infos
void newFactory(const PluginFactoryBase *)
const SharedLibrary & load(const std::string &iCategory, const std::string &iPlugin)
std::recursive_mutex pluginLoadMutex_