Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StructureSimilarityEvaluatorCreator.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/StructureSimilarityEvaluatorCreator.hh
11 /// @brief Header for StructureSimilarityEvaluatorCreator
12 /// @author Matthew O'Meara
13 
14 // Unit Headers
16 
17 // Package Headers
19 
20 // Package Headers
24 
25 // Project Headers
27 #include <core/chemical/util.hh>
28 
30 #include <core/pose/Pose.hh>
31 
32 // ObjexxFCL Headers
33 #include <ObjexxFCL/string.functions.hh>
34 
35 // Utility headers
36 #include <utility/pointer/ReferenceCount.hh>
37 #include <utility/vector1.hh>
38 #include <utility/file/FileName.hh>
39 
40 #include <basic/options/option.hh>
41 #include <basic/Tracer.hh>
42 
43 // due to template function
45 
46 
47 // option key includes
48 #include <basic/options/option_macros.hh>
49 #include <basic/options/keys/evaluation.OptionKeys.gen.hh>
50 #include <utility/vector0.hh>
51 
52 #ifdef WIN32
54 #endif
55 
56 
57 static basic::Tracer tr("protocols.evalution.StructureSimilarityEvaluatorCreator");
58 
59 namespace protocols {
60 namespace simple_filters {
61 
63 
65  using namespace basic::options;
66  if ( options_registered_ ) return;
67  options_registered_ = true;
68 
69  OPT( evaluation::structural_similarity );
70 
71 }
72 
74  using namespace core;
75  using namespace basic::options;
76  using namespace basic::options::OptionKeys;
77 
78  if ( option[ OptionKeys::evaluation::structural_similarity ].user() ) {
79  using std::string;
81 
82  SilentFilePoseInputStream silent_input(
83  option[ OptionKeys::evaluation::structural_similarity ]()
84  );
87  while( silent_input.has_another_pose() ) {
88  core::pose::Pose pose;
89  silent_input.fill_pose( pose, *rsd_set );
90  poses.push_back( pose );
91  }
93  }
94 
95 }
96 
98  return "StructureSimilarityEvaluatorCreator";
99 }
100 
101 } //namespace
102 } //namespace