1 #ifndef _WEIGHTCALCCREATOR_H_
2 #define _WEIGHTCALCCREATOR_H_
28 #define DECLARE_WEIGHTCALC(wghcalc) \
30 static const WeightCalcImpl<wghcalc> creator;
32 #define REGISTER_WEIGHTCALC(wghcalc) \
33 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
BEGIN_PROLOG could also be cout