Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
protocols
simple_moves
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
14
#include <
protocols/simple_moves/LoadPDBMover.hh
>
15
#include <
protocols/simple_moves/LoadPDBMoverCreator.hh
>
16
#include <
protocols/moves/DataMapObj.hh
>
17
#include <
protocols/moves/DataMap.hh
>
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
>
24
#include <
core/import_pose/import_pose.hh
>
25
26
namespace
protocols {
27
namespace
simple_moves {
28
29
std::string
30
LoadPDBMoverCreator::keyname
()
const
31
{
32
return
LoadPDBMoverCreator::mover_name
();
33
}
34
35
protocols::moves::MoverOP
36
LoadPDBMoverCreator::create_mover
()
const
{
37
return
new
LoadPDBMover
;
38
}
39
40
std::string
41
LoadPDBMoverCreator::mover_name
()
42
{
43
return
"LoadPDB"
;
44
}
45
46
LoadPDBMover::LoadPDBMover
()
47
: moves::
Mover
(
"LoadPDB"
),
48
filename_(
""
)
49
{
50
}
51
52
void
53
LoadPDBMover::apply
(
Pose
& pose )
54
{
55
TR
<<
"Loading pdb file "
<<
filename_
<<std::endl;
56
pose = *
core::import_pose::pose_from_pdb
(
filename_
,
false
/*read foldtree*/
);
57
}
58
59
std::string
60
LoadPDBMover::get_name
()
const
{
61
return
LoadPDBMoverCreator::mover_name
();
62
}
63
64
moves::MoverOP
65
LoadPDBMover::clone
()
const
66
{
67
return
new
LoadPDBMover
( *
this
);
68
}
69
70
moves::MoverOP
71
LoadPDBMover::fresh_instance
()
const
72
{
73
return
new
LoadPDBMover
;
74
}
75
76
void
77
LoadPDBMover::parse_my_tag
(
78
utility::tag::TagPtr
const
tag,
79
protocols::moves::DataMap
&
/*data*/
,
80
protocols::filters::Filters_map
const
&,
81
protocols::moves::Movers_map
const
&,
82
core::pose::Pose
const
& )
83
{
84
filename_
= tag->getOption<
std::string
>(
"filename"
);
85
TR
<<
"filename: "
<<
filename_
<<std::endl;;
86
}
87
88
void
89
LoadPDBMover::filename
(
std::string
const
s ){
90
filename_
= s;
91
}
92
93
std::string
94
LoadPDBMover::filename
()
const
{
95
return
filename_
;
96
}
97
98
}
// simple_moves
99
}
// protocols
Generated on Sat Jun 1 2013 12:16:04 for Rosetta 3.5 by
1.8.4