26 #include <basic/options/option.hh>
27 #include <basic/options/keys/out.OptionKeys.gen.hh>
28 #include <basic/Tracer.hh>
29 #include <utility/vector1.hh>
30 #include <utility/exit.hh>
32 #include <ObjexxFCL/string.functions.hh>
41 static basic::Tracer
tr(
"protocols.jd2.PoseInputStreamJobInputter");
47 tr.Debug <<
"Instantiate PoseInputStreamJobInputter" << std::endl;
55 tr.Debug <<
"PoseInputStreamJobInputter::pose_from_job" << std::endl;
60 utility_exit_with_message(
"Error: no more poses!" );
67 tr.Debug <<
"PoseInputStreamJobInputter::fill_jobs" << std::endl;
76 using namespace core::import_pose::pose_stream;
80 using namespace basic::options;
81 using namespace basic::options::OptionKeys;
82 Size const nstruct( option[ out::nstruct ]() );
83 Size const shuffle_nstruct( option[ out::shuffle_nstruct ]() );
87 for (
core::Size index = 1; index <= shuffle_nstruct; ++index ) {
89 jobs.push_back(
JobOP(
new Job( ijob, index ) ) );
90 tr.Trace <<
"pushing " << ijob->input_tag() <<
" nstruct index " << index << std::endl;
103 return "PoseInputStreamJobInputter";