Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LoadPDBMover.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 LoadPDBMover.cc
11 /// @brief simple mover that loads a pdb from file and replaces the current pdb with it. Useful for checkpointing
12 
13 // Unit headers
18 #include <basic/Tracer.hh>
19 #include <core/pose/util.hh>
20 static basic::Tracer TR("protocols.simple_moves.LoadPDBMover");
21 #include <utility/tag/Tag.hh>
22 
23 #include <core/pose/Pose.hh>
25 
26 namespace protocols {
27 namespace simple_moves {
28 
31 {
33 }
34 
37  return new LoadPDBMover;
38 }
39 
42 {
43  return "LoadPDB";
44 }
45 
47  : moves::Mover("LoadPDB"),
48  filename_( "" )
49 {
50 }
51 
52 void
54 {
55  TR<<"Loading pdb file "<<filename_<<std::endl;
56  pose = *core::import_pose::pose_from_pdb( filename_, false/*read foldtree*/ );
57 }
58 
62 }
63 
66 {
67  return new LoadPDBMover( *this );
68 }
69 
72 {
73  return new LoadPDBMover;
74 }
75 
76 void
78  utility::tag::TagPtr const tag,
79  protocols::moves::DataMap & /*data*/,
82  core::pose::Pose const & )
83 {
84  filename_ = tag->getOption< std::string >( "filename" );
85  TR<<"filename: "<<filename_<<std::endl;;
86 }
87 
88 void
90  filename_ = s;
91 }
92 
95  return filename_;
96 }
97 
98 } // simple_moves
99 } // protocols