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