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(), fwLog, fwlog::kError, mergeVDriftHistosByStation::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 ==
"FWGenericParameter<std::string>")
104 name =
"FWStringParameterSetter";
105 else if (name ==
"FWGenericParameter<std::basic_string<char> >")
106 name =
"FWStringParameterSetter";
107 else if (name ==
"FWGenericParameterWithRange<double>")
108 name =
"FWDoubleParameterSetter";
109 else if (name ==
"FWGenericParameterWithRange<long int>")
110 name =
"FWLongParameterSetter";
111 else if (name ==
"FWGenericParameterWithRange<long>")
112 name =
"FWLongParameterSetter";
122 s_paramToSetterMap[paramType] = setterClass;
123 itFind = s_paramToSetterMap.find(paramType);
133 std::shared_ptr<FWParameterSetterBase> ptr(
static TypeWithDict byName(std::string const &name)
void destruct(void *address, bool dealloc=true) const