CMS 3D CMS Logo

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

Public Member Functions

 LoadAllDictionaries (const edm::ParameterSet &)
 
 LoadAllDictionaries (const LoadAllDictionaries &)=delete
 
const LoadAllDictionariesoperator= (const LoadAllDictionaries &)=delete
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Detailed Description

Definition at line 32 of file LoadAllDictionaries.cc.

Constructor & Destructor Documentation

◆ LoadAllDictionaries() [1/2]

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

Definition at line 64 of file LoadAllDictionaries.cc.

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

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

◆ LoadAllDictionaries() [2/2]

edm::service::LoadAllDictionaries::LoadAllDictionaries ( const LoadAllDictionaries )
delete

Member Function Documentation

◆ fillDescriptions()

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

Definition at line 96 of file LoadAllDictionaries.cc.

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, and edm::ConfigurationDescriptions::setComment().

96  {
98  desc.addUntracked<bool>("doLoad", true)->setComment("Only if 'true' do we load all dictionaries");
99  descriptions.add("LoadAllDictionaries", desc);
100  descriptions.setComment(
101  "This service allows you to force all known dictionaries to be loaded at the beginning of the job");
102 }
void setComment(std::string const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)

◆ operator=()

const LoadAllDictionaries& edm::service::LoadAllDictionaries::operator= ( const LoadAllDictionaries )
delete