Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PoolEvaluatorCreator.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/simple_filters/PoolEvaluatorCreator.hh
11 /// @brief Header for PoolEvaluatorCreator
12 /// @author Matthew O'Meara
13 
14 // Unit Headers
16 
17 // Package Headers
19 
20 // Package Headers
24 
26 #include <core/pose/Pose.hh>
27 
28 // ObjexxFCL Headers
29 #include <ObjexxFCL/string.functions.hh>
30 
31 // Utility headers
32 #include <utility/pointer/ReferenceCount.hh>
33 #include <utility/vector1.hh>
34 #include <utility/file/FileName.hh>
35 
36 #include <basic/options/option.hh>
37 #include <basic/Tracer.hh>
38 
39 // due to template function
41 
42 // option key includes
43 #include <basic/options/option_macros.hh>
44 #include <basic/options/keys/evaluation.OptionKeys.gen.hh>
45 #include <utility/vector0.hh>
46 
47 #ifdef WIN32
49 #endif
50 
51 
52 static basic::Tracer tr("protocols.evalution.PoolEvaluatorCreator");
53 
54 namespace protocols {
55 namespace simple_filters {
56 
58 
60  using namespace basic::options;
61  if ( options_registered_ ) return;
62  options_registered_ = true;
63 
64  OPT( evaluation::pool );
65 
66 }
67 
69  using namespace core;
70  using namespace basic::options;
71  using namespace basic::options::OptionKeys;
72 
73 
74  if ( option[ OptionKeys::evaluation::pool ].user() ) {
75  using namespace protocols::canonical_sampling::mc_convergence_checks;
76  Pool_RMSD_OP pool_ptr = new Pool_RMSD( option[ OptionKeys::evaluation::pool ]() );
77  eval.add_evaluation( new Pool_Evaluator( pool_ptr ) );
78  }
79 
80 
81 }
82 
84  return "PoolEvaluatorCreator";
85 }
86 
87 } //namespace
88 } //namespace