Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
protocols
loops
loops_definers
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
19
#include <
protocols/loops/loops_definers/LoopsDefiner.hh
>
20
#include <
protocols/loops/loops_definers/LoopsDatabaseDefiner.fwd.hh
>
21
#include <
protocols/loops/Loop.fwd.hh
>
22
23
// Platform Headers
24
#include <
core/pose/Pose.fwd.hh
>
25
#include <
protocols/moves/DataMap.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.
59
class
LoopsDatabaseDefiner
:
public
LoopsDefiner
{
60
public
:
61
62
LoopsDatabaseDefiner
();
63
64
virtual
65
~LoopsDatabaseDefiner
();
66
67
LoopsDatabaseDefiner
(
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
73
LoopsDefinerOP
74
clone
()
const
;
75
76
77
/// @brief Used to parse an xml-like tag to load parameters and properties.
78
virtual
79
void
80
parse_my_tag
(
81
utility::tag::TagPtr
const
tag,
82
moves::DataMap
const
& data,
83
core::pose::Pose
const
&);
84
85
virtual
86
SerializedLoopList
87
apply
(
88
core::pose::Pose
const
&);
89
90
private
:
91
utility::sql_database::sessionOP
db_session_
;
92
std::string
database_table_
;
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
Generated on Sat Jun 1 2013 11:59:07 for Rosetta 3.5 by
1.8.4