LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
WeightCalcFactory.h
Go to the documentation of this file.
1 #ifndef _WEIGHTCALCFACTORY_H_
2 #define _WEIGHTCALCFACTORY_H_
3 
4 #include <map>
5 #include <string>
6 
7 namespace evwgh {
8  class WeightCalc;
9  class WeightCalcCreator;
10 
12  public:
13  static WeightCalc* Create(const std::string& classname);
14  static void Register(const std::string& wghcalcname, WeightCalcCreator* creator);
15 
16  private:
17  static std::map<std::string, WeightCalcCreator*>& GetTable();
18  };
19 }
20 
21 #endif // _WEIGHTCALCFACTORY_H_
static WeightCalc * Create(const std::string &classname)
static std::map< std::string, WeightCalcCreator * > & GetTable()
static void Register(const std::string &wghcalcname, WeightCalcCreator *creator)