23 #include <basic/Tracer.hh>
24 #include <utility/exit.hh>
31 #include <utility/vector1.hh>
41 basic::Error() <<
"Cannot register a calculator with name: " << calculator_name << std::endl;
42 basic::Error() <<
"This calculator already exists" << std::endl;
45 calculators_.insert( std::make_pair ( calculator_name, new_calculator ) );
51 std::map< std::string, PoseMetricCalculatorOP >::const_iterator calculator_iter;
64 std::map< std::string, PoseMetricCalculatorOP >::iterator i =
calculators_.find( calculator_name );
88 std::map< std::string, PoseMetricCalculatorOP >::const_iterator calculator_iter;
92 basic::Error() <<
"Could not find calculator " << calculator_name <<
" - need to register it before use" << std::endl;
95 return calculator_iter->second->clone();