openModeller
Version 1.5.0
Main Page
Modules
Classes
Files
File List
File Members
PreChiSquareFactory.cpp
Go to the documentation of this file.
1
27
#include "
PreChiSquareFactory.hh
"
28
#include "
PreChiSquare.hh
"
29
30
PreChiSquareFactory::PreChiSquareFactory
()
31
: PreAlgorithmFactory( std::string(
"PreChiSquare"
) )
32
{
33
};
34
35
PreChiSquareFactory::~PreChiSquareFactory
()
36
{
37
};
38
39
40
PreAlgorithm
*
PreChiSquareFactory::build
(
const
PreParameters
& arg )
41
{
42
PreAlgorithm
* instance_ptr =
new
PreChiSquare
();
43
44
if
(!instance_ptr->
reset
( arg ))
45
{
46
std::string msg =
"PreChiSquareFactory::build: Invalid parameters.\n"
;
47
Log::instance
()->
error
( msg.c_str() );
48
throw
InvalidParameterException
( msg );
49
}
50
return
instance_ptr;
51
}
52
Log::instance
static Log * instance()
Returns the instance pointer, creating the object on the first call.
Definition:
Log.cpp:45
PreAlgorithm::reset
bool reset(const PreParameters ¶ms)
Definition:
PreAlgorithm.cpp:46
Log::error
void error(const char *format,...)
'Error' level.
Definition:
Log.cpp:290
InvalidParameterException
Definition:
Exceptions.hh:105
PreChiSquareFactory.hh
PreParameters
Definition:
PreParameters.hh:42
PreAlgorithm
Definition:
PreAlgorithm.hh:35
PreChiSquareFactory::PreChiSquareFactory
PreChiSquareFactory()
Definition:
PreChiSquareFactory.cpp:30
PreChiSquareFactory::~PreChiSquareFactory
~PreChiSquareFactory()
Definition:
PreChiSquareFactory.cpp:35
PreChiSquare
Definition:
PreChiSquare.hh:47
PreChiSquare.hh
PreChiSquareFactory::build
PreAlgorithm * build(const PreParameters &arg)
Definition:
PreChiSquareFactory.cpp:40
src
openmodeller
pre
PreChiSquareFactory.cpp
Generated on Thu Jan 8 2015 17:05:10 for openModeller by
1.8.6