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