CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions
edm::service::LoadAllDictionaries Class Reference

Public Member Functions

 LoadAllDictionaries (const edm::ParameterSet &)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Private Member Functions

 LoadAllDictionaries (const LoadAllDictionaries &)
 
const LoadAllDictionariesoperator= (const LoadAllDictionaries &)
 

Detailed Description

Definition at line 32 of file LoadAllDictionaries.cc.

Constructor & Destructor Documentation

LoadAllDictionaries::LoadAllDictionaries ( const edm::ParameterSet iConfig)

Definition at line 68 of file LoadAllDictionaries.cc.

References edmplugin::PluginManager::categoryToInfos(), edmplugin::PluginCapabilities::get(), edmplugin::PluginManager::get(), edm::ParameterSet::getUntrackedParameter(), edmplugin::PluginCapabilities::load(), and AlCaHLTBitMon_QueryRunRegistry::string.

69 {
70  bool doLoad(iConfig.getUntrackedParameter<bool>("doLoad"));
71  if(doLoad) {
73 
75 
76  CatToInfos::const_iterator itFound = db->categoryToInfos().find("Capability");
77 
78  if(itFound == db->categoryToInfos().end()) {
79  return;
80  }
81  std::string lastClass;
82  const std::string mystring("edm::Wrapper");
83 
84  for (edmplugin::PluginManager::Infos::const_iterator itInfo = itFound->second.begin(),
85  itInfoEnd = itFound->second.end();
86  itInfo != itInfoEnd; ++itInfo)
87  {
88  if (lastClass == itInfo->name_) {
89  continue;
90  }
91 
92  lastClass = itInfo->name_;
93  if (lastClass.find(mystring) != std::string::npos) {
95  }
96  //NOTE: since we have the library already, we could be more efficient if we just load it ourselves
97  }
98  }
99 }
const CategoryToInfos & categoryToInfos() const
Definition: PluginManager.h:82
T getUntrackedParameter(std::string const &, T const &) const
std::map< std::string, Infos > CategoryToInfos
Definition: PluginManager.h:54
static PluginCapabilities * get()
void load(const std::string &iName)
static PluginManager * get()
edm::service::LoadAllDictionaries::LoadAllDictionaries ( const LoadAllDictionaries )
private

Member Function Documentation

void LoadAllDictionaries::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 101 of file LoadAllDictionaries.cc.

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::addUntracked(), and edm::ConfigurationDescriptions::setComment().

101  {
103  desc.addUntracked<bool>("doLoad", true)->setComment("Only if 'true' do we load all dictionaries");
104  descriptions.add("LoadAllDictionaries", desc);
105  descriptions.setComment("This service allows you to force all known dictionaries to be loaded at the beginning of the job");
106 }
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
void setComment(std::string const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const LoadAllDictionaries& edm::service::LoadAllDictionaries::operator= ( const LoadAllDictionaries )
private