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
core
pack
rotamer_set
RotamerSetFactory.cc
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 core/pack/rotamer_set/RotamerSetFactory.hh
11
/// @brief Residue Set Factory class
12
/// @author Andrew Leaver-Fay (leaverfa@email.unc.edu)
13
14
// Unit header
15
#include <
core/pack/rotamer_set/RotamerSetFactory.hh
>
16
17
// Package headers
18
#include <
core/pack/rotamer_set/RotamerSet_.hh
>
19
#include <
core/pack/rotamer_set/symmetry/SymmetricRotamerSet_.hh
>
20
//#include <core/pack/rotamer_set/NucleicAcidRotamerSet.hh>
21
22
// Project headers
23
#include <
core/conformation/Residue.hh
>
24
25
// for symmetry
26
#include <basic/options/option.hh>
27
#include <basic/options/keys/symmetry.OptionKeys.gen.hh>
28
29
#include <utility/exit.hh>
30
31
// STL Headers
32
#include <iostream>
33
34
#include <utility/vector1.hh>
35
36
37
namespace
core {
38
namespace
pack {
39
namespace
rotamer_set {
40
41
RotamerSetFactory::~RotamerSetFactory
() {}
42
43
RotamerSetOP
44
RotamerSetFactory::create_rotamer_set
(
conformation::Residue
const
& res )
45
{
46
47
if
( basic::options::option[ basic::options::OptionKeys::symmetry::symmetry_definition ].user() )
48
{
49
if
( res.
is_protein
() )
// This check will be removed when we get rotamers for NAs and Ligands online
50
{
51
return
new
symmetry::SymmetricRotamerSet_
();
52
}
53
else
54
{
55
//std::cout << "[ WARNING ] PB HACK -- SHOULD DIE HERE!" << std::endl; // seems OK?
56
return
new
symmetry::SymmetricRotamerSet_
();
57
//utility_exit_with_message( "Error in RotamerSetFactory, unsupported packing object" ); // get backtrace in gdb
58
//exit(1); // add grace
59
//return new AminoAcidRotamerSet(); // appease compiler
60
}
61
}
62
63
if
( res.
is_protein
() )
// This check will be removed when we get rotamers for NAs and Ligands online
64
{
65
return
new
RotamerSet_
();
66
}
67
else
68
{
69
//std::cout << "[ WARNING ] PB HACK -- SHOULD DIE HERE!" << std::endl; // seems OK?
70
return
new
RotamerSet_
();
71
//utility_exit_with_message( "Error in RotamerSetFactory, unsupported packing object" ); // get backtrace in gdb
72
//exit(1); // add grace
73
//return new AminoAcidRotamerSet(); // appease compiler
74
}
75
}
76
77
}
78
}
79
}
Generated on Sat Jun 1 2013 11:33:45 for Rosetta 3.5 by
1.8.4