Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
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 
27  mover_list_[ name ] = the_mover;
28 }
29 
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