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
wum
MoverList.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 protocols/wum/MoverList.cc
11
/// @brief
12
/// @author Mike Tyka
13
14
#include <
protocols/wum/MoverList.hh
>
15
#include <basic/Tracer.hh>
16
#include <utility/exit.hh>
17
18
#include <utility/vector1.hh>
19
20
21
namespace
protocols {
22
namespace
wum {
23
24
static
basic::Tracer
TR
(
"MoverList"
);
25
26
void
MoverList::register_mover
(
const
std::string
&name,
moves::MoverCOP
the_mover){
27
mover_list_
[ name ] = the_mover;
28
}
29
30
moves::MoverCOP
MoverList::get_mover
(
const
std::string
&name )
const
{
31
TR
<<
"Getting Mover.."
<< std::endl;
32
std::map< std::string, moves::MoverCOP >::const_iterator iter =
mover_list_
.find( name );
33
if
( iter ==
mover_list_
.end() ){
34
utility_exit_with_message(
"ERROR: Cannot find Mover named '"
+ name +
"'"
);
35
}
36
return
iter->second();
37
}
38
39
40
}
41
}
42
43
Generated on Sat Jun 1 2013 12:25:14 for Rosetta 3.5 by
1.8.4