26 #include <basic/options/option.hh>
30 #include <basic/options/keys/residues.OptionKeys.gen.hh>
32 #include <utility/vector1.hh>
59 std::istringstream l( line );
62 if ( l.fail() )
return 0;
63 bool desired_result(
true );
65 desired_result =
false;
77 if ( !aas.empty() )
return new Selector_AA( aas, desired_result );
79 }
else if ( tag ==
"NAME3" ) {
84 name3s.push_back( name3 );
87 if( !name3s.empty() )
return new Selector_NAME3( name3s, desired_result );
89 }
else if ( tag ==
"PROPERTY" ) {
93 while ( !l.fail() &&
property[0] !=
'#' ) {
94 properties.push_back( property );
97 if ( !properties.empty() )
return new Selector_PROPERTY( properties, desired_result );
99 }
else if ( tag ==
"VARIANT_TYPE" ) {
103 while ( !l.fail() && variant_type[0] !=
'#' ) {
104 variant_types.push_back( variant_type );
108 }
else if ( tag ==
"CMDLINE_SELECTOR" ) {
110 l >> selector_string;
111 if ( !selector_string.empty() )
return new Selector_CMDFLAG( selector_string, desired_result );
113 std::cout <<
"residue_selector_single: unrecognized line: " << line << std::endl;
124 if (
operator[]( **it ) ) rsd_list.push_back( *it );
134 using namespace basic::options;
135 using namespace basic::options::OptionKeys;
137 if ( !option[ OptionKeys::residues::patch_selectors ].user() )
return;
138 for ( StringVectorOption::const_iterator it = option[ OptionKeys::residues::patch_selectors ]().begin(),
139 eit = option[ OptionKeys::residues::patch_selectors ]().
end(); it != eit ; ++ it ) {
140 if ( *it == flag_in ) {