Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JScoreEvaluatorCreator.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/JScoreEvaluatorCreator.hh
11 /// @brief Header for JScoreEvaluatorCreator
12 /// @author Matthew O'Meara
13 
14 // Unit Headers
16 
17 // Package Headers
19 
20 // Package Headers
24 
26 
27 // ObjexxFCL Headers
28 #include <ObjexxFCL/string.functions.hh>
29 
30 // Utility headers
31 #include <utility/pointer/ReferenceCount.hh>
32 #include <utility/vector1.hh>
33 #include <utility/file/FileName.hh>
34 
35 #include <basic/options/option.hh>
36 #include <basic/Tracer.hh>
37 
38 //// C++ headers
39 
40 // due to template function
42 
43 
44 // option key includes
45 #include <basic/options/option_macros.hh>
46 #include <basic/options/keys/evaluation.OptionKeys.gen.hh>
47 
48 #include <utility/vector0.hh>
49 
50 #ifdef WIN32
52 #endif
53 
54 
55 static basic::Tracer tr("protocols.evalution.JScoreEvaluatorCreator");
56 
57 namespace protocols {
58 namespace simple_filters {
59 
61 
63  using namespace basic::options;
64  if ( options_registered_ ) return;
65  options_registered_ = true;
66 
67  OPT( evaluation::jscore_evaluator );
68 
69 }
70 
72  using namespace core;
73  using namespace basic::options;
74  using namespace basic::options::OptionKeys;
75 
76 
77  if ( option[ OptionKeys::evaluation::jscore_evaluator ].user() ) {
78  using std::string;
79  using utility::vector1;
81  vector1< string > const & tags( option[ OptionKeys::evaluation::jscore_evaluator ]() );
82 
83  for ( Size ii = 1; ii <= tags.size() - 1; ii += 2 ) {
84  string scorefxn_name( tags[ii] );
85  string rsd_set_name ( tags[ii+1] );
86 
87  eval.add_evaluation( new JScoreEvaluator( scorefxn_name, rsd_set_name ) );
88  }
89  }
90 
91 
92 }
93 
95  return "JScoreEvaluatorCreator";
96 }
97 
98 } //namespace
99 } //namespace