Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LoopsDatabaseDefiner.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/loops/loops_definers/LoopsDatabaseDefiner.hh
11 /// @brief A loops definer is creates a serialized loops list
12 /// @author Matthew O'Meara (mattjomear@gmail.com)
13 
14 #ifndef INCLUDED_protocols_loops_loops_definers_LoopsDatabaseDefiner_HH
15 #define INCLUDED_protocols_loops_loops_definers_LoopsDatabaseDefiner_HH
16 
17 
18 // Unit Headers
22 
23 // Platform Headers
24 #include <core/pose/Pose.fwd.hh>
26 
27 
28 // Utility Headers
29 #include <utility/tag/Tag.fwd.hh>
30 #include <utility/pointer/ReferenceCount.hh>
31 #include <utility/vector1.hh>
32 #include <utility/sql_database/DatabaseSessionManager.hh>
33 
34 // C++ Headers
35 #include <string>
36 
37 
38 namespace protocols {
39 namespace loops {
40 namespace loops_definers {
41 
42 
43 ///@ details given a database table with the following schema, defining a single loop per row
44 ///
45 ///CREATE TABLE loops (
46 /// tag TEXT,
47 /// start INTEGER,
48 /// stop INTEGER,
49 /// cut INTEGER,
50 /// skip_rate REAL,
51 /// extended BOOLEAN);
52 ///
53 /// return all loops associated with the job distributor input tag
54 /// Note: you can specify a different table using the 'database_table' field
55 ///
56 /// Note: if you would like to query the database for loops
57 /// differently, you can either pre-query the table and store it, or
58 /// extend, subclass, or create a different LoopsDefiner class.
60 public:
61 
63 
64  virtual
66 
68  LoopsDatabaseDefiner const & src);
69 
70  /// @brief Create another loops definer of the type matching the most-derived
71  /// version of the class.
72  virtual
74  clone() const;
75 
76 
77  /// @brief Used to parse an xml-like tag to load parameters and properties.
78  virtual
79  void
81  utility::tag::TagPtr const tag,
82  moves::DataMap const & data,
83  core::pose::Pose const &);
84 
85  virtual
87  apply(
88  core::pose::Pose const &);
89 
90 private:
91  utility::sql_database::sessionOP db_session_;
93 
94 };
95 
96 // do not add any derived classes to this file, unless they are
97 // generalized abstract base classes and do not actually 'do any work'
98 
99 } //namespace
100 } //namespace
101 } //namespace
102 
103 #endif // include guard
104 
105