66 using namespace edmplugin;
69 using std::placeholders::_1;
70 using std::placeholders::_2;
87 descriptions.
add(
"PrintLoadingPlugins", desc);
88 descriptions.
setComment(
"This service logs each request to load a plugin.");
118 PluginManager::CategoryToInfos::const_iterator itFound = category.find(iCategory);
122 if (itFound != category.end()) {
127 typedef std::vector<PluginInfo>::const_iterator PIItr;
129 std::pair<PIItr, PIItr>
range = std::equal_range(itFound->second.begin(), itFound->second.end(),
i, PICompare());
131 if (range.second - range.first > 1) {
134 libname = loadable.string();
137 edm::LogAbsolute(
"GetPlugin") <<
"Getting> '" << iCategory <<
"' " << iPlugin <<
"\n from " << libname
145 edm::LogAbsolute(
"LoadLib") <<
"Loading> " << Loadable_.string() << std::endl;
const CategoryToInfos & categoryToInfos() const
#define DEFINE_FWK_SERVICE_MAKER(concrete, maker)
void goingToLoad(const std::filesystem::path &)
static const char category[]
edm::signalslot::Signal< void(const std::filesystem::path &)> goingToLoad_
std::map< std::string, Infos > CategoryToInfos
edm::serviceregistry::NoArgsMaker< PrintLoadingPlugins > PrintLoadingPluginsMaker
const uint16_t range(const Frame &aFrame)
edm::signalslot::Signal< void(const std::string &, const std::string &)> askedToLoadCategoryWithPlugin_
void askedToLoad(const std::string &, const std::string &)
const PrintLoadingPlugins & operator=(const PrintLoadingPlugins &)=delete
void setComment(std::string const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
virtual ~PrintLoadingPlugins()
Log< level::System, true > LogAbsolute
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
static PluginManager * get()