1 #ifndef FWCore_PluginManager_PluginManager_h
2 #define FWCore_PluginManager_PluginManager_h
27 #include <boost/filesystem/path.hpp>
28 #include "boost/shared_ptr.hpp"
29 #include "tbb/concurrent_unordered_map.h"
43 tbb::tbb_hash<std::string> hasher;
44 return hasher( iPath.native() );
53 typedef std::vector<PluginInfo>
Infos;
122 bool& ioThrowIfFailElseSucceedStatus);
CategoryToInfos categoryToInfos_
const CategoryToInfos & categoryToInfos() const
const boost::filesystem::path & loadableFor(const std::string &iCategory, const std::string &iPlugin)
const SharedLibrary * tryToLoad(const std::string &iCategory, const std::string &iPlugin)
static PluginManager & configure(const Config &)
static PluginManager *& singleton()
const boost::filesystem::path & loadableFor_(const std::string &iCategory, const std::string &iPlugin, bool &ioThrowIfFailElseSucceedStatus)
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
tuple path
else: Piece not in the list, fine.
const PluginManager & operator=(const PluginManager &)
static const std::string & loadingFile()
file name of the shared object being loaded
std::map< std::string, Infos > CategoryToInfos
std::vector< std::string > SearchPath
edm::signalslot::Signal< void(const SharedLibrary &)> justLoaded_
tbb::concurrent_unordered_map< boost::filesystem::path, boost::shared_ptr< SharedLibrary >, PluginManagerPathHasher > loadables_
edm::signalslot::Signal< void(const std::string &, const std::string &)> askedToLoadCategoryWithPlugin_
std::recursive_mutex & pluginLoadMutex()
edm::signalslot::Signal< void(const boost::filesystem::path &)> goingToLoad_
Config & searchPath(const SearchPath &iPath)
size_t operator()(boost::filesystem::path const &iPath) const
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_
PluginManager(const Config &)