Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ExtendedPoseInputStream.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
11 /// @brief
12 /// @author James Thompson
13 
14 // libRosetta headers
15 
16 #include <core/types.hh>
18 #include <core/pose/Pose.hh>
19 
22 
23 // C++ headers
24 #include <string>
25 
26 #include <utility/exit.hh>
27 
29 #include <utility/vector1.hh>
30 
31 
32 
33 namespace core {
34 namespace import_pose {
35 namespace pose_stream {
36 
38  return ( current_n_ <= ntimes_ );
39  }
40 
42  current_n_ = 1;
43  }
44 
46  core::pose::Pose & pose,
47  core::chemical::ResidueTypeSet const & residue_set
48  ) {
49  // check to make sure that we have more poses!
50  if ( !has_another_pose() ) {
51  utility_exit_with_message(
52  "ExtendedPoseInputStream: called fill_pose, but I have no more Poses!"
53  );
54  }
55 
57  pose,
58  seq_,
59  residue_set
60  );
61 
62  for ( Size pos = 1; pos <= pose.total_residue(); pos++ ) {
63  pose.set_phi ( pos, -150 );
64  pose.set_psi ( pos, 150 );
65  pose.set_omega( pos, 180 );
66  }
67 
68  ++current_n_;
69  } // fill_pose
70 
73  ) {
74  utility_exit_with_message(
75  "ExtendedPoseInputStream: called fill_pose, but without ResidueType Set"
76  );
77  }
78 
79 } // pose_stream
80 } // import_pose
81 } // core