1 #ifndef _WEIGHTCALCCREATOR_H_ 2 #define _WEIGHTCALCCREATOR_H_ 23 std::cout << __PRETTY_FUNCTION__ <<
" called." << std::endl;
29 #define DECLARE_WEIGHTCALC(wghcalc) \ 31 static const WeightCalcImpl<wghcalc> creator; 33 #define REGISTER_WEIGHTCALC(wghcalc) const WeightCalcImpl<wghcalc> wghcalc::creator(#wghcalc); 36 #endif // _WEIGHTCALCFACTORY_H_ virtual WeightCalc * Create()=0
virtual WeightCalc * Create()
WeightCalcCreator(const std::string &classname)
virtual ~WeightCalcCreator()=default