18 #include <utility/exit.hh>
19 #include <utility/tag/Tag.hh>
21 #include <utility/vector0.hh>
22 #include <utility/vector1.hh>
26 namespace protein_interface_design {
27 using namespace protocols::filters;
30 : utility::pointer::ReferenceCount()
42 runtime_assert( dock_design_filter );
43 std::string const type( dock_design_filter->get_type() );
44 if ( type ==
"UNDEFINED TYPE" ) {
45 utility_exit_with_message(
"Can't map derived Filter with undefined type name.");
54 runtime_assert( dock_design_filter );
64 if ( ! iter->second ) {
65 utility_exit_with_message(
"Error: FilterOP prototype for " + type +
" is NULL!" );
67 return iter->second->fresh_instance();
70 utility_exit_with_message( type +
" is not known to the FilterFactory. Was it registered via the add_type method?" );
85 runtime_assert( filter );
86 if ( ! tag->hasOption(
"name") )
87 utility_exit_with_message(
"Can't define unnamed Filter");
88 filter->set_user_defined_name( tag->getOption<
std::string>(
"name") );
89 filter->parse_my_tag( tag, data, filters, movers, pose );
92 if ( confidence < 0.999 ) {
95 fuzzy_statement.push_back( std::make_pair( stochastic_filter->clone(),
OR ) );
96 fuzzy_statement.push_back( std::make_pair( filter->clone(),
OR ) );
98 compound_filter->set_user_defined_name( tag->getOption<
std::string>(
"name") );
99 return compound_filter;