19 #include <boost/bind.hpp> 93 std::shared_ptr<FWParameterSetterBase>
96 static std::map<edm::TypeID,edm::TypeWithDict> s_paramToSetterMap;
98 std::map<edm::TypeID,edm::TypeWithDict>::iterator itFind = s_paramToSetterMap.find(paramType);
99 if (itFind == s_paramToSetterMap.end())
104 fwLog(
fwlog::kError) <<
" the type "<<
typeid(*iParam).name()<<
" is not known to Root" <<std::endl;
115 if (name ==
"FWGenericParameter<bool>")
116 name =
"FWBoolParameterSetter";
117 else if (name ==
"FWGenericParameter<std::string>")
118 name =
"FWStringParameterSetter";
119 else if (name ==
"FWGenericParameter<std::basic_string<char> >")
120 name =
"FWStringParameterSetter";
121 else if (name ==
"FWGenericParameterWithRange<double>")
122 name =
"FWDoubleParameterSetter";
123 else if (name ==
"FWGenericParameterWithRange<long int>")
124 name =
"FWLongParameterSetter";
125 else if (name ==
"FWGenericParameterWithRange<long>")
126 name =
"FWLongParameterSetter";
137 s_paramToSetterMap[paramType]=setterClass;
138 itFind = s_paramToSetterMap.find(paramType);
virtual void updateEditor()
void attach(FWParameterBase *, FWParameterSetterEditorBase *)
virtual void setEnabled(bool)
static TypeWithDict byName(std::string const &name)
FWParameterSetterEditorBase * m_frame
void destruct(void *address, bool dealloc=true) const
static std::shared_ptr< FWParameterSetterBase > makeSetterFor(FWParameterBase *)
virtual ~FWParameterSetterBase()