24 #include "boost/bind.hpp"
25 #include "boost/mem_fn.hpp"
26 #include "sigc++/signal.h"
44 using namespace edmplugin;
69 descriptions.
add(
"PrintLoadingPlugins", desc);
70 descriptions.
setComment(
"This service logs each request to load a plugin.");
99 const std::string& iPlugin)
105 PluginManager::CategoryToInfos::const_iterator itFound = category.find(iCategory);
107 std::string libname(
"Not found");
109 if(itFound != category.end()) {
115 typedef std::vector<PluginInfo>::const_iterator PIItr;
117 std::pair<PIItr,PIItr> range = std::equal_range(itFound->second.begin(),itFound->second.end(),
i,PICompare());
119 if(range.second - range.first > 1){
123 libname = loadable.string();
128 <<
"\n from "<<libname <<std::endl;
const CategoryToInfos & categoryToInfos() const
sigc::signal< void, const boost::filesystem::path & > goingToLoad_
sigc::signal< void, const std::string &, const std::string & > askedToLoadCategoryWithPlugin_
void askedToLoad(const std::string &, const std::string &)
std::map< std::string, Infos > CategoryToInfos
void setComment(std::string const &value)
void goingToLoad(const boost::filesystem::path &)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
virtual ~PrintLoadingPlugins()
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
static PluginManager * get()