Description: <one line="" class="" summary>="">
Usage: <usage>
Definition at line 31 of file FWParameterSetterBase.h.
Definition at line 83 of file FWParameterSetterBase.cc.
References edm::ObjectWithDict::address(), cms::cuda::assert(), edm::TypeWithDict::byName(), edm::TypeWithDict::destruct(), edm::TypeWithDict::friendlyClassName(), fwLog, fwlog::kError, fwlog::kWarning, Skims_PA_cff::name, FWParameterBase::name(), edm::TypeWithDict::name(), AlCaHLTBitMon_ParallelJobs::p, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ViewerParameterGUI::addParam(), FWViewEnergyScaleEditor::addParam(), FWGeometryTableView::FWGeometryTableView(), CmsShowCommonPopup::makeSetter(), and FWProxyBuilderConfiguration::makeSetter().
84 static std::map<edm::TypeID, edm::TypeWithDict> s_paramToSetterMap;
86 std::map<edm::TypeID, edm::TypeWithDict>::iterator itFind = s_paramToSetterMap.find(paramType);
87 if (itFind == s_paramToSetterMap.end()) {
90 fwLog(
fwlog::kError) <<
" the type " <<
typeid(*iParam).name() <<
" is not known to Root" << std::endl;
101 if (
name ==
"FWGenericParameter<bool>")
102 name =
"FWBoolParameterSetter";
103 else if (
name ==
"FWGenericParameterWithRange<double>")
104 name =
"FWDoubleParameterSetter";
105 else if (
name ==
"FWGenericParameterWithRange<long int>")
106 name =
"FWLongParameterSetter";
107 else if (
name ==
"FWGenericParameterWithRange<long>")
108 name =
"FWLongParameterSetter";
109 else if (paramClass.friendlyClassName() ==
"StringFWGenericParameter")
110 name =
"FWStringParameterSetter";
122 s_paramToSetterMap[paramType] = setterClass;
123 itFind = s_paramToSetterMap.find(paramType);
133 std::shared_ptr<FWParameterSetterBase> ptr(
static TypeWithDict byName(std::string const &name)
const std::string & name() const
void destruct(void *address, bool dealloc=true) const