Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AlignerFactory.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/sequence/AlignerFactory.cc
11 /// @author James Thompson
12 
13 // Unit headers
14 #include <core/sequence/Aligner.hh>
16 
17 // Package headers
21 
22 #include <utility/exit.hh>
23 
24 using namespace core::sequence;
25 
26 namespace core {
27 namespace sequence {
28 
31  std::string const & type
32 ) {
33  if ( type == "local" ) {
34  return new SWAligner;
35  } else if ( type == "global" ) {
36  return new NWAligner;
37  } else if ( type == "mc" ) {
38  return new MCAligner;
39  } else {
40  utility_exit_with_message(
41  "AlignerFactory: unknown Aligner type: " + type
42  );
43  return NULL;
44  }
45 }
46 
47 } // namespace sequence
48 } // namespace core