14 #ifndef INCLUDED_core_pose_stream_util_HH
15 #define INCLUDED_core_pose_stream_util_HH
29 #include <basic/options/option.hh>
30 #include <basic/options/keys/in.OptionKeys.gen.hh>
34 #include <utility/io/izstream.hh>
36 #include <utility/vector1.hh>
37 #include <boost/bind.hpp>
41 namespace import_pose {
42 namespace pose_stream {
56 it_end = list_fns.end();
60 utility::io::izstream data(
filename.c_str() );
62 utility_exit_with_message(
"Unable to open file: " +
filename +
'\n' );
65 while( getline(data, line) ) {
75 using namespace basic::options;
76 using namespace basic::options::OptionKeys;
79 if ( option[ in::file::s ].user() ) {
83 input.add_pose_input_stream( pdb_input );
85 if ( option[ in::file::l ].user() ) {
89 input.add_pose_input_stream( pdb_list_input );
92 if ( option[ in::file::silent ].user() ) {
93 if ( option[ in::file::lazy_silent ]() ) {
97 input.add_pose_input_stream(silent_input);
99 if ( option[ in::file::silent_list ].user() ) {
102 option[ in::file::silent_list ]()
105 input.add_pose_input_stream(silent_list_input);
109 if ( option[ in::file::tags ].user() ) {
112 option[ in::file::silent ](),
113 option[ in::file::tags ](),
114 option[ in::file::silent_energy_cut ]()
118 option[ in::file::silent ](), option[ in::file::silent_energy_cut ]()
121 silent_input->renumber_decoys( option[ in::file::silent_renumber ]() );
122 input.add_pose_input_stream( silent_input );
126 if ( option[ in::file::extended_pose ].user() ) {
127 Size const ntimes = option[ in::file::extended_pose ]();
134 end = fasta_files.end(); it !=
end; ++it
143 input.add_pose_input_stream( extended_protein_input );