Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ContextGraphFactory.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/scoring/ContextGraphFactory.cc
11 /// @brief Context graph class factory implementation
12 /// @author Andrew Leaver-Fay (aleaverfay@gmail.com)
13 
14 // Unit Headers
16 
17 // Package Headers
20 
21 // STL Headers
22 // AUTO-REMOVED #include <iostream>
23 
24 // Utility Headers
25 #include <utility/exit.hh>
26 
27 #include <utility/vector1.hh>
28 
29 
30 namespace core {
31 namespace scoring {
32 
35  switch ( type ) {
37  return new TenANeighborGraph();
39  return new TwelveANeighborGraph();
40  break;
41  default:
42  utility_exit_with_message( "Error in ContextGraphFactory.cc. Unsupported context graph requested" );
43  break;
44  }
45  return 0;
46 }
47 
48 } // scoring
49 } // core
50 
51