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
moves
MoverStatus.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 protocols/moves/MoverStatus.cc
11
/// @brief
12
/// @author Nobuyasu Koga (nobuyasu@uw.edu)
13
14
#include <
protocols/moves/MoverStatus.hh
>
15
#include <utility/exit.hh>
16
17
18
namespace
protocols {
19
namespace
moves {
20
21
MoverStatus
mstype_from_name
(
std::string
const
& name )
22
{
23
MoverStatus
ms;
24
if
( name ==
"MS_SUCCESS"
){
25
ms =
MS_SUCCESS
;
26
}
else
if
( name ==
"FAIL_RETRY"
){
27
ms =
FAIL_RETRY
;
28
}
else
if
( name ==
"FAIL_DO_NOT_RETRY"
){
29
ms =
FAIL_DO_NOT_RETRY
;
30
}
else
if
( name ==
"FAIL_BAD_INPUT"
){
31
ms =
FAIL_BAD_INPUT
;
32
}
else
{
33
ms =
FAIL_BAD_INPUT
;
34
utility_exit_with_message(
"Invalid name of mover status !"
);
35
}
36
return
ms;
37
}
38
39
}
//moves
40
}
//protocols
Generated on Sat Jun 1 2013 12:00:28 for Rosetta 3.5 by
1.8.4