Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PoseInputStream.cc
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file PoseInputStream.cc
11 /// @brief
12 /// @author James Thompson
13 
15 
17 #include <core/pose/Pose.hh>
18 #include <core/pose/util.hh>
19 
20 #include <basic/options/option.hh>
21 
22 // AUTO-REMOVED #include <core/scoring/constraints/util.hh>
23 // AUTO-REMOVED #include <core/scoring/constraints/ConstraintSet.hh>
25 // AUTO-REMOVED #include <core/scoring/constraints/ConstraintIO.hh>
26 
28 
29 #include <utility/vector1.hh>
30 #include <utility/pointer/owning_ptr.hh>
31 
32 // option key includes
33 
34 // AUTO-REMOVED #include <basic/options/keys/constraints.OptionKeys.gen.hh>
35 #include <basic/options/keys/in.OptionKeys.gen.hh>
36 #include <basic/options/keys/james.OptionKeys.gen.hh>
37 
38 // STL
39 #include <utility>
40 
41 namespace core {
42 namespace import_pose {
43 namespace pose_stream {
44 
46  using basic::options::option;
47  using namespace basic::options::OptionKeys;
48 
49  if ( option[ james::debug ]() ) return;
50 
52 
53  // add constraints if specified by the user.
54  // do this in a mover instead!
55  //using namespace core::scoring::constraints;
56  //if ( option[ constraints::cst_file ].user() ) {
57  // core::scoring::constraints::ConstraintSetOP
58  // cstset_ = ConstraintIO::get_instance()->read_constraints(
59  // get_cst_file_option(), new ConstraintSet, pose
60  // );
61  // pose.constraint_set( cstset_ );
62  //}
63 } // PoseInputStream::preprocess_pose
64 
66  core::chemical::ResidueTypeSet const & residue_set
67 ) {
69  while( has_another_pose() ) {
70  core::pose::Pose pose;
71  fill_pose( pose, residue_set );
72  pose_list.push_back( pose );
73  }
74  return pose_list;
75 }
76 
77 } // pose_stream
78 } // import_pose
79 } // core