Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DatabaseJobOutputter.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/DatabaseJobOutputter.hh
11 /// @brief header file for DatabaseJobOutputter class
12 /// @author Matthew O'Meara (mattjomeara@gmail.com)
13 
14 
15 #ifndef INCLUDED_protocols_features_DatabaseJobOutputter_hh
16 #define INCLUDED_protocols_features_DatabaseJobOutputter_hh
17 
18 // unit Headers
22 #include <protocols/jd2/Job.fwd.hh>
23 
24 // project Headers
25 #include <core/pose/Pose.fwd.hh>
26 #include <core/types.hh>
27 // AUTO-REMOVED #include <protocols/features/ProteinSilentReport.hh>
28 
29 // utility Headers
30 #include <utility/file/FileName.hh>
31 #include <utility/vector1.hh>
32 
33 // C++ headers
34 #include <string>
35 
37 
38 
39 namespace protocols {
40 namespace features {
41 
42 ///@details this is a implementation of JobOutputter for database-based output.
44 {
45 public:
46 
48 
50 
51  virtual ~DatabaseJobOutputter();
52 
53  static void register_options();
54 
55  /// @brief load options from option sytem
56  void
58 
59  /// @brief Set database name
60  void
61  set_database_name(std::string const & database_name);
62 
63  /// @brief Get database name
65  get_database_name() const;
66 
67  /// @brief Set database postgreSQL schema
68  void
69  set_database_pq_schema(std::string const & database_pq_schema);
70 
71  /// @brief Get database postgresQL schema
73  get_database_pq_schema() const;
74 
75 
76  ///@brief see parent class for explanation
77  virtual void flush();
78 
79  ///@brief this function outputs the final result of a job.
80  virtual
81  void final_pose( protocols::jd2::JobCOP job, core::pose::Pose const & pose );
82 
83  /// @brief this function is intended for saving mid-protocol poses;
84  /// for example the final centroid structure in a combined
85  /// centroid/fullatom protocol.
86  virtual
87  void other_pose(
89  core::pose::Pose const & pose,
90  std::string const & tag,
91  int copy_count = -1,
92  bool score_only = false
93  );
94 
95  /// @brief this function is not used for output, but it belongs here
96  /// since it needs to check the same output locations as the class
97  /// normally writes to. This class checks wherever output goes to
98  /// see if the job's expected output already exists (on disk or
99  /// whatever). This is the most basic form of checkpointing.
100  virtual
102 
103 public: // accessors
104 
105  /// @brief this is the master function for determining the
106  /// unique output identifier for a job
107  virtual
109 
110 private: // members
111 
115 
116 }; // DatabaseJobOutputter
117 
118 } // namespace features
119 } // namespace protocols
120 
121 #endif //INCLUDED_protocols_features_DatabaseJobOutputter_hh