Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SymmDataLoader.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/conformation/symmetry/SymmDataLoader.cc
11 /// @brief load the SymmData data-structure, which is used to configure symmetric poses.
12 /// @author Matthew O'Meara (mattjomeara@gmail.com)
13 
14 //unit headers
19 
20 //package headers
21 #include <basic/resource_manager/ResourceOptions.fwd.hh>
22 #include <basic/resource_manager/types.hh>
23 
24 //C++ headers
25 #include <istream>
26 
27 namespace core {
28 namespace conformation {
29 namespace symmetry {
30 
31 
32 
33 
34 basic::resource_manager::ResourceOP
36  basic::resource_manager::ResourceOptions const &,
37  basic::resource_manager::LocatorID const &,
38  std::istream & istream
39 ) const {
40  SymmDataOP symm_data(new SymmData());
41  symm_data->read_symmetry_data_from_stream(istream);
42  return symm_data;
43 }
44 
45 
46 ///// SymmDataOptionsCreator /////
48 
50 
51 basic::resource_manager::ResourceOptionsOP
53  return new SymmDataOptions;
54 }
55 
58  return "SymmDataOptions";
59 }
60 
61 //// SymmDataLoaderCreator
62 basic::resource_manager::ResourceLoaderOP
64 {
65  return new SymmDataLoader();
66 }
67 
69 {
70  return "SymmData";
71 }
72 
73 
74 } // namespace
75 } // namespace
76 } // namespace