openModeller
Version 1.4.0
|
00001 00027 #include "PreChiSquareFactory.hh" 00028 #include "PreChiSquare.hh" 00029 00030 PreChiSquareFactory::PreChiSquareFactory() 00031 : PreAlgorithmFactory( std::string( "PreChiSquare" ) ) 00032 { 00033 }; 00034 00035 PreChiSquareFactory::~PreChiSquareFactory() 00036 { 00037 }; 00038 00039 00040 PreAlgorithm* PreChiSquareFactory::build ( const PreParameters& arg ) 00041 { 00042 PreAlgorithm* instance_ptr = new PreChiSquare(); 00043 00044 if(!instance_ptr->reset( arg )) 00045 { 00046 std::string msg = "PreChiSquareFactory::build: Invalid parameters.\n"; 00047 Log::instance()->error( msg.c_str() ); 00048 throw InvalidParameterException( msg ); 00049 } 00050 return instance_ptr; 00051 } 00052