1 #ifndef _WEIGHTCALCCREATOR_H_ 2 #define _WEIGHTCALCCREATOR_H_ 25 #define DECLARE_WEIGHTCALC(wghcalc) \ 27 static const WeightCalcImpl<wghcalc> creator; 29 #define REGISTER_WEIGHTCALC(wghcalc) \ 30 const WeightCalcImpl<wghcalc> wghcalc::creator(#wghcalc); 33 #endif // _WEIGHTCALCFACTORY_H_
virtual WeightCalc * Create()=0
virtual ~WeightCalcCreator()
virtual WeightCalc * Create()
WeightCalcCreator(const std::string &classname)