Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DatabaseJobInputter.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/DatabaseJobInputter.hh
11 /// @brief header file for DatabaseJobInputter class
12 /// @author Matthew O'Meara (mattjomeara@gmail.com)
13 
14 
15 #ifndef INCLUDED_protocols_features_DatabaseJobInputter_hh
16 #define INCLUDED_protocols_features_DatabaseJobInputter_hh
17 
18 // Unit Headers
21 #include <protocols/jd2/Job.fwd.hh>
22 // AUTO-REMOVED #include <protocols/features/ProteinSilentReport.hh>
23 
24 // Project Headers
25 #include <core/pose/Pose.fwd.hh>
26 // AUTO-REMOVED #include <core/scoring/ScoreFunction.hh>
29 
30 // Utility Headers
31 #include <utility/vector1.hh>
32 
33 //C++ Headers
34 #include <string>
35 #include <map>
36 #include <set>
37 
38 //External
39 #include <boost/uuid/uuid.hpp>
40 
41 namespace protocols {
42 namespace features {
43 
44 ///@details This is the simplest implementation of JobInputter, which
45 ///reads from -s/-l and Database files.
47 {
48 public:
49 
51 
52  virtual ~DatabaseJobInputter();
53 
54  static void register_options();
55 
56  /// @brief load options from option sytem
57  void
59 
60  /// @brief Set database name
61  void
62  set_database_name(std::string const & database_name);
63 
64  /// @brief Get database name
66  get_database_name() const;
67 
68  /// @brief Set database postreSQL schema
69  void
70  set_database_pq_schema(std::string const & database_pq_schema);
71 
72  /// @brief Get database postreSQL schema
74  get_database_pq_schema() const;
75 
76  /// @brief Get score function
79 
80  /// @brief Set score function
81  void
83 
84  /// @brief set struct_ids from a list of strings of hex-uuid representations
85  void
87  utility::vector1<std::string> const & struct_id_strings);
88 
89  /// @brief set input tags using a database SELECT command
90  void
92 
93 // /// @brief Get input tags
94 // void
95 // get_tags(utility::vector1< std::string > & tags);
96 
97  /// @brief this function is responsible for filling the pose reference with
98  /// the pose indicated by the job. The Job object (within its InnerJob)
99  /// contains a PoseCOP. This function needs to either fill the pose
100  /// reference from the InnerJob or, on first demand of a pose from that
101  /// InnerJob, instantiate the pose, hand off a COP to the InnerJob, and fill
102  /// the reference. This implementation uses pose_from_pdb
103  virtual void pose_from_job( core::pose::Pose & pose, protocols::jd2::JobOP job );
104 
105  /// @brief this function determines what jobs exist from -in::file::silent and
106  /// -in::file::tags.
107  virtual void fill_jobs( protocols::jd2::Jobs & jobs );
108 
109  /// @brief Return the type of input source that the DatabaseJobInputter is currently
110  /// using.
111  /// @return Always <em>DATABASE</em>.
113 
114 private:
120  std::map< std::string, boost::uuids::uuid > tag_structures_;
121  std::map< std::string, std::set< core::Size > > tag_residues_;
122 }; // DatabaseJobInputter
123 
124 } // namespace features
125 } // namespace protocols
126 
127 #endif //INCLUDED_protocols_features_DatabaseJobInputter_hh