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
scoring
ScoreTypeManager.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 core/scoring/ScoreTypeManager.hh
11
/// @brief Score type enumeration
12
/// @author Phil Bradley
13
14
15
#ifndef INCLUDED_core_scoring_ScoreTypeManager_hh
16
#define INCLUDED_core_scoring_ScoreTypeManager_hh
17
18
// Project Headers
19
#include <
core/scoring/ScoreType.hh
>
20
21
// Utility Headers
22
// AUTO-REMOVED #include <utility/vector1.hh>
23
24
// STL Headers
25
// AUTO-REMOVED #include <string>
26
#include <map>
27
28
#include <utility/vector1.hh>
29
30
31
namespace
core {
32
namespace
scoring {
33
34
class
ScoreTypeManager
{
35
public
:
36
static
37
ScoreType
38
score_type_from_name
(
std::string
const
& name );
39
40
static
41
std::string
42
name_from_score_type
(
ScoreType
score_type );
43
44
static
45
bool
46
is_score_type
(
std::string
const
& name );
47
48
private
:
49
static
void
setup_score_type_names
();
50
51
private
:
52
static
bool
initialized_
;
53
54
/// lookup map from string name to enum type
55
static
std::map< std::string, ScoreType >
name2score_type_
;
56
static
utility::vector1< std::string >
score_type2name_
;
57
58
};
// ScoreTypeManager
59
60
}
// scoring
61
}
// core
62
63
#endif
Generated on Sat Jun 1 2013 11:40:16 for Rosetta 3.5 by
1.8.4