Jafar
|
00001 00002 #ifndef DDF_PREDICTMODELFACTORY_HPP 00003 #define DDF_PREDICTMODELFACTORY_HPP 00004 00005 #include "predictenginebase.hpp" 00006 00007 namespace jafar 00008 { 00009 namespace ddf 00010 { 00011 00016 class PredictModelFactoryBase 00017 { 00018 public: 00019 PredictModelFactoryBase() {} 00020 virtual ~PredictModelFactoryBase() {} 00021 00022 virtual PredictionEngineBase* CreatePredictionModel()=0; 00023 00024 }; 00025 00030 template<typename T> 00031 class PredictModelFactoryGeneric : public PredictModelFactoryBase 00032 { 00033 public: 00034 PredictModelFactoryGeneric() {} 00035 virtual ~PredictModelFactoryGeneric() {} 00036 00037 00038 PredictionEngineBase* CreatePredictionModel() { return new T(); } 00039 }; 00040 00041 } // namespace ddf 00042 } // namespace jafar 00043 #endif
Generated on Wed Oct 15 2014 00:37:17 for Jafar by doxygen 1.7.6.1 |