Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JobDataFeatures.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 src/protocols/features/JobDataFeatures.hh
11 /// @author Sam DeLuca
12 
13 #ifndef INCLUDED_protocols_features_JobDataFeatures_hh
14 #define INCLUDED_protocols_features_JobDataFeatures_hh
15 
16 //unit headers
19 
20 //External
21 #include <boost/uuid/uuid.hpp>
22 
23 //platform headers
24 #include <protocols/jd2/Job.fwd.hh>
25 
26 #include <utility/vector1.hh>
27 
28 
29 
30 namespace protocols {
31 namespace features {
32 
34 public:
36  JobDataFeatures(JobDataFeatures const & src);
37  virtual ~JobDataFeatures();
38 
39  ///@brief return string with class name
40  std::string type_name() const;
41 
42  ///@brief generate the table schemas and write them to the database
43  virtual void
44  write_schema_to_db(utility::sql_database::sessionOP db_session) const;
45 
46  ///@brief return the set of features reporters that are required to
47  ///also already be extracted by the time this one is used.
50 
51  ///@brief collect all the feature data for the pose
54  core::pose::Pose const & pose,
55  utility::vector1<bool> const & relevant_residues,
56  boost::uuids::uuid struct_id,
57  utility::sql_database::sessionOP db_session
58  );
59 
60  void
62  utility::sql_database::sessionOP db_session,
63  boost::uuids::uuid struct_id,
64  core::pose::Pose & pose
65  );
66 
67  void delete_record(
68  boost::uuids::uuid struct_id,
69  utility::sql_database::sessionOP db_session
70  );
71 private:
72  void insert_string_rows(boost::uuids::uuid struct_id, utility::sql_database::sessionOP db_session, protocols::jd2::JobCOP job) const;
73 
74  void insert_string_string_rows(boost::uuids::uuid struct_id, utility::sql_database::sessionOP db_session, protocols::jd2::JobCOP job) const;
75 
76  void insert_string_real_rows(boost::uuids::uuid struct_id, utility::sql_database::sessionOP db_session, protocols::jd2::JobCOP job) const;
77 
78  void load_string_data(utility::sql_database::sessionOP db_session, boost::uuids::uuid struct_id, core::pose::Pose & pose);
79 
80  void load_string_string_data(utility::sql_database::sessionOP db_session, boost::uuids::uuid struct_id, core::pose::Pose & pose);
81 
82  void load_string_real_data(utility::sql_database::sessionOP db_session, boost::uuids::uuid struct_id, core::pose::Pose & pose);
83 };
84 
85 }
86 }
87 
88 
89 
90 #endif /* JOBDATAFEATURES_HH_ */