Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StructureFeatures.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/StructureFeatures.hh
11 /// @brief report structure identifiers to a features database
12 /// @author Matthew O'Meara
13 
14 #ifndef INCLUDED_protocols_features_StructureFeatures_hh
15 #define INCLUDED_protocols_features_StructureFeatures_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 // AUTO-REMOVED #include <utility/sql_database/DatabaseSessionManager.hh>
27 #include <utility/vector1.fwd.hh>
28 
29 // C++ Headers
30 #include <string>
31 
32 #include <utility/vector1.hh>
33 #include <utility/exit.hh>
34 
35 namespace protocols{
36 namespace features{
37 
39 public:
41 
42  StructureFeatures( StructureFeatures const & src );
43 
44  virtual ~StructureFeatures();
45 
46  ///@brief return string with class name
48  type_name() const;
49 
50  ///@brief generate the table schemas and write them to the database
51  virtual void
52  write_schema_to_db(utility::sql_database::sessionOP db_session) const;
53 
54  ///@brief return the set of features reporters that are required to
55  ///also already be extracted by the time this one is used.
58 
59  ///@brief collect all the feature data for the pose use
60  boost::uuids::uuid
62  utility::vector1< bool > const & relevant_residues,
63  core::Size batch_id,
64  utility::sql_database::sessionOP db_session
65  );
66 
67  ///@brief collect all the feature data for the pose
70  core::pose::Pose const &,
72  boost::uuids::uuid,
73  utility::sql_database::sessionOP
74  ) {
75  utility_exit_with_message(
76  "The score_type features reporter is a special feature reporter "
77  " Please use the other interface for report_features");
78  return 0;
79  }
80 
81 
82  ///@brief collect all the feature data for the pose use
83  ///This version allows the tag and the input tag to be specificed
84  boost::uuids::uuid
86  utility::vector1< bool > const & relevant_residues,
87  core::Size batch_id,
88  utility::sql_database::sessionOP db_session,
89  std::string const & tag,
90  std::string const & input_tag
91  );
92 
93 
95  core::Size batch_id,
96  std::string const & tag,
97  std::string const & input_tag,
98  utility::sql_database::sessionOP db_session
99  );
100 
101  void delete_record(
102  boost::uuids::uuid struct_id,
103  utility::sql_database::sessionOP db_session
104  );
105 
106  void
108  utility::sql_database::sessionOP db_session,
109  boost::uuids::uuid struct_id,
110  core::pose::Pose & pose);
111 
112  void
113  load_tag(
114  utility::sql_database::sessionOP db_session,
115  boost::uuids::uuid struct_id,
116  core::pose::Pose & pose);
117 
118 
119  boost::uuids::uuid
121  utility::sql_database::sessionOP db_session,
122  std::string const & tag,
123  core::Size const & protocol_id
124  );
125 
126 };
127 
128 } // namespace
129 } // namespace
130 
131 #endif // include guard