Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ScoreFunctionFeatures.hh
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/features/ScoreFunctionFeatures.hh
11 /// @brief Add score function parameters to a features database
12 /// @author Matthew O'Meara (mattjomeara@gmail.com)
13 
14 #ifndef INCLUDED_protocols_features_ScoreFunctionFeatures_hh
15 #define INCLUDED_protocols_features_ScoreFunctionFeatures_hh
16 
17 // Unit Headers
20 
21 //External
22 #include <boost/uuid/uuid.hpp>
23 
24 // Project Headers
25 #include <core/pose/Pose.fwd.hh>
26 #include <utility/vector1.fwd.hh>
27 
28 // C++ Headers
29 #include <string>
30 
32 #include <utility/vector1.hh>
33 
34 
35 namespace protocols{
36 namespace features{
37 
39 public:
41 
44  std::string const & scfxn_name);
45 
47 
48  virtual ~ScoreFunctionFeatures();
49 
50  ///@brief return string with class name
52  type_name() const;
53 
54  ///@brief generate the table schemas and write them to the database
55  virtual void
56  write_schema_to_db(utility::sql_database::sessionOP db_session) const;
57 
58 private:
59  ///@brief generate the score_function_weights table schema
60  void
62  utility::sql_database::sessionOP db_session) const;
63 
64 public:
65  ///@brief return the set of features reporters that are required to
66  ///also already be extracted by the time this one is used.
69 
70  void
72  utility::tag::TagPtr const tag,
73  protocols::moves::DataMap & /*data*/,
74  protocols::filters::Filters_map const & /*filters*/,
75  protocols::moves::Movers_map const & /*movers*/,
76  core::pose::Pose const & /*pose*/);
77 
78  ///@brief collect all the feature data for the pose
81  core::pose::Pose const & pose,
82  utility::vector1< bool > const & relevant_residues,
83  boost::uuids::uuid struct_id,
84  utility::sql_database::sessionOP db_session);
85 
86  void delete_record(
87  boost::uuids::uuid struct_id,
88  utility::sql_database::sessionOP db_session
89  );
90 
91  void
93  core::Size batch_id,
94  utility::sql_database::sessionOP db_session
95  ) const;
96 
97 private:
100 
101 };
102 
103 } // namespace
104 } // namespace
105 
106 #endif // include guard