Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ReadResfileFromDB.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/toolbox/task_operations/ReadResfileFromDB.hh
11 /// @brief read a refile indexed by the input structure tag from a supplied
12 /// relational database
13 /// @author Matthew O'Meara (mattjomeara@gmail.com)
14 
15 #ifndef INCLUDED_protocols_toolbox_task_operations_ReadResfileFromDB_hh
16 #define INCLUDED_protocols_toolbox_task_operations_ReadResfileFromDB_hh
17 
18 // Unit Headers
21 
22 // Project Headers
24 #include <core/pose/Pose.fwd.hh>
25 
26 // Utility Headers
27 #include <utility/tag/Tag.fwd.hh>
28 #include <utility/sql_database/DatabaseSessionManager.hh>
29 
30 #include <utility/vector1.hh>
31 #include <string>
32 
33 
34 namespace protocols {
35 namespace toolbox {
36 namespace task_operations {
37 
39 public:
41 
42 public:
44 
46  utility::sql_database::sessionOP db_session,
47  std::string const & database_table);
48 
50 
51  virtual ~ReadResfileFromDB();
52 
54 
55  virtual
56  void
57  apply(core::pose::Pose const & pose, core::pack::task::PackerTask & task) const;
58 
59  void db_session(utility::sql_database::sessionOP db_session);
60 
62  std::string const & database_table() const;
63 
64  virtual void parse_tag(utility::tag::TagPtr);
65 
66 private:
68  utility::sql_database::sessionOP db_session_;
69 };
70 
71 } //namespace task_operations
72 } //namespace toolbox
73 } //namespace protocols
74 
75 #endif // include guard